Skip to content

Commit

Permalink
arch: Kconfig: Increased the text area for kobject and priv stack
Browse files Browse the repository at this point in the history
When code relocation feature with userspace mode is turned on we
need a bit more memory to fit the text section for these 2
generated files.

Signed-off-by: Adithya Baglody <[email protected]>
  • Loading branch information
AdithyaBaglody authored and nashif committed Dec 7, 2018
1 parent 91c5b84 commit aa2890e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ config PRIVILEGED_STACK_SIZE

config PRIVILEGED_STACK_TEXT_AREA
int "Privileged stacks text area"
default 256 if (DEBUG || STACK_CANARIES)
default 256 if (DEBUG || STACK_CANARIES || CODE_DATA_RELOCATION)
default 128
depends on ARCH_HAS_USERSPACE
help
Expand All @@ -159,6 +159,7 @@ config PRIVILEGED_STACK_TEXT_AREA
config KOBJECT_TEXT_AREA
int "Size if kobject text area"
default 256 if (!SIZE_OPTIMIZATIONS || STACK_CANARIES || ARC)
default 256 if CODE_DATA_RELOCATION
default 128
depends on ARCH_HAS_USERSPACE
help
Expand Down

0 comments on commit aa2890e

Please sign in to comment.