Skip to content

DNM: Testing out PSA init in PRE_KERNEL_1 ncs #2447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2,228 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2228 commits
Select commit Hold shift + click to select a range
917deb5
Revert "[nrf fromtree] mgmt: mcumgr: grp: os_mgmt: Fix invalid return"
anangl Jan 29, 2025
b32781d
Revert "[nrf fromtree] mgmt: mcumgr: grp: os_mgmt: Allow bootloader i…
anangl Jan 29, 2025
7aa3bec
Revert "[nrf fromlist] bluetooth: tester: audio: Add check for bis st…
anangl Jan 29, 2025
6a90c94
Revert "[nrf fromlist] modules: hal_nordic: Allow app mem from net co…
anangl Jan 29, 2025
d5070a0
Revert "[nrf fromlist] manifest: update open-amp to include change to…
anangl Jan 29, 2025
9be95b7
Revert "[nrf fromlist] tests: net: ipv6: Enable mbed TLS heap"
anangl Jan 29, 2025
391e706
Revert "[nrf fromtree] tests/samples: net: Fix the max number of file…
anangl Jan 29, 2025
f3bbb83
Revert "[nrf fromtree] net: dns: Check that dispatcher table is not o…
anangl Jan 29, 2025
dbddea7
Revert "[nrf fromtree] net: dns: Increase the size of dispatcher table"
anangl Jan 29, 2025
66ac66f
Revert "[nrf fromlist] tests: lwm2m: Remove qemu-cortex-m3"
anangl Jan 29, 2025
c5a9c63
Revert "[nrf fromlist] tests: lwm2m: Fix minor timing issues on tests"
anangl Jan 29, 2025
81ecef4
Revert "[nrf fromtree] usb: device_next: usbd_hid: Fix size in HID re…
anangl Jan 29, 2025
3343772
Revert "[nrf fromlist] modules: hostap: Use net_mgmt context"
anangl Jan 29, 2025
683f99c
Revert "[nrf fromlist] modules: hostap: Fix typo in NM unregistration"
anangl Jan 29, 2025
f17e01f
Revert "[nrf fromlist] modules: hostap: Fix double free in case of er…
anangl Jan 29, 2025
46ef328
Revert "[nrf fromlist] modules: hostap: Fix double free of the event"
anangl Jan 29, 2025
8ee8e96
Revert "[nrf fromlist] net: wifi: Fix DPP disabled build"
anangl Jan 29, 2025
794bee6
Revert "[nrf fromlist] boards: nordic: nrf7002dk: re-enable external …
anangl Jan 29, 2025
9a0c64d
Revert "[nrf fromlist] net: lib: coap: Initialize response_truncated"
anangl Jan 29, 2025
9f69cef
Revert "[nrf fromtree] net: lib: http: ensure SYS_FOREVER_MS behavior"
anangl Jan 29, 2025
052e897
Revert "[nrf fromlist] boards: nordic: nrf7002dk: Remove enabling for…
anangl Jan 29, 2025
b85ed2f
Revert "[nrf fromlist] soc: nordic: nrf53: Make GPIO pin forwarding a…
anangl Jan 29, 2025
360c7ae
Revert "[nrf fromlist] boards: nordic: thingy53: Add missing FEM entr…
anangl Jan 29, 2025
90eedff
Revert "[nrf fromlist] dfu: Add missing depends on for progressive er…
anangl Jan 29, 2025
02f3c77
Revert "[nrf fromtree] drivers: udc_dwc2: Implement USBHS hibernation…
anangl Jan 29, 2025
511ad14
Revert "[nrf fromtree] drivers: udc_dwc2: Add hibernation vendor quirks"
anangl Jan 29, 2025
296f75c
Revert "[nrf fromtree] boards: nrf54h20dk: Allow running USB on radio…
anangl Jan 29, 2025
3c67ed2
Revert "[nrf fromtree] drivers: usb: udc_dwc2: Support Remote Wakeup"
anangl Jan 29, 2025
dbb5d9b
Revert "[nrf fromtree] drivers: udc_dwc2: Add missing GHWCFG bit defi…
anangl Jan 29, 2025
e9294bb
Revert "[nrf fromtree] drivers: usb: udc_dwc2: Exit hibernation on di…
anangl Jan 29, 2025
f6f5be1
Revert "[nrf fromtree] drivers: usb: udc_dwc2: Enter hibernation in t…
anangl Jan 29, 2025
8c1450a
Revert "[nrf fromtree] drivers: usb: udc_dwc2: Synchronize thread wit…
anangl Jan 29, 2025
5bb12d1
Revert "[nrf fromtree] drivers: usb: udc_dwc2: Replace queue with eve…
anangl Jan 29, 2025
f292c70
Revert "[nrf fromtree] drivers: usb: udc_dwc2: Remove forward defitions"
anangl Jan 29, 2025
a9c21be
Revert "[nrf fromtree] tests: net: http_server: Add netif dependency"
anangl Jan 29, 2025
7c27e63
Revert "[nrf fromtree] bluetooth: host: CS support for CS Test"
anangl Jan 29, 2025
05d95fd
Revert "[nrf fromtree] bluetooth: host: CS support for remote capabil…
anangl Jan 29, 2025
f2d9a93
Revert "[nrf fromlist] doc: extensions: link-roles: missing module no…
anangl Jan 29, 2025
e251bfa
Revert "[nrf fromlist] drivers: wifi: nrfwifi: determine shared iovdd…
anangl Jan 29, 2025
9f8f18a
Revert "[nrf fromlist] samples: net: wifi: add build of nrf7002eb"
anangl Jan 29, 2025
3a8ca7b
Revert "[nrf fromlist] boards: shields: add nrf7002eb"
anangl Jan 29, 2025
9a1a3d8
Revert "[nrf fromtree] soc: nordic: nrf53: Make GPIO pin forwarding s…
anangl Jan 29, 2025
6585a9e
Revert "[nrf fromlist] sysbuild: cmake: Fix ExternalZephyrProject_Add…
anangl Jan 29, 2025
27d5a05
Revert "[nrf fromlist] net: openthread: add `OPENTHREAD_STORE_FRAME_C…
anangl Jan 29, 2025
b8447e0
Revert "[nrf fromlist] manifest: openthread: Regular OpenThread upmerge"
anangl Jan 29, 2025
3767d88
Revert "[nrf fromtree] tests: drivers: Add PPR support in NRF GRTC ti…
anangl Jan 29, 2025
1db1ddc
Revert "[nrf fromtree] dts: bindings: arm: nordic: Add TDDCONF sources"
anangl Jan 29, 2025
e91a87c
Revert "[nrf fromlist] logging: frontend_stmesp: Avoid unaligned word…
anangl Jan 29, 2025
a206ecf
Revert "[nrf fromlist] logging: frontends: stmesp: Run clang-format"
anangl Jan 29, 2025
cdf3cac
Revert "[nrf fromlist] logging: frontend: stmesp_demux: Improve robus…
anangl Jan 29, 2025
7849521
Revert "[nrf fromlist] tests: kernel: timer: Exclude nRF54H20 PPR core"
anangl Jan 29, 2025
6fff844
Revert "[nrf fromlist] tests: kernel: timer: Fix failing tests"
anangl Jan 29, 2025
bf9db9a
Revert "[nrf fromlist] test: drivers: pwm: add fast PWM"
anangl Jan 29, 2025
e6e694d
Revert "[nrf fromlist] scripts: list_boards: Reintroduce Board.dir as…
anangl Jan 29, 2025
fc24c67
Revert "[nrf fromlist] sysbuild: dts: Introduce sysbuild_dt_* API"
anangl Jan 29, 2025
cf4cfe1
Revert "[nrf fromlist] scripts: gen_dts_cmake: Support variable targe…
anangl Jan 29, 2025
e8ba35a
Revert "[nrf fromlist] scripts: list_hardware: Do not check qualifier…
anangl Jan 29, 2025
6bcb0ca
Revert "[nrf fromlist] scripts: west_commands: run: Add priority to r…
anangl Jan 29, 2025
3496af6
Revert "[nrf fromlist] tests: add twister tests for CMake board and S…
anangl Jan 29, 2025
cab7ba1
Revert "[nrf fromlist] cmake: scripts: support SoC extension"
anangl Jan 29, 2025
ab74aab
Revert "[nrf noup] revertme: Resolve merge conflicts"
anangl Jan 29, 2025
2d65acb
Revert "[nrf fromlist] cmake: scripts: support board extension"
anangl Jan 29, 2025
2af7eb6
Revert "[nrf noup] revertme: Cover up merge conflicts"
anangl Jan 29, 2025
b45807c
Revert "[nrf fromlist] cmake: cleanup hwm_v2.cmake module code"
anangl Jan 29, 2025
2f445b8
Revert "[nrf fromlist] icbmsg: Allow deregistration of the endpoints"
anangl Jan 29, 2025
fbaa9b6
Revert "[nrf fromlist] tests: kernel: interrupt: nested_irq: support …
anangl Jan 29, 2025
8d624a4
Revert "[nrf fromlist] boards: nordic: nrf54h20dk: Disable asserts on…
anangl Jan 29, 2025
870868d
Revert "[nrf fromlist] scripts: pylib: twister: twisterlib: prevent e…
anangl Jan 29, 2025
e707e62
[nrf mergeup] Merge upstream up to commit fdeb7350171279d4637c536fcce…
anangl Jan 29, 2025
e5880c1
[nrf fromlist] scripts: gen_dts_cmake: Support variable target name i…
57300 Jun 7, 2024
1cbf367
[nrf fromlist] sysbuild: dts: Introduce sysbuild_dt_* API
57300 Jun 7, 2024
34b2943
[nrf fromlist] settings: ZMS: add a backend for ZMS (Zephyr Memory St…
rghaddab Sep 17, 2024
f453b9a
[nrf noup] ci: set `ZEPHYR_<MODULE_NAME>_KCONFIG` for NCS modules
tejlmand Jan 26, 2021
25d211e
[nrf noup] ci: scripts: add quarantine file
gopiotr Aug 1, 2022
3a061b5
[nrf noup] ci: add .github/test-spec.yml
DatGizmo Mar 15, 2022
21af487
[nrf noup] tests: drivers: build_all: regulator: use old schema
gmarull Jun 1, 2023
28d183e
[nrf noup] Revert "twister: Use natural sort when generating hardware…
rlubos Jun 19, 2023
43bfdc6
[nrf noup] doc: remove Kconfig search
gmarull Mar 3, 2022
31c47fb
[nrf noup] modules: tf-m: use of PSA_HAS_XXXX_SUPPORT
frkv Jan 13, 2022
97413cc
[nrf noup] modules: mbedtls: Allow MBEDTLS_BUILTIN to be deselected
SebastianBoe Jan 29, 2022
4f65da8
[nrf noup] modules: mbedtls: Add include folders
Vge0rge Feb 12, 2024
de5c671
[nrf noup] Bluetooth: update experimental for qualification
joerchan Nov 20, 2020
0b708df
[nrf noup] drivers/flashdisk: Add support for Partition Manager
de-nordic Jul 13, 2023
a07806e
[nrf noup] mcumgr: img_mgmt: Fix check for chosen code partition
MarekPieta May 5, 2023
42e69f8
[nrf noup] mgmt/mcumgr: Bootutil hooks to handle image-1
de-nordic Jun 23, 2022
bd73d5d
[nrf noup] mgmt/MCUmgr/grp/img: Move out label to make compiler happy
de-nordic Sep 28, 2023
0bfb978
[nrf noup] samples: bluetooth: hci_pow_ctrl: Migrate child image config
nordicjm Oct 16, 2023
44637cc
[nrf noup] samples: mgmt: mcumgr smp_svr: Migrate child image config
nordicjm Oct 16, 2023
1d6a2ef
[nrf noup] samples&tests: Restore a few CONFIG_NEWLIB_LIBC_NANO=n
anangl Dec 1, 2022
8d8b433
[nrf noup] samples/tests: Disable PM for some sysbuild builds
nordicjm Dec 15, 2023
4b2e931
[nrf noup] modules: tfm: Add Kconfig for CRYPTO_PAKE_MODULE_ENABLED
mswarowsky Feb 29, 2024
1023874
[nrf noup] Bluetooth: Mesh: zero randomization for friend's adv
alxelax Feb 7, 2023
616c7a7
[nrf noup] Bluetooth: Mesh: Fix adv randomness bug
Andrewpini Mar 8, 2023
06182ba
[nrf noup] dfu/boot/mcuboot: fix confirmation in case of USE_PARTITIO…
nvlsianpu Mar 28, 2024
8f238fa
[nrf noup] modules: mbedtls: Use help for DISABLE_MBEDTLS_BUILTIN info
hellesvik-nordic Mar 26, 2024
3d69eb8
[nrf noup] sample/**/smp_svr: nrf54l15pdk external memory dts overlay
nvlsianpu Apr 10, 2024
adc0590
[nrf noup] ci: NCS-specific CI tweaks
carlescufi Nov 30, 2018
bfbcd2e
[nrf noup] test: schedule_api: Use Minimal C library
de-nordic Sep 27, 2023
edba677
[nrf noup] net: mqtt: Provide option to enable TLS session caching
jtguggedal May 18, 2020
c34a7c5
[nrf noup] net: mqtt: add native TLS support
MirkoCovizzi Mar 10, 2022
4774b6d
[nrf noup] soc: arm: nRF53: Add SPU Flash/RAM alignment
mswarowsky Dec 4, 2023
7c4d56d
[nrf noup] soc: arm: nRF91: Add SPU Flash/RAM alignment
mswarowsky Dec 4, 2023
e49f547
[nrf noup] boards: thingy53_nrf5340: Add common partition map
MarekPieta Nov 14, 2022
deefcd0
[nrf noup] boards: arm: thingy53: Disable USB CDC added by MCUBoot
mkapala-nordic Feb 2, 2023
9c262c8
[nrf noup] boards: thingy53_nrf5340: Enable MCUboot by default
MarekPieta Nov 28, 2022
6b06ae8
[nrf noup] boards: arm: nrf9131ek: enable tfm
maxd-nordic Nov 15, 2023
d184ab6
[nrf noup] samples: smp_svr: configuration for nrf54l15
michalek-no Mar 20, 2024
85c0524
[nrf noup] samples/**/smp_svr: testcase of nrf54l15pdk with ext-flash
nvlsianpu Apr 12, 2024
2827345
[nrf noup] samples: psa_crypto: Remove support for Nordic boards
mswarowsky Apr 19, 2024
658a7ee
[nrf noup] samples/smp_svr: nrf54l15pdk ext-flash partition
nvlsianpu Apr 15, 2024
528baec
[nrf noup] samples/**/smp_svr: testcase of nrf54l15pdk with ext-flash DT
nvlsianpu Apr 29, 2024
af4ca6b
[nrf noup] boards: nordic: thingy53: Add sysbuild Kconfig file
nordicjm May 9, 2024
0829116
[nrf noup] scripts: west: build: Use sysbuild by default if in NCS dir
nordicjm May 14, 2024
37d2e1c
[nrf noup] board: nordic: thingy53: Enable default images for sysbuild
nordicjm May 17, 2024
35b8db7
[nrf noup] samples/**/smp_svr: fix SB_CONFIG_PARTITION_MANAGER injection
nvlsianpu May 21, 2024
7060e93
[nrf noup] include: net: add NCS extensions
rlubos Oct 1, 2018
1911692
[nrf noup] tree-wide: support NCS Partition Manager (PM) definitions
sigvartmh May 3, 2019
aa381d4
[nrf noup] kernel: Disable boot banner if NCS_BOOT_BANNER is enabled
rlubos May 17, 2024
566b365
[nrf noup] Bluetooth: Mesh: remove legacy adv support
HaavardRei May 31, 2024
53c71e1
[nrf noup] board: nordic: thingy53: Default to update only MCUboot type
nordicjm Jun 5, 2024
a41ebe4
[nrf noup] samples/../smp_svr: fix nrf54l15pdk ext flash dts overlay
nvlsianpu Jun 5, 2024
1d12275
[nrf noup] samples: sysbuild: hello_world: support PM on nRF53
gmarull Jun 12, 2024
4bf3913
[nrf noup] settings: nvs: use dedicated lookup cache hash function
Damian-Nordic Sep 25, 2023
5d88cc3
[nrf noup] entropy: Add fake entropy nRF PRNG driver
KAGA164 Apr 9, 2024
d33e570
[nrf noup] soc: nordic: nrf54l: Skip clock configuration from ns
SebastianBoe May 24, 2024
8b03867
[nrf noup] ci: Enable action-manifest-pr
rugeGerritsen Jul 8, 2024
7ea5bb0
[nrf noup] drivers: flash: kconfig: nrf_rram region resolution
michalek-no Jun 17, 2024
bb36eab
[nrf noup] dts: Add Bluetooth Controller to nRF54H20
rugeGerritsen Jul 16, 2024
331057f
[nrf noup] bluetooth: att: Allow ATT sent callback after data TX is done
MarekPieta Jun 14, 2024
37f3bd1
[nrf noup] board: nordic_ thingy53: Enable QSPI by default
hellesvik-nordic Aug 23, 2024
73e3ed2
[nrf noup] mgmt: mcumgr: grp: img_mgmt: Add handling for QSPI XIP
nordicjm Sep 9, 2024
2691686
[nrf noup] boards/nordic/nrf54l15dk: Set ROM offset by PM
nvlsianpu Sep 16, 2024
a8042fc
[nrf noup] samples: basic: blinky: add eGPIO tests configuration
jaz1-nordic Sep 26, 2024
7f58bb9
[nrf noup] modules: mbedtls: Disable configurations in Kconfig.tls-ge…
frkv Sep 11, 2024
7f59686
[nrf noup] mbedtls: Enable PSA_WANT_GENERATE_RANDOM for PSA RNG
frkv Sep 9, 2024
0f4b508
[nrf noup] mbedtls: Remove unsupported algorithms in PSA crypto
frkv Aug 21, 2024
236918b
[nrf noup] mbedtls: Add dependency logic for PSA crypto configurations
frkv Aug 21, 2024
7b6cc90
[nrf noup] mbedtls: Adding helptext warnings for weak crypto
frkv Aug 21, 2024
0563432
[nrf noup] mbedtls: Adding missing configuration for RSA key type derive
frkv Aug 21, 2024
5cdbcff
[nrf noup] mbedtls: Don't select PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC
frkv Sep 5, 2024
f1bff58
[nrf noup] kernel: banner: Make function weak
nordicjm May 7, 2024
c3d0d27
[nrf noup] lib: os: zvfs: Remove EXPERIMENTAL from ZVFS
bjarki-andreasen Sep 20, 2024
933a187
[nrf noup] samples: lwm2m_client: Add support for nRF91x
juhaylinen Jan 19, 2024
c42375f
[nrf noup] samples: net: Enable Wi-Fi driver in sysbuild builds
rlubos Oct 7, 2024
0f65fd5
[nrf noup] mbedtls: Don't enable auto-generation of Mbed TLS files
frkv Sep 25, 2024
1451782
[nrf noup] net: tests: Add legacy crypto API support for big_http_dow…
frkv Sep 25, 2024
734d785
[nrf noup] net: tests: crypto: Adding legacy Crypto support ipv6 tests
frkv Sep 25, 2024
0815993
[nrf noup] samples: net: wifi: Changes for EAP-TLS support
rado17 Oct 8, 2024
1f616f0
[nrf noup] samples: net: wifi: Update certificates
krish2718 Oct 22, 2024
66e850d
[nrf noup] settings: zms: use dedicated lookup cache hash function
rghaddab Oct 11, 2024
9a3452e
[nrf noup] bluetooth: conn: Allow for an extra ref in bt_l2cap_send_pdu
MarekPieta Jun 14, 2024
7e2a456
[nrf noup] bluetooth: conn: Skip buffer ref count check in send_buf
MarekPieta Aug 7, 2024
596733a
[nrf noup] moduled: hal_nordic: require nrf-regtool
gmarull Oct 30, 2024
1ed048d
[nrf noup] sample/smp_svr: nrf54l15dk test cases
nvlsianpu Oct 23, 2024
e3a54a5
[nrf noup] mcuboot: Add CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512
de-nordic Nov 12, 2024
f9c71ae
[nrf noup] mgmt/mcumgr: Add support for SHA512 in images
de-nordic Nov 12, 2024
14e46fd
[nrf noup] samples/smp_svr: Increase stack size required
de-nordic Nov 12, 2024
bbba481
[nrf noup] ci: fix suit-dfu-test entries in test-spec
kszromek-nordic Nov 12, 2024
8657839
[nrf noup] modules: hal_nordic: adjust nrfx reservations to NCS
e-rk Oct 22, 2024
ccd3998
[nrf noup] tests: bluetooth: tester: sysbuild configurable 53/54H
AyturkDuzen Nov 20, 2024
ed23355
[nrf noup] Bluetooth: Mesh: Disable processing of ext ADV packets
Balaklaka May 21, 2024
3fd297b
[nrf noup] boards: Add non-secure target for nrf54L15dk
tomi-font Sep 27, 2024
959469b
[nrf noup] dts: choose a crypto accelerator for entropy
joerchan Jan 16, 2023
a4f30a6
[nrf noup] dts: Select SoftDevice Controller DTS binding as default
rugeGerritsen Sep 5, 2024
5aba729
[nrf fromlist] nrfwifi: Display EAP_TLS_SHA256 security in scan results
rado17 Nov 20, 2024
22a94a8
[nrf noup] drivers: flash: Allow reading secure mem by nrf_rram.
ArekBalysNordic Sep 19, 2024
1e8c3e4
[nrf fromlist] drivers: pinctrl: nrf: Add support for clock outputs
adamkondraciuk Dec 10, 2024
73e70e3
[nrf fromlist] dts: nordic: Add support for clock outputs
adamkondraciuk Dec 10, 2024
c789148
[nrf fromlist] drivers: timer: nrf_grtc: Add support for clock outputs
adamkondraciuk Dec 10, 2024
ecc56ff
[nrf fromtree] tests: arch: arm: arm_irq_vector_table: Fix for nRF54H20
adamkondraciuk Nov 28, 2024
6556629
[nrf fromlist] soc: nordic: nrf54h20: disallow using LR in s2ram mark…
adamkondraciuk Nov 22, 2024
a99234a
[nrf fromlist] drivers: hwinfo: Support for reset reasons in nRF54H20
kl-cruz Nov 22, 2024
7d114d1
[nrf noup] soc: nrf54l: Add custom section for KMU
Vge0rge Jun 21, 2024
b399761
[nrf noup] soc: nordic: nrf54l: Port Soc.c to be compatible with TFM
SebastianBoe May 24, 2024
6ac0288
[nrf noup] soc: nordic: nrf54l Fix for wait lasting half expected time
degjorva Dec 12, 2024
240668a
[nrf noup] samples: bluetooth: update autoconf.h header path
frkv Sep 5, 2024
6ef8d21
[nrf fromlist] drivers: mspi: Add driver for DesignWare SSI based con…
anangl Oct 17, 2024
4ff1be1
[nrf fromlist] drivers: flash: Add generic NOR flash driver for MSPI …
anangl Oct 17, 2024
980b66e
[nrf noup] drivers: pinctrl_nrf: Add support for EXMIF pins
anangl Oct 17, 2024
860d66d
[nrf fromlist] boards: nrf54h20dk: Add XIP region definition to memor…
anangl Dec 3, 2024
b5540dd
[nrf fromlist] samples: code_relocation_nocopy: Add configuration for…
anangl Dec 3, 2024
5d205de
[nrf noup] cmake: use -DUSE_PARTITION_MANAGER=1 for lld linker script…
tejlmand Dec 10, 2024
d1703f8
[nrf fromlist] dts: nordic: Change compatible property for EXMIF node
anangl Oct 17, 2024
dd4ea86
[nrf fromlist] samples|tests: drivers: flash: Add support for "jedec,…
anangl Oct 18, 2024
d8b6a82
[nrf noup] drivers: spi_dw: Bring back custom EXMIF peripheral handling
anangl Dec 17, 2024
10fd796
[nrf fromtree] boards: native: nrf_bsim: nrf54l15: Bring back clocks
nordic-krch Dec 12, 2024
1f3e728
[nrf fromtree] Revert "dts: common: nordic: nrf54l20: set timer frequ…
anangl Dec 30, 2024
0de1fc2
[nrf fromtree] tests: drivers: mspi: make MSPI API test more generic
jaz1-nordic Nov 27, 2024
461895f
[nrf noup] drivers: pinctrl: Add SDP MSPI pin configuration
jaz1-nordic Nov 25, 2024
e183111
[nrf noup] tests: drivers: mspi: api: Add nRF54L15 overlay file
jaz1-nordic Nov 25, 2024
a9f1fea
[nrf fromtree] include: drivers: nrf_clock_control: make nrf_clock in…
nika-nordic Dec 17, 2024
c9a3f73
[nrf fromtree] drivers: pwm: nrfx: add global hsfll request for fast PWM
mstasiaknordic Dec 12, 2024
cfd00a0
[nrf fromtree] tests: kernel: Fix for nRF54H20
adamkondraciuk Dec 17, 2024
f6b9d50
[nrf fromtree] net: openthread: radio: Fix platform radio state machine
maciejbaczmanski Jan 7, 2025
bbe67ae
[nrf fromtree] net: openthread: radio: Add setting channel in diag mode
maciejbaczmanski Jan 7, 2025
c4bdeb1
[nrf fromtree] net: openthread: cleanup diag commands
maciejbaczmanski Jan 10, 2025
6b60896
[nrf fromtree] samples: boards: nordic: coresight_stm: Fix nrfutil tr…
nordic-segl Jan 13, 2025
8917dc3
[nrf fromtree] drivers: watchdog: nrfx: add synchronization after stop
mstasiaknordic Jan 10, 2025
0c5314d
[nrf fromtree] arch: riscv: option to init custom hw stacked esf memb…
lstnl Jan 16, 2025
c0fa9f8
[nrf fromtree] tests: boards: nrf: hwinfo: Add test for reset cause o…
nordic-segl Dec 18, 2024
1d02ec8
[nrf fromtree] boards: nordic: nrf5340dk/nrf9160dk: Use sysbuild for …
nordicjm Dec 12, 2024
388992c
[nrf noup] samples/tests: Add TF-M sysbuild config files
nordicjm Dec 12, 2024
8216538
[nrf noup] cmake: linker: ld: target: Remove child/parent image flag
nordicjm Dec 12, 2024
fbe1f15
[nrf fromtree] drv: nordic_vpr_launcher: manage data cache
hubertmis Jan 16, 2025
6ed7a94
[nrf fromtree] dts: common: nordic: nrf54h20: Fix flpr bus-width
karstenkoenig Jan 14, 2025
014653a
[nrf fromtree] manifest: Update nRF hw models to latest
aescolar Jan 14, 2025
e2c7f26
[nrf fromtree] manifest: Update nRF hw models to enable cracen HAL
aescolar Jan 14, 2025
4a61042
[nrf fromtree] manifest: Update nRF hw models to latest enabling crac…
aescolar Jan 22, 2025
7bdebc8
[nrf fromtree] modules: hal_nordic: use CLOCK_CONTROL_NRF2 for HFCLK …
piotrkoziar Nov 26, 2024
f6557a7
[nrf fromtree] modules: hal_nordic: enable CLOCK_CONTROL if nrf-80215…
piotrkoziar Jan 21, 2025
f5b015d
[nrf fromtree] net: Added configuring child timeouts on openthread start
kkasperczyk-no Jan 22, 2025
5ab6b34
[nrf fromtree] dts: common: nordic: Add clock source to timers
nordic-krch Dec 12, 2024
f1c91a4
[nrf fromtree] manifest: update hal_nordic
gmarull Jan 8, 2025
9e25dbd
[nrf fromtree] tests: drivers: uart: mix_fifo_poll: Fix for nrf54h20d…
nordic-krch Jan 15, 2025
191c11f
[nrf fromtree] Bluetooth: make MBEDTLS_AES_ROM_TABLES implied not sel…
valeriosetti Jan 13, 2025
6a3adad
[nrf fromtree] Bluetooth: crypto: add select PSA_WANT_ALG_ECB_NO_PADDING
valeriosetti Jan 14, 2025
17537a4
[nrf fromtree] Bluetooth: Host: imply MBEDTLS_PSA_P256M_DRIVER_ENABLE…
valeriosetti Jan 14, 2025
cfc2579
[nrf fromtree] tests: kernel: Increase MAX_THREAD_BYTES to 6
Vge0rge Jan 14, 2025
a2884ca
[nrf fromtree] mgmt: mcumgr: grp: os_mgmt: Fix compilation warning
anangl Jan 16, 2025
f3c301d
[nrf fromtree] Revert "arch: deprecate `_current`"
Jan 7, 2025
b5297cc
[nrf fromtree] kernel: move current thread pointer management to core…
Jan 7, 2025
405214d
[nrf fromtree] kernel: mark z_smp_current_get() with the const attribute
Jan 8, 2025
a0ac73c
[nrf fromtree] tests: twister: add supported toolchains for unit tests
nashif Jan 10, 2025
11e3898
[nrf fromtree] tests: drivers: uart: uart_mix_fifo_poll: Move counter…
nordic-krch Jan 20, 2025
df10f0b
[nrf fromtree] tests: drivers: uart: uart_mix_fifo_poll: Enable devic…
nordic-krch Jan 20, 2025
ce98176
[nrf fromtree] modules: hostap: Fix AP and no MBO build
krish2718 Jan 13, 2025
4a06b14
[nrf fromtree] modules: hostap: Fix advanced features disable
krish2718 Jan 13, 2025
b21e4dc
[nrf fromtree] tests: wifi: configs: Add a test for disable of advanc…
krish2718 Jan 13, 2025
0857d88
[nrf fromtree] modules: hostap: Remove redundant default
krish2718 Jan 13, 2025
88b28cc
[nrf fromtree] manifest: hostap: Pull fix for WMM AC disabled build
krish2718 Jan 13, 2025
d541434
[nrf fromtree] Bluetooth: Host: Remove HCI ECC emulation
jhedberg Dec 9, 2024
697eb0b
[nrf fromtree] Bluetooth: Host: Remove prompt from BT_ECC
jhedberg Jan 21, 2025
9ce7dc7
[nrf fromtree] doc: release: Add notes for Bluetooth ECDH changes
jhedberg Jan 21, 2025
faebf58
[nrf fromtree] modules: openthread: ble: Update after BT_LE_ADV_CONN …
anangl Jan 20, 2025
0b8b899
[nrf fromtree] audio: liblc3: Fix global include path issue
frkv Jan 23, 2025
bf508a1
[nrf fromtree] mesh: Fix common.h issue in onoff_level_lighting_vnd_app
frkv Jan 23, 2025
814a6ed
[nrf fromtree] secure storage: Add missing include for mbedtls_platfo…
frkv Jan 23, 2025
52b213c
[nrf fromtree] test: Bluetooth: crypto: increase stack size for all t…
valeriosetti Jan 23, 2025
0745a9e
[nrf fromtree] Bluetooth: Host: add PSA_WANT_xxx_IMPORT/EXPORT to BT_ECC
valeriosetti Jan 23, 2025
4802fb1
[nrf fromlist] Bluetooth: BAP: Remove GATT_CACHING req for unicast se…
Thalley Jan 20, 2025
dfcc370
[nrf fromlist] manifest: wifi: CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG…
frkv Jan 24, 2025
041ac33
[nrf fromlist] wifi: Resolve PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 dep…
frkv Jan 28, 2025
be4d27e
[nrf fromlist] wifi: hostap: Fixing naming collisions for some TLS co…
frkv Jan 28, 2025
a5c873b
[nrf fromtree] bluetooth: host: Add select PSA_WANT_ALG_ECB_NO_PADDING
anangl Jan 14, 2025
78ee6c9
[nrf fromtree] samples: net: prometheus: Add netif dependency
rlubos Jan 29, 2025
03ae7e2
[nrf noup] boards: nordic: nrf7002dk: Bring back NS variants
anangl Jan 8, 2025
9dd58f2
[nrf noup] Revert "mbedtls: auto-select MBEDTLS_CIPHER_AES_ENABLED wh…
anangl Jan 8, 2025
a066486
[nrf noup] draft: update MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG deps
Vge0rge Jan 7, 2025
f22cb03
[nrf noup] tests: arm_irq_vector_table: Disable starting of SSF client
anangl Jan 24, 2025
e94b82c
[nrf fromlist] mbedtls: Separate psa_crypto_init in its own SYS_INIT
frkv Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
407 changes: 407 additions & 0 deletions .github/test-spec.yml

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .github/workflows/commit-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Commit tags

on:
pull_request:
types: [synchronize, opened, reopened, edited, labeled, unlabeled,
milestoned, demilestoned, assigned, unassigned, ready_for_review,
review_requested]

jobs:
commit_tags:
runs-on: ubuntu-22.04
name: Run commit tags checks on patch series (PR)
steps:
- name: Update PATH for west
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Checkout the code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Run the commit tags
uses: nrfconnect/action-commit-tags@main
with:
target: .
upstream: zephyrproject-rtos/zephyr/main
6 changes: 3 additions & 3 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
git config --global user.name "Your Name"
git remote -v
# Ensure there's no merge commits in the PR
[[ "$(git rev-list --merges --count origin/${BASE_REF}..)" == "0" ]] || \
(echo "::error ::Merge commits not allowed, rebase instead";false)
#[[ "$(git rev-list --merges --count origin/${BASE_REF}..)" == "0" ]] || \
#(echo "::error ::Merge commits not allowed, rebase instead";false)
rm -fr ".git/rebase-apply"
rm -fr ".git/rebase-merge"
git rebase origin/${BASE_REF}
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
# Increase rename limit to allow for large PRs
git config diff.renameLimit 10000
./scripts/ci/check_compliance.py --annotate -e KconfigBasic -e ClangFormat \
-c origin/${BASE_REF}..
-e Kconfig -e KconfigBasicNoModules -e ModulesMaintainers -c origin/${BASE_REF}..

- name: upload-results
uses: actions/upload-artifact@v4
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/manifest-PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: handle manifest PR
on:
pull_request_target:
types: [opened, synchronize, closed]
branches:
- main


jobs:
call-manifest-pr-action:
runs-on: ubuntu-latest
steps:
- name: handle manifest PR
uses: nrfconnect/action-manifest-pr@main
with:
token: ${{ secrets.NCS_GITHUB_TOKEN }}
manifest-pr-title-details: ${{ github.event.pull_request.title }}
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@Library("CI_LIB") _

def pipeline = new ncs.sdk_zephyr.Main()

pipeline.run(JOB_NAME)
1 change: 0 additions & 1 deletion MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,6 @@ Documentation:
- doc/images/Zephyr-Kite-in-tree.png
- doc/index-tex.rst
- doc/index.rst
- doc/kconfig.rst
- doc/templates/sample.tmpl
- doc/templates/board.tmpl
- boards/index.rst
Expand Down
2 changes: 1 addition & 1 deletion arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ config ARC_CURRENT_THREAD_USE_NO_TLS
RGF_NUM_BANKS the parameter is disabled by-default because banks syncronization
requires significant time, and it slows down performance.
ARCMWDT works with tls pointer in different way then GCC. Optimized access to
TLS pointer via arch_current_thread() does not provide significant advantages
TLS pointer via the _current symbol does not provide significant advantages
in case of MetaWare.

config GEN_ISR_TABLES
Expand Down
2 changes: 1 addition & 1 deletion arch/arc/core/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static bool z_check_thread_stack_fail(const uint32_t fault_addr, uint32_t sp)
{
#if defined(CONFIG_MULTITHREADING)
uint32_t guard_end, guard_start;
const struct k_thread *thread = arch_current_thread();
const struct k_thread *thread = _current;

if (!thread) {
/* TODO: Under what circumstances could we get here ? */
Expand Down
4 changes: 2 additions & 2 deletions arch/arc/core/irq_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)

__asm__ volatile("sync");

/* If arch_current_thread() was aborted in the offload routine, we shouldn't be here */
__ASSERT_NO_MSG((arch_current_thread()->base.thread_state & _THREAD_DEAD) == 0);
/* If _current was aborted in the offload routine, we shouldn't be here */
__ASSERT_NO_MSG((_current->base.thread_state & _THREAD_DEAD) == 0);
}

/* need to be executed on every core in the system */
Expand Down
16 changes: 8 additions & 8 deletions arch/arc/core/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
#ifdef CONFIG_MULTITHREADING
void *z_arch_get_next_switch_handle(struct k_thread **old_thread)
{
*old_thread = arch_current_thread();
*old_thread = _current;

return z_get_next_switch_handle(NULL);
}
Expand All @@ -227,16 +227,16 @@ void *z_arch_get_next_switch_handle(struct k_thread **old_thread)
FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,
void *p1, void *p2, void *p3)
{
setup_stack_vars(arch_current_thread());
setup_stack_vars(_current);

/* possible optimizaiton: no need to load mem domain anymore */
/* need to lock cpu here ? */
configure_mpu_thread(arch_current_thread());
configure_mpu_thread(_current);

z_arc_userspace_enter(user_entry, p1, p2, p3,
(uint32_t)arch_current_thread()->stack_info.start,
(arch_current_thread()->stack_info.size -
arch_current_thread()->stack_info.delta), arch_current_thread());
(uint32_t)_current->stack_info.start,
(_current->stack_info.size -
_current->stack_info.delta), _current);
CODE_UNREACHABLE;
}
#endif
Expand Down Expand Up @@ -336,7 +336,7 @@ int arc_vpx_lock(k_timeout_t timeout)

id = _current_cpu->id;
#if (CONFIG_MP_MAX_NUM_CPUS > 1) && defined(CONFIG_SCHED_CPU_MASK)
__ASSERT(!arch_is_in_isr() && (arch_current_thread()->base.cpu_mask == BIT(id)), "");
__ASSERT(!arch_is_in_isr() && (_current->base.cpu_mask == BIT(id)), "");
#endif
k_spin_unlock(&lock, key);

Expand All @@ -355,7 +355,7 @@ void arc_vpx_unlock(void)

key = k_spin_lock(&lock);
#if (CONFIG_MP_MAX_NUM_CPUS > 1) && defined(CONFIG_SCHED_CPU_MASK)
__ASSERT(!arch_is_in_isr() && (arch_current_thread()->base.cpu_mask == BIT(id)), "");
__ASSERT(!arch_is_in_isr() && (_current->base.cpu_mask == BIT(id)), "");
#endif
id = _current_cpu->id;
k_spin_unlock(&lock, key);
Expand Down
2 changes: 1 addition & 1 deletion arch/arc/core/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr)

void *_Preserve_flags _mwget_tls(void)
{
return (void *)(arch_current_thread()->tls);
return (void *)(_current->tls);
}

#else
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/core/cortex_a_r/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ bool z_arm_fault_undef_instruction_fp(void)
* context because it is about to be overwritten.
*/
if (((_current_cpu->nested == 2)
&& (arch_current_thread()->base.user_options & K_FP_REGS))
&& (_current->base.user_options & K_FP_REGS))
|| ((_current_cpu->nested > 2)
&& (spill_esf->undefined & FPEXC_EN))) {
/*
Expand All @@ -196,7 +196,7 @@ bool z_arm_fault_undef_instruction_fp(void)
* means that a thread that uses the VFP does not have to,
* but should, set K_FP_REGS on thread creation.
*/
arch_current_thread()->base.user_options |= K_FP_REGS;
_current->base.user_options |= K_FP_REGS;
}

return false;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/core/cortex_a_r/swap_helper.S
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ SECTION_FUNC(TEXT, z_arm_do_swap)

#if defined(CONFIG_FPU_SHARING)
ldrb r0, [r2, #_thread_offset_to_user_options]
tst r0, #K_FP_REGS /* arch_current_thread()->base.user_options & K_FP_REGS */
tst r0, #K_FP_REGS /* _current->base.user_options & K_FP_REGS */
beq out_fp_inactive

mov ip, #FPEXC_EN
Expand Down Expand Up @@ -152,7 +152,7 @@ out_fp_inactive:

#if defined(CONFIG_FPU_SHARING)
ldrb r0, [r2, #_thread_offset_to_user_options]
tst r0, #K_FP_REGS /* arch_current_thread()->base.user_options & K_FP_REGS */
tst r0, #K_FP_REGS /* _current->base.user_options & K_FP_REGS */
beq in_fp_inactive

mov r3, #FPEXC_EN
Expand Down
36 changes: 18 additions & 18 deletions arch/arm/core/cortex_a_r/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,
{

/* Set up privileged stack before entering user mode */
arch_current_thread()->arch.priv_stack_start =
(uint32_t)z_priv_stack_find(arch_current_thread()->stack_obj);
_current->arch.priv_stack_start =
(uint32_t)z_priv_stack_find(_current->stack_obj);
#if defined(CONFIG_MPU_STACK_GUARD)
#if defined(CONFIG_THREAD_STACK_INFO)
/* We're dropping to user mode which means the guard area is no
Expand All @@ -208,37 +208,37 @@ FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,
* which accounted for memory borrowed from the thread stack.
*/
#if FP_GUARD_EXTRA_SIZE > 0
if ((arch_current_thread()->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) {
arch_current_thread()->stack_info.start -= FP_GUARD_EXTRA_SIZE;
arch_current_thread()->stack_info.size += FP_GUARD_EXTRA_SIZE;
if ((_current->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) {
_current->stack_info.start -= FP_GUARD_EXTRA_SIZE;
_current->stack_info.size += FP_GUARD_EXTRA_SIZE;
}
#endif /* FP_GUARD_EXTRA_SIZE */
arch_current_thread()->stack_info.start -= MPU_GUARD_ALIGN_AND_SIZE;
arch_current_thread()->stack_info.size += MPU_GUARD_ALIGN_AND_SIZE;
_current->stack_info.start -= MPU_GUARD_ALIGN_AND_SIZE;
_current->stack_info.size += MPU_GUARD_ALIGN_AND_SIZE;
#endif /* CONFIG_THREAD_STACK_INFO */

/* Stack guard area reserved at the bottom of the thread's
* privileged stack. Adjust the available (writable) stack
* buffer area accordingly.
*/
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
arch_current_thread()->arch.priv_stack_start +=
((arch_current_thread()->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
_current->arch.priv_stack_start +=
((_current->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
MPU_GUARD_ALIGN_AND_SIZE_FLOAT : MPU_GUARD_ALIGN_AND_SIZE;
#else
arch_current_thread()->arch.priv_stack_start += MPU_GUARD_ALIGN_AND_SIZE;
_current->arch.priv_stack_start += MPU_GUARD_ALIGN_AND_SIZE;
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */
#endif /* CONFIG_MPU_STACK_GUARD */

#if defined(CONFIG_CPU_AARCH32_CORTEX_R)
arch_current_thread()->arch.priv_stack_end =
arch_current_thread()->arch.priv_stack_start + CONFIG_PRIVILEGED_STACK_SIZE;
_current->arch.priv_stack_end =
_current->arch.priv_stack_start + CONFIG_PRIVILEGED_STACK_SIZE;
#endif

z_arm_userspace_enter(user_entry, p1, p2, p3,
(uint32_t)arch_current_thread()->stack_info.start,
arch_current_thread()->stack_info.size -
arch_current_thread()->stack_info.delta);
(uint32_t)_current->stack_info.start,
_current->stack_info.size -
_current->stack_info.delta);
CODE_UNREACHABLE;
}

Expand Down Expand Up @@ -304,7 +304,7 @@ EXPORT_SYMBOL(z_arm_thread_is_in_user_mode);
uint32_t z_check_thread_stack_fail(const uint32_t fault_addr, const uint32_t psp)
{
#if defined(CONFIG_MULTITHREADING)
const struct k_thread *thread = arch_current_thread();
const struct k_thread *thread = _current;

if (thread == NULL) {
return 0;
Expand All @@ -314,7 +314,7 @@ uint32_t z_check_thread_stack_fail(const uint32_t fault_addr, const uint32_t psp
#if (defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)) && \
defined(CONFIG_MPU_STACK_GUARD)
uint32_t guard_len =
((arch_current_thread()->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
((_current->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
MPU_GUARD_ALIGN_AND_SIZE_FLOAT : MPU_GUARD_ALIGN_AND_SIZE;
#else
/* If MPU_STACK_GUARD is not enabled, the guard length is
Expand Down Expand Up @@ -377,7 +377,7 @@ uint32_t z_check_thread_stack_fail(const uint32_t fault_addr, const uint32_t psp
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
int arch_float_disable(struct k_thread *thread)
{
if (thread != arch_current_thread()) {
if (thread != _current) {
return -EINVAL;
}

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/core/cortex_m/swap_helper.S
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ in_fp_endif:
#if defined(CONFIG_MPU_STACK_GUARD) || defined(CONFIG_USERSPACE)
/* Re-program dynamic memory map */
push {r2,lr}
mov r0, r2 /* arch_current_thread() thread */
mov r0, r2 /* _current thread */
bl z_arm_configure_dynamic_mpu_regions
pop {r2,lr}
#endif
Expand Down
34 changes: 17 additions & 17 deletions arch/arm/core/cortex_m/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,
{

/* Set up privileged stack before entering user mode */
arch_current_thread()->arch.priv_stack_start =
(uint32_t)z_priv_stack_find(arch_current_thread()->stack_obj);
_current->arch.priv_stack_start =
(uint32_t)z_priv_stack_find(_current->stack_obj);
#if defined(CONFIG_MPU_STACK_GUARD)
#if defined(CONFIG_THREAD_STACK_INFO)
/* We're dropping to user mode which means the guard area is no
Expand All @@ -241,32 +241,32 @@ FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,
* which accounted for memory borrowed from the thread stack.
*/
#if FP_GUARD_EXTRA_SIZE > 0
if ((arch_current_thread()->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) {
arch_current_thread()->stack_info.start -= FP_GUARD_EXTRA_SIZE;
arch_current_thread()->stack_info.size += FP_GUARD_EXTRA_SIZE;
if ((_current->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) {
_current->stack_info.start -= FP_GUARD_EXTRA_SIZE;
_current->stack_info.size += FP_GUARD_EXTRA_SIZE;
}
#endif /* FP_GUARD_EXTRA_SIZE */
arch_current_thread()->stack_info.start -= MPU_GUARD_ALIGN_AND_SIZE;
arch_current_thread()->stack_info.size += MPU_GUARD_ALIGN_AND_SIZE;
_current->stack_info.start -= MPU_GUARD_ALIGN_AND_SIZE;
_current->stack_info.size += MPU_GUARD_ALIGN_AND_SIZE;
#endif /* CONFIG_THREAD_STACK_INFO */

/* Stack guard area reserved at the bottom of the thread's
* privileged stack. Adjust the available (writable) stack
* buffer area accordingly.
*/
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
arch_current_thread()->arch.priv_stack_start +=
((arch_current_thread()->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
_current->arch.priv_stack_start +=
((_current->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
MPU_GUARD_ALIGN_AND_SIZE_FLOAT : MPU_GUARD_ALIGN_AND_SIZE;
#else
arch_current_thread()->arch.priv_stack_start += MPU_GUARD_ALIGN_AND_SIZE;
_current->arch.priv_stack_start += MPU_GUARD_ALIGN_AND_SIZE;
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */
#endif /* CONFIG_MPU_STACK_GUARD */

z_arm_userspace_enter(user_entry, p1, p2, p3,
(uint32_t)arch_current_thread()->stack_info.start,
arch_current_thread()->stack_info.size -
arch_current_thread()->stack_info.delta);
(uint32_t)_current->stack_info.start,
_current->stack_info.size -
_current->stack_info.delta);
CODE_UNREACHABLE;
}

Expand Down Expand Up @@ -379,7 +379,7 @@ void configure_builtin_stack_guard(struct k_thread *thread)
uint32_t z_check_thread_stack_fail(const uint32_t fault_addr, const uint32_t psp)
{
#if defined(CONFIG_MULTITHREADING)
const struct k_thread *thread = arch_current_thread();
const struct k_thread *thread = _current;

if (thread == NULL) {
return 0;
Expand All @@ -389,7 +389,7 @@ uint32_t z_check_thread_stack_fail(const uint32_t fault_addr, const uint32_t psp
#if (defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)) && \
defined(CONFIG_MPU_STACK_GUARD)
uint32_t guard_len =
((arch_current_thread()->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
((_current->arch.mode & Z_ARM_MODE_MPU_GUARD_FLOAT_Msk) != 0) ?
MPU_GUARD_ALIGN_AND_SIZE_FLOAT : MPU_GUARD_ALIGN_AND_SIZE;
#else
/* If MPU_STACK_GUARD is not enabled, the guard length is
Expand Down Expand Up @@ -452,7 +452,7 @@ uint32_t z_check_thread_stack_fail(const uint32_t fault_addr, const uint32_t psp
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
int arch_float_disable(struct k_thread *thread)
{
if (thread != arch_current_thread()) {
if (thread != _current) {
return -EINVAL;
}

Expand Down Expand Up @@ -522,7 +522,7 @@ void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr,
{
z_arm_prepare_switch_to_main();

arch_current_thread_set(main_thread);
z_current_thread_set(main_thread);

#if defined(CONFIG_THREAD_LOCAL_STORAGE)
/* On Cortex-M, TLS uses a global variable as pointer to
Expand Down
Loading
Loading