Skip to content

Conversation

@henrikbrixandersen
Copy link
Member

Only enable hardware stack protection by default on the NXP TWR-K18F development board if userspace is not enabled.

The NXP KE1xF SoC has 8 MPU regions, which is insufficient for using HW stack protection and userspace simultaneously.

Fixes bc9a498.

Signed-off-by: Henrik Brix Andersen [email protected]

Only enable hardware stack protection by default on the NXP TWR-K18F
development board if userspace is not enabled.

The NXP KE1xF SoC has 8 MPU regions, which is insufficient for using HW
stack protection and userspace simultaneously.

Fixes bc9a498.

Signed-off-by: Henrik Brix Andersen <[email protected]>
Copy link
Member

@ioannisg ioannisg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am OK with this. It's not ideal that HW Stack protection is enabled, here, in Kconfig.defconfig, while it is normally switched on in the board_defconfig files, but I cannot think of any better solution.

@nashif nashif merged commit 4b7a719 into zephyrproject-rtos:master Jan 12, 2021
@henrikbrixandersen henrikbrixandersen deleted the twr_ke18f_hw_stack_prot_vs_userspace branch January 12, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants