diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2019-12-23 10:17:32 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-15 06:45:03 +0000 |
commit | b99fd2e38f0710d11f09e42ab35b7f0745c6912e (patch) | |
tree | 99c8f8e4d7f90dd7e83ceaef7486f1025451d948 /core/nds32/ec.lds.S | |
parent | 16176c70547ef9777cc04db3d201ccadf900639f (diff) | |
download | chrome-ec-b99fd2e38f0710d11f09e42ab35b7f0745c6912e.tar.gz |
core/nds32: remove unnecessary condition
In the previous implementation, we added conditions to prevent stack
overflow panic or memory get overwritten at first context switch.
Actually, we won't hit these two situation if scratchpad size is correct.
Let's remove them.
BUG=none
BRANCH=none
TEST=EC boots, and the "runtime" is saved in scratchpad at first context
switch.
Change-Id: I647e1ebb01dbb8fe24adc9f22b6581bb8f8f97fb
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1980097
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'core/nds32/ec.lds.S')
-rw-r--r-- | core/nds32/ec.lds.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S index ae26e58f7b..98edb36c3f 100644 --- a/core/nds32/ec.lds.S +++ b/core/nds32/ec.lds.S @@ -238,9 +238,10 @@ SECTIONS . = ALIGN(8); __bss_start = .; *(.bss.tasks) - *(.bss.task_scratchpad) . = ALIGN(8); *(.bss.system_stack) + . = ALIGN(8); + *(.bss.task_scratchpad) /* Rest of .bss takes care of its own alignment */ *(.bss) *(.bss.slow) |