Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2493 commits
Select commit Hold shift + click to select a range
01bf89f
[nrf fromtree] Bluetooth: crypto: add select PSA_WANT_ALG_ECB_NO_PADDING
valeriosetti Jan 14, 2025
d04e975
[nrf fromtree] Bluetooth: Host: imply MBEDTLS_PSA_P256M_DRIVER_ENABLE…
valeriosetti Jan 14, 2025
77d8fa5
[nrf fromtree] tests: kernel: Increase MAX_THREAD_BYTES to 6
Vge0rge Jan 14, 2025
3112522
[nrf fromtree] mgmt: mcumgr: grp: os_mgmt: Fix compilation warning
anangl Jan 16, 2025
cf375a2
[nrf fromtree] Revert "arch: deprecate `_current`"
Jan 7, 2025
d461596
[nrf fromtree] kernel: move current thread pointer management to core…
Jan 7, 2025
c33c111
[nrf fromtree] kernel: mark z_smp_current_get() with the const attribute
Jan 8, 2025
94ab74e
[nrf fromtree] tests: twister: add supported toolchains for unit tests
nashif Jan 10, 2025
1555e8e
[nrf fromtree] tests: drivers: uart: uart_mix_fifo_poll: Move counter…
nordic-krch Jan 20, 2025
732ad00
[nrf fromtree] tests: drivers: uart: uart_mix_fifo_poll: Enable devic…
nordic-krch Jan 20, 2025
5fcec13
[nrf fromtree] modules: hostap: Fix AP and no MBO build
krish2718 Jan 13, 2025
02b4d6a
[nrf fromtree] modules: hostap: Fix advanced features disable
krish2718 Jan 13, 2025
67fd3ed
[nrf fromtree] tests: wifi: configs: Add a test for disable of advanc…
krish2718 Jan 13, 2025
657cfd8
[nrf fromtree] modules: hostap: Remove redundant default
krish2718 Jan 13, 2025
e4749b6
[nrf fromtree] manifest: hostap: Pull fix for WMM AC disabled build
krish2718 Jan 13, 2025
7110602
[nrf fromtree] Bluetooth: Host: Remove HCI ECC emulation
jhedberg Dec 9, 2024
09ec251
[nrf fromtree] Bluetooth: Host: Remove prompt from BT_ECC
jhedberg Jan 21, 2025
f7d21e2
[nrf fromtree] doc: release: Add notes for Bluetooth ECDH changes
jhedberg Jan 21, 2025
ad276b1
[nrf fromtree] modules: openthread: ble: Update after BT_LE_ADV_CONN …
anangl Jan 20, 2025
ff477db
[nrf fromtree] audio: liblc3: Fix global include path issue
frkv Jan 23, 2025
22a3a64
[nrf fromtree] mesh: Fix common.h issue in onoff_level_lighting_vnd_app
frkv Jan 23, 2025
888e270
[nrf fromtree] secure storage: Add missing include for mbedtls_platfo…
frkv Jan 23, 2025
920fdc6
[nrf fromtree] test: Bluetooth: crypto: increase stack size for all t…
valeriosetti Jan 23, 2025
8037865
[nrf fromtree] Bluetooth: Host: add PSA_WANT_xxx_IMPORT/EXPORT to BT_ECC
valeriosetti Jan 23, 2025
7cee5ad
[nrf fromtree] samples: net: prometheus: Add netif dependency
rlubos Jan 29, 2025
1d8da90
[nrf fromtree] modules: hal_nordic: suppress 'unused variable' warnings
piotrkoziar Jan 27, 2025
5b42055
[nrf fromtree] bluetooth: host: Add select PSA_WANT_ALG_ECB_NO_PADDING
anangl Jan 14, 2025
27b31f2
[nrf fromtree] dts: nordic: nrf9280: define hsfll120
gmarull Jan 7, 2025
3173843
[nrf fromtree] boards: lilygo: ttgo_t7v1_5: Fix twister identifier
57300 Jan 31, 2025
830887c
[nrf fromtree] tests: kernel: workq_stop uninitialized variable
RobinKastberg Jan 10, 2025
348deff
[nrf fromtree] modules: hostap: Disable advanced feature for nRF boards
krish2718 Jan 30, 2025
e743ea3
[nrf fromlist] Bluetooth: BAP: Remove GATT_CACHING req for unicast se…
Thalley Jan 20, 2025
cf0873a
[nrf fromlist] manifest: wifi: CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG…
frkv Jan 24, 2025
6233a3b
[nrf fromlist] wifi: Resolve PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 dep…
frkv Jan 28, 2025
76bea55
[nrf fromlist] wifi: hostap: Fixing naming collisions for some TLS co…
frkv Jan 28, 2025
b2af352
[nrf fromlist] twister: Account for board & SoC extensions
57300 Jan 31, 2025
baaad1a
[nrf fromlist] dts: nordic: nrf5340: Revert nRF5340 IPC backend to rpmsg
sean-madigan Feb 11, 2025
fdf2815
[nrf noup] boards: nordic: nrf7002dk: Bring back NS variants
anangl Jan 8, 2025
6c8ef87
[nrf noup] Revert "mbedtls: auto-select MBEDTLS_CIPHER_AES_ENABLED wh…
anangl Jan 8, 2025
1298f35
[nrf noup] tests: arm_irq_vector_table: Disable starting of SSF client
anangl Jan 24, 2025
31205da
[nrf noup] bluetooth: Temporary Kconfig fix for BT RPC configuration
grochu Jan 31, 2025
015d5cc
[nrf noup] tests: secure_storage: fix test w/ ZMS backend on 54L15
tomi-font Jan 31, 2025
c37224c
[nrf noup] ble: Adding missing AES config for BT_CRYPTO
frkv Feb 4, 2025
fcb4238
[nrf noup] tests: secure_storage: Fix issues
juhaylinen Jan 29, 2025
8a64a2e
[nrf noup] samples: psa: Fix issues
juhaylinen Jan 30, 2025
5156ca3
Revert "[nrf noup] moduled: hal_nordic: require nrf-regtool"
karstenkoenig Feb 5, 2025
ca2e76c
[nrf fromtree] modules: hal_nordic: bump regtool to 8.1.2
karstenkoenig Feb 3, 2025
c8aea90
[nrf noup] moduled: hal_nordic: require nrf-regtool
gmarull Oct 30, 2024
6c9b2f2
[nrf noup] lib: net_buf: buf: Revert alloc DBG to WRN change
sean-madigan Feb 13, 2025
1e22329
[nrf fromtree] cmake: code relocation setting.
tejlmand Feb 12, 2025
d5aefbe
[nrf fromtree] scripts: code_relocate: support section filter
schouleu Jun 17, 2024
bf64a31
[nrf fromtree] bluetooth: host: Allow for ECDH operations through sys…
MarekPieta Feb 10, 2025
c951798
[nrf fromtree] tests: nrf: enable twister tests for nrf54l09pdk
nordic-segl Feb 14, 2025
776b31e
[nrf fromtree] tests: drivers: watchodg: Enable wdt_error_cases on nR…
nordic-segl Feb 11, 2025
5605c8c
[nrf fromtree] bluetooth: dis: add Kconfig for disabling optional cha…
kapi-no Feb 11, 2025
4e41871
[nrf fromtree] tests: kernel: gen_isr_table: Fix test for nRF VPR tar…
nordic-krch Jan 13, 2025
2099f12
[nrf fromtree] tests: kernel: gen_isr_table: Fix kernel test for nRF …
adamkondraciuk Feb 6, 2025
4084fe8
[nrf fromtree] samples: basic: add support for nRF54H20 cpuppr PWM
mstasiaknordic Dec 18, 2024
992516c
[nrf fromtree] tests: drivers: pwm: add support for nRF54H20 cpuppr PWM
mstasiaknordic Dec 18, 2024
f9c8350
[nrf fromtree] drivers: clock_control: nrf: start HFXO when using LFS…
mstasiaknordic Jan 15, 2025
03e2995
[nrf fromtree] boards: nordic: nrf54l20pdk: Add PWM to the list of su…
nordic-segl Feb 13, 2025
a08bb01
[nrf fromtree] boards: nordic: nrf54l20pdk: Define PWM LED
nordic-segl Feb 13, 2025
4d63c4e
[nrf fromtree] tests: drivers: pwm: Remove overlay for nRF54L20pdk
nordic-segl Feb 13, 2025
ba83fb0
[nrf fromtree] tests: drivers: sensor: temp: Add support for nRF54L20…
mstasiaknordic Jan 28, 2025
bc9a9ac
[nrf fromtree] tests: drivers: watchdog: Add further support for nRF5…
mstasiaknordic Jan 22, 2025
8a686a5
[nrf fromtree] tests: drivers: spi: Add support for nRF54L20 PDK
mstasiaknordic Jan 22, 2025
cb4ee54
[nrf fromlist] tests: drivers: spi: Add further support for nRF54L20 PDK
mstasiaknordic Jan 28, 2025
4789325
[nrf fromtree] tests: drivers: spi: Add support for nRF54L09 PDK
mstasiaknordic Jan 22, 2025
ef6161b
[nrf fromtree] drivers: adc: Add support for gain 2/7 in nRF devices
nordic-segl Feb 14, 2025
db40586
[nrf fromtree] tests: drivers: adc: add nRF54L20 configuration
nordic-segl Feb 14, 2025
314f3dd
[nrf fromtree] drivers: adc: Fix Vref selection for nRF54L20pdk
nordic-segl Feb 14, 2025
f22df30
[nrf noup] samples: mgmt: mcumgr: smp_svr: Add nrf5340dk-optimised sa…
nordicjm Nov 13, 2024
b323a20
[nrf fromtree] cmake: reports: Add support for JSON prefix
nordicjm Jan 30, 2025
a653cb7
[nrf fromtree] tests: pwm: pwm_gpio_loopback: add nrf platforms
nordic-pikr Jan 7, 2025
87b366d
[nrf fromtree] tests: pwm: pwm_gpio_loopback: nrf test stability
nordic-pikr Jan 22, 2025
b83eabe
[nrf fromtree] tests: drivers: pwm: pwm_gpio_loopback: adjust configu…
nordic-piks Feb 7, 2025
eb1ae9f
[nrf fromtree] bluetooth: controller: Only BT_CTLR_ECDH default y if …
sean-madigan Jan 31, 2025
a195e73
[nrf fromtree] bluetooth: host: Add PSA returns to debug prints
sean-madigan Jan 22, 2025
895b509
[nrf fromtree] dts: bindings: serial: nordic,nrf-uart-common: Extend …
nordic-krch Jan 23, 2025
04ece2c
[nrf fromtree] drivers: serial: nrfx_uarte: Rename FAST to FAST_PD
nordic-krch Jan 24, 2025
581f3c1
[nrf fromtree] drivers: serial: nrfx_uarte: Add support for higher ba…
nordic-krch Jan 24, 2025
c70e602
[nrf fromtree] drivers: serial: nrfx_uarte: Fix spurious RXTO event
nordic-krch Jan 24, 2025
fb03222
[nrf fromtree] tests: drivers: uart: uart_async_api: Tweak test_read_…
nordic-krch Jan 24, 2025
80cc531
[nrf fromtree] tests: drivers: uart: uart_async_api: Use 4Mbaud for n…
nordic-krch Jan 24, 2025
eee8e75
[nrf fromtree] cmake: modules: Prefer imgtool being in MCUboot directory
nordicjm Jan 9, 2025
f2f1caa
[nrf fromtree] cmake: mcuboot: Use zephyr-discovered imgtool
nordicjm Jan 20, 2025
1955241
[nrf fromtree] Bluetooth: Host: Add support for Advertising Coding Se…
Thomas-Deppe Feb 6, 2025
ed93f6e
[nrf fromtree] Bluetooth: Host: Add host support for Advertising Codi…
Thomas-Deppe Feb 11, 2025
a68f065
[nrf noup] entropy: Add fake entropy nRF PRNG driver
e-rk Feb 18, 2025
ff0fbbb
[nrf fromtree] tests/bsim UART: Let's connect the nrf54L UART00 in lo…
aescolar Feb 13, 2025
9bc8f72
[nrf fromtree] tests: drivers: uart: add 54l15 fast uart
nordic-pikr Feb 11, 2025
3c7c521
[nrf fromtree] boards nrf54l15bsim: Do not work around peripheral clo…
aescolar Feb 13, 2025
a2b3371
[nrf fromtree] boards: nrf_bsim: disable insted of deletion spi node
nordic-pikr Feb 13, 2025
5d070d4
[nrf fromtree] Bluetooth: Host: Ensure conn_ready access is thread safe
Yagoor Jan 8, 2025
ce4b321
[nrf fromtree] tests: bluetooth: Add missing mocks after fix on host
Yagoor Jan 13, 2025
2b02e6d
[nrf fromtree] bluetooth: mesh: fix mesh pb gatt cli uuid usage
m-alperen-sener Dec 13, 2024
4d1f543
[nrf fromtree] tests: bluetooth: mesh: Add PB-GATT provisioning test …
m-alperen-sener Dec 11, 2024
4305296
[nrf fromtree] Bluetooth: Mesh: use settings priority feature
KyraLengfeld Dec 17, 2024
9c4671f
[nrf fromtree] Bluetooth: Mesh: use secure storage in ble mesh
alxelax Nov 28, 2024
5021b9f
[nrf fromtree] tests: bluetooth: tester: Increase number of PSA key s…
m-alperen-sener Jan 10, 2025
a87e8a7
[nrf fromtree] bluetooth: mesh: Remove assertion for Received List me…
PavelVPV Jan 14, 2025
24d888d
[nrf fromtree] Bluetooth: host: Add overlays for bsim tests
akredalen Jan 14, 2025
0e6fbbd
[nrf fromtree] bluetooth: host: iterate over connections in TX list
aahmed-dewinelabs Jan 10, 2025
ba8340a
[nrf fromtree] bluetooth: host: add asserts to foreach in get_conn_ready
aahmed-dewinelabs Jan 16, 2025
e17bbfa
[nrf fromtree] bluetooth: host: fix connection reference before retur…
aahmed-dewinelabs Jan 16, 2025
8d51afb
[nrf fromtree] Bluetooth: Mesh: Fix Assert in bt_mesh_adv_unref when …
LingaoM Jan 14, 2025
98c266e
[nrf fromtree] Bluetooth: Host: bsim: Refactor common files
HaavardRei Jan 15, 2025
c4508b6
[nrf fromtree] tests: Bluetooth: Tester: Reorder btp_buf to fix varia…
Thalley Jan 20, 2025
1e073b5
[nrf fromtree] Bluetooth: Mesh: remove experimental flag from mbedtls…
alxelax Jan 20, 2025
c416d6f
[nrf fromtree] doc: update migration guide with mesh dependency
alxelax Jan 20, 2025
2fc86c1
[nrf fromtree] Bluetooth: Mesh: Improve logic for serving devices era…
de-nordic Dec 1, 2024
ba4d71a
[nrf fromtree] Bluetooth: Host: Remove leftover HCI ECC command checks
jhedberg Jan 27, 2025
c26cd49
[nrf fromtree] tests: Bluetooth: Tester: Avoid union with packed stru…
sjanc Jan 21, 2025
416e8fc
[nrf fromtree] tests: Bluetooth: Tester: Improve BTP MTU validation
sjanc Jan 24, 2025
f30c34f
[nrf fromtree] Bluetooth: Host: Fix overwriting ECC error value
jhedberg Jan 27, 2025
805ede3
[nrf fromtree] Bluetooth: Host: Specify parameter needs of `bt_set_name`
theob-pro Jan 10, 2025
d2a2a87
[nrf fromtree] Bluetooth: Host: GAP Device Name write now add null ch…
theob-pro Jan 15, 2025
e02acf3
[nrf fromtree] Tests: Bluetooth: Add MTU exchange procedure in testlib
theob-pro Jan 15, 2025
6f78320
[nrf fromtree] Tests: Bluetooth: Add 'device_name' GATT test
theob-pro Jan 10, 2025
4ca71a2
[nrf fromtree] Tests: Bluetooth: Add hci_ipc config to Twister integr…
ludvigsj Jan 28, 2025
f7e0944
[nrf fromtree] Bluetooth: Mesh: add missing device key candidate PSA …
ludvigsj Dec 17, 2024
bb4378e
[nrf fromtree] Bluetooth: Mesh: remove deprecated field in cdb subnet
alxelax Jan 29, 2025
a4c682d
[nrf fromtree] doc: update migration guide with mesh versions incompa…
alxelax Jan 29, 2025
b5268e1
[nrf fromtree] Bluetooth: Host: Updated Kconfig description
Balaklaka Feb 5, 2025
cc05f9b
[nrf fromtree] bluetooth: host: hci_core: add missing `NULL` check
JordanYates Feb 5, 2025
f8a9ebe
[nrf fromtree] bluetooth: host/crypto: fix the psa crypto init for host
m-alperen-sener Feb 6, 2025
622e25f
[nrf fromtree] bluetooth: mesh: pb_adv: ensure that bitwise NOT doesn…
PavelVPV Feb 6, 2025
1ab2cc6
[nrf fromtree] bluetooth: mesh: access: cast to uint8_t to avoid pote…
PavelVPV Feb 6, 2025
c950013
[nrf fromtree] bluetooth: mesh: proxy_msg: check that att mtu is big …
PavelVPV Feb 6, 2025
5fc17c7
[nrf fromtree] bluetooth: mesh: delayable_msg: cast to avoid truncati…
PavelVPV Feb 6, 2025
d191a5d
[nrf fromtree] Bluetooth: Mesh: Remove ADV_FLAG_PROXY_START, due to m…
LingaoM Nov 13, 2024
4d99685
[nrf fromtree] Bluetooth: Mesh: Remove START_PENDING flags
LingaoM Nov 13, 2024
e6cb111
[nrf fromtree] tests: bsim: Add testcase for bluetooth mesh extended …
LingaoM Dec 5, 2024
f1cc6bc
[nrf fromtree] Bluetooth: Mesh: remove double cdb node storing
alxelax Feb 7, 2025
c8d8d0f
[nrf fromtree] Bluetooth: testlib: Add addr string macro
HaavardRei Feb 10, 2025
ee1b5d6
[nrf fromtree] Bluetooth: tests: Add macros to babblekit
HaavardRei Feb 10, 2025
02382d5
[nrf fromtree] Bluetooth: Host: More bsim refactoring
HaavardRei Feb 6, 2025
4e26578
[nrf fromtree] tests: bluetooth: tester: mesh: Increase CMD tx bufs
PavelVPV Feb 10, 2025
06550b4
[nrf fromtree] tests: bluetooth: tester: Make BTP CMD thread stack si…
m-alperen-sener Feb 7, 2025
f600c99
[nrf fromtree] Bluetooth: Mesh: Remove experimental TF-M PSA
Balaklaka Feb 5, 2025
c5d37e5
[nrf fromtree] bluetooth: mesh: Correct callback check mesh blob client
m-alperen-sener Feb 12, 2025
107f9f0
[nrf noup] samples: bluetooth: mesh: Disable secure storage for real …
m-alperen-sener Feb 19, 2025
7d700de
[nrf noup] dts: Select SoftDevice Controller on nRF54L09
e-rk Feb 19, 2025
098da0b
Revert "[nrf noup] lib: net_buf: buf: Revert alloc DBG to WRN change"
HaavardRei Feb 21, 2025
74e5da2
[nrf fromtree] net: buf: revert disallowing blocking in syswq
HaavardRei Feb 21, 2025
24fec0c
[nrf fromlist] Bluetooth: Mesh: Update Kconfig help about Mesh on Sys…
ludvigsj Feb 21, 2025
e538f0c
[nrf fromtree] Bluetooth: controller: Fix ISO broadcaster pre-transmi…
mtpr-ot Aug 22, 2024
5f71dfc
[nrf fromtree] Bluetooth: Controller: Add back the use of pre-transmi…
cvinayak Jan 8, 2025
50f0302
[nrf fromtree] Bluetooth: controller: Fixup Broadcast ISO pre-transmi…
cvinayak Jan 8, 2025
d1dd497
[nrf fromtree] Bluetooth: Controller: Fix radio_tmr_start_us for sing…
cvinayak Dec 25, 2024
d28c320
[nrf fromtree] Bluetooth: Controller: Fix single timer s/w switch whe…
cvinayak Jan 1, 2025
230c063
[nrf fromtree] Bluetooth: Controller: Fix single timer s/w switch bas…
cvinayak Jan 1, 2025
8aa1511
[nrf fromtree] Bluetooth: Controller: Add radio_sim_nrf54l.h file
cvinayak Jan 15, 2025
c778e38
[nrf fromtree] Bluetooth: Controller: Fix nRF5 radio and event timer …
cvinayak Jan 1, 2025
af1dea4
[nrf fromtree] Bluetooth: Controller: Restrict ISO Sync Receiver sube…
cvinayak Jan 3, 2025
cf84a74
[nrf fromtree] Revert "Bluetooth: Controller: Fix ext conn create whe…
cvinayak Jan 2, 2025
a3a1f4b
[nrf fromtree] Bluetooth: Controller: Single timer use Extended Adver…
cvinayak Jul 6, 2024
a77836f
[nrf fromtree] Bluetooth: Controller: Single timer use Extended Scann…
cvinayak Dec 29, 2024
01bec65
[nrf fromtree] Bluetooth: Controller: Single timer use Conn Schedulin…
cvinayak Dec 29, 2024
8479874
[nrf fromtree] Bluetooth: Controller: Single timer use Periodic Adv S…
cvinayak Dec 29, 2024
1e36a81
[nrf fromtree] Bluetooth: Controller: Single timer use ISO Receive nR…
cvinayak Dec 29, 2024
7525c0e
[nrf fromtree] Bluetooth: Controller: Single timer use ISO Central nR…
cvinayak Dec 29, 2024
218b06f
[nrf fromtree] Bluetooth: Controller: Single timer use ISO Peripheral…
cvinayak Dec 29, 2024
6b8ec1e
[nrf fromtree] Bluetooth: Controller: Minor fix defines and condition…
cvinayak Dec 25, 2024
fe73c8b
[nrf fromtree] Bluetooth: Controller: Align DDPI usage with nRF54L po…
cvinayak Dec 25, 2024
b85af47
[nrf fromtree] Bluetooth: Controller: Add NRF_CCM support in nRF54L15…
cvinayak Sep 23, 2024
6de6e75
[nrf fromtree] Bluetooth: Controller: BUILD_ASSERT ticker nodes excee…
cvinayak Dec 28, 2024
0a614a3
[nrf fromtree] Bluetooth: Controller: Fix regression in connection up…
cvinayak Jan 17, 2025
32d63d8
[nrf fromtree] Bluetooth: Controller: Fix reset of drift_skip count
cvinayak Jan 17, 2025
8995779
[nrf fromtree] Bluetooth: Controller: Fix uninitialized is_aborted in…
cvinayak Jan 18, 2025
7318bd1
[nrf fromtree] Bluetooth: Controller: Fix regression in Code PHY S2 R…
cvinayak Jan 20, 2025
87de55b
[nrf fromtree] Bluetooth: Controller: Fix connection event busy check
cvinayak Jan 25, 2025
f28150c
[nrf fromtree] Bluetooth: Controller: Fix incorrect drift comp on PHY…
cvinayak Jan 25, 2025
34a8e0e
[nrf fromtree] Bluetooth: Controller: Workaround HCTO for BabbleSIM
cvinayak Jan 26, 2025
bae52a8
[nrf fromtree] Bluetooth: Controller: Fix Central ISO related to elap…
cvinayak Jan 28, 2025
e252e62
[nrf fromtree] Bluetooth: Controller: Fix Connected ISO to use accumu…
cvinayak Jan 28, 2025
cf5bed0
[nrf fromtree] Bluetooth: Controller: Fix incorrect event_count when …
cvinayak Jan 28, 2025
4a2ebc4
[nrf fromtree] Bluetooth: Controller: Fix coverity issue for cis == NULL
Thalley Feb 4, 2025
c368cd7
[nrf fromtree] Bluetooth: Controller: Fix LE Create BIG Complete even…
MariuszSkamra Feb 6, 2025
855ecdb
[nrf fromtree] Bluetooth: Controller: Fix casting in radio_aa_set for…
Thalley Feb 4, 2025
59ae559
[nrf fromtree] Bluetooth: Controller: Fix BT_CTLR_LOW_LAT_ULL conditi…
cvinayak Oct 4, 2024
02e2866
[nrf fromtree] Bluetooth: Controller: Fix device address in Periodic …
cvinayak Jan 30, 2025
7e22b4a
[nrf fromtree] Bluetooth: Controller: Fix sync_delay and latency in L…
cvinayak Feb 7, 2025
686b58e
[nrf fromtree] Bluetooth: Controller: Fix Periodic Sync for multiple …
cvinayak Feb 7, 2025
84483b8
[nrf fromtree] Bluetooth: Controller: Fix assertion terminating Perio…
cvinayak Feb 7, 2025
8d6cd64
[nrf fromtree] Bluetooth: Controller: Fix to release aux context stor…
cvinayak Feb 7, 2025
ba88cc2
[nrf fromtree] Bluetooth: Controller: Fix regression in scan aux release
cvinayak Feb 13, 2025
47cad3b
[nrf fromtree] Bluetooth: Controller: Fix redundant reset of sync aux…
cvinayak Feb 13, 2025
6eb30df
[nrf fromtree] soc: nordic: nrf54l: Fix num of irq for nRF54L20
adamkondraciuk Feb 13, 2025
f01cc4c
[nrf fromtree] manifest: Update hal_nordic with new cracen hal and rn…
aescolar Jan 14, 2025
88ce8e0
[nrf fromtree] manifest: update hal_nordic revision to integrate nrfx…
nika-nordic Jan 21, 2025
ae94cdf
[nrf fromtree] drivers: nrfx: Avoid unhandled event calling assert fu…
mah-eiSmart Jan 17, 2025
6b77915
[nrf fromtree] drivers: clock_control: nrf: ignore XOTUNE-related eve…
nika-nordic Jan 22, 2025
dd2b35e
Revert "[nrf noup] drivers: hwinfo: Support for reset reasons in nRF5…
nika-nordic Feb 13, 2025
0d6e8cf
[nrf fromtree] drivers: hwinfo: Support for reset reasons in nRF54H20
kl-cruz Nov 22, 2024
fd0f27a
[nrf fromtree] modules: hal_nordic: nrfx_config: Customize NRFX_SPIM_…
nordic-krch Dec 4, 2024
67c011b
Revert "[nrf noup] modules: hal_nordic: adjust nrfx reservations to NCS"
nika-nordic Feb 11, 2025
6f794f9
[nrf fromtree] modules: hal_nordic: nrfx: use templates from hal_nordic
masz-nordic Nov 20, 2024
75ec3a1
[nrf fromtree] modules: hal_nordic: nrfx: cleanup
masz-nordic Nov 20, 2024
3c9c7af
[nrf noup] modules: hal_nordic: adjust nrfx reservations to NCS
e-rk Oct 22, 2024
cd49156
[nrf noup] modules: hal_nordic: use Kconfig symbols in NCS reservation
nika-nordic Feb 12, 2025
3ed21ed
[nrf fromtree] modules: hal_nordic: nrfx: Move some defines back to C…
nordic-krch Jan 16, 2025
16dc0c6
[nrf fromtree] tests: drivers: pwm: Update gpio config
Jan 8, 2025
b91aa4f
[nrf noup] soc: nrf54l: Non-XIP KMU reserved memory fix
Vge0rge Feb 17, 2025
cd78af5
[nrf fromtree] tests: bluetooth: tester: Add PBP support
Frodevan Jan 24, 2025
0aa2141
[nrf fromlist] drivers: bluetooth: hci: Add retries for IPC interface
dchat-nordic Feb 12, 2025
7bba252
Revert "[nrf noup] samples: bluetooth: update autoconf.h header path"
nordic-krch Feb 17, 2025
a12ec54
Revert "[nrf noup] soc: nordic: nrf54l Fix for wait lasting half expe…
nordic-krch Feb 17, 2025
938c437
Revert "[nrf noup] soc: nordic: nrf54l: Port Soc.c to be compatible w…
nordic-krch Feb 17, 2025
43f054e
[nrf fromtree] tests: kernel: timer: timer_api: Tweak test_timer_rema…
nordic-krch Jan 14, 2025
61c3d47
[nrf fromtree] soc: nordic: nrf54l: Set SystemCoreClock using frequen…
nordic-krch Jan 17, 2025
9f0c5c9
[nrf fromtree] dts: common: nordic: nrf54l: Add clocks to cpu
nordic-krch Jan 3, 2025
fdc20c9
[nrf fromtree] boards: nordic: Set 64M CPU frequency for nrf54l20pdk …
nordic-krch Jan 3, 2025
8bd9e16
[nrf fromlist] soc: nordic: nrf54l: Setup power and clock only on sec…
nordic-krch Feb 17, 2025
d1d8c78
[nrf fromlist] soc: nordic: nrf54l: Explicitly include autoconf.h
nordic-krch Feb 17, 2025
00cfdc0
[nrf fromlist] drivers: clock_control: nrf: Move NRF_PERIPH_GET_FREQU…
nordic-krch Feb 18, 2025
25cc8b5
[nrf fromtree] drivers: i2c: i2c_nrfx_twis: patch dma buf mem section
bjarki-andreasen Feb 6, 2025
d6072d4
[nrf fromtree] tests: drivers: i2c: target_api: add nrf54h20
bjarki-andreasen Feb 6, 2025
73c8d65
[nrf fromtree] tests: drivers: i2c: target_api: add nrf54l15 to test …
bjarki-andreasen Feb 6, 2025
5f86809
[nrf fromtree] drivers: i2c: nrfx_twim_rtio: fix dma buf section attr
bjarki-andreasen Feb 11, 2025
47a8e12
[nrf fromtree] drivers: i2c: nrfx_twim_rtio: use msg_buf for rx if re…
bjarki-andreasen Feb 11, 2025
90c0360
[nrf fromtree] samples: drivers: i2c: rtio_loopback: add nrf boards
bjarki-andreasen Jan 8, 2025
a37c99e
[nrf fromtree] samples: drivers: i2c: rtio_loopback: add nrf54h20
bjarki-andreasen Feb 11, 2025
ca2d61e
[nrf fromtree] drivers: i2c: nrfx_twim_rtio: cast buf to non-const
bjarki-andreasen Jan 9, 2025
4cba24b
[nrf fromtree] samples: drivers: i2c: rtio_loopback: add fixture
bjarki-andreasen Feb 13, 2025
50128e3
[nrf fromtree] samples: drivers: i2c: rtio_loopback: change harness t…
bjarki-andreasen Feb 20, 2025
a22f20f
[nrf fromtree] manifest: Update bsim to version v2.5
aescolar Jan 20, 2025
5d28a5e
[nrf fromtree] doc boards nrfbsim: Update list of supported HW
aescolar Jan 23, 2025
b2d2019
[nrf fromtree] boards: nrf*_bsim: Detect attempt to configure not exi…
nordic-krch Jan 27, 2025
9a6076a
[nrf fromtree] manifest: Update nRF hw models to latest and leave bra…
aescolar Jan 28, 2025
73d52ac
[nrf fromtree] boards: nrf52_bsim: Remove disabling of LOG_BACKEND_UART
rugeGerritsen Jan 27, 2025
dc87df4
[nrf fromtree] boards: nrf_bsim: Set chosen console dts entry
rugeGerritsen Jan 27, 2025
63aa79c
[nrf fromtree] boards: nrf_bsim: Document how to use the console with…
rugeGerritsen Jan 27, 2025
6b3d347
[nrf fromtree] manifest: Update nRF hw models to latest
aescolar Feb 11, 2025
072a6f7
[nrf fromtree] manifest: Update nRF hw models to latest
aescolar Feb 13, 2025
912cca9
[nrf fromtree] manifest: Update nRF hw models to latest
rugeGerritsen Feb 17, 2025
c7ceba7
[nrf fromtree] drivers: pwm: nrfx: 0/100% duty for PWM120
mstasiaknordic Jan 30, 2025
65d9b7d
[nrf fromlist] dts: common: nordic: Add power node to nRF54L20
e-rk Feb 17, 2025
0b58ccd
[nrf fromlist] modules: hal_nordic: nrf_802154: enable constant latency
e-rk Feb 14, 2025
2bdfdda
[nrf fromlist] cmake: reports: Fix report targets
nordicjm Feb 20, 2025
dab6e40
[nrf fromlist] cmake: reports: Fix file prefix for tfm/bl2
nordicjm Feb 20, 2025
7b4d2eb
[nrf noup] tests: drivers: mspi: api: nRF54L15 fix frequency
magp-nordic Feb 19, 2025
1eff55d
[nrf fromtree] logging: frontends: stmesp: Fix logging single argumen…
nordic-krch Jan 22, 2025
e95813f
Revert "[nrf noup] samples: bluetooth: mesh: Disable secure storage f…
alxelax Feb 25, 2025
d445231
[nrf noup] samples: bluetooth: mesh: Disable secure storage for real …
alxelax Feb 25, 2025
273a61b
Revert "[nrf noup] settings: zms: use dedicated lookup cache hash fun…
rghaddab Feb 19, 2025
7a0cc95
Revert "[nrf fromlist] settings: ZMS: add a backend for ZMS (Zephyr M…
rghaddab Feb 19, 2025
5c9197a
[nrf fromtree] settings: ZMS: add a backend for ZMS (Zephyr Memory St…
rghaddab Sep 17, 2024
0d792bd
[nrf fromtree] fs: zms: multiple style fixes from previous PR review
rghaddab Oct 30, 2024
d8031a0
[nrf fromlist] settings: zms: fix some bugs related to the name's ID
rghaddab Feb 22, 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