diff options
author | Sam Hurst <shurst@google.com> | 2020-08-03 13:06:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-05 18:41:25 +0000 |
commit | dede4e01ae4c877bb05d671087a6e85a29a0f902 (patch) | |
tree | 8aaaba7b7ce04c059ecd4df4de8a5609492065db /core/cortex-m | |
parent | e891cd5ebbb08c9101f1802c2dfcec755718d23f (diff) | |
download | chrome-ec-dede4e01ae4c877bb05d671087a6e85a29a0f902.tar.gz |
ec: change usage of dummy
Google is working to change its source code to use more inclusive
language. To that end, replace the term "dummy" with inclusive
alternatives.
BUG=b:162781382
BRANCH=None
TEST=make -j buildall
`grep -ir dummy *`
The only results are in "private/nordic_keyboard/sdk8.0.0"
which is not our code.
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/init.S | 2 | ||||
-rw-r--r-- | core/cortex-m/irq_handler.h | 2 | ||||
-rw-r--r-- | core/cortex-m/switch.S | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/cortex-m/init.S b/core/cortex-m/init.S index 5b7afb2ed8..19b98b0afb 100644 --- a/core/cortex-m/init.S +++ b/core/cortex-m/init.S @@ -103,7 +103,7 @@ _data_end: _data_lma_start: .long __data_lma_start -/* Dummy functions to avoid linker complaints */ +/* Mock functions to avoid linker complaints */ .global __aeabi_unwind_cpp_pr0 .global __aeabi_unwind_cpp_pr1 .global __aeabi_unwind_cpp_pr2 diff --git a/core/cortex-m/irq_handler.h b/core/cortex-m/irq_handler.h index 657a494c93..ae5d95cd94 100644 --- a/core/cortex-m/irq_handler.h +++ b/core/cortex-m/irq_handler.h @@ -25,7 +25,7 @@ #define DECLARE_IRQ_(irq, routine, priority) \ void IRQ_HANDLER(irq)(void) __attribute__((naked)); \ typedef struct { \ - int dummy[irq >= CONFIG_IRQ_COUNT ? -1 : 1]; \ + int fake[irq >= CONFIG_IRQ_COUNT ? -1 : 1]; \ } irq_num_check_##irq; \ void __keep routine(void); \ void IRQ_HANDLER(irq)(void) \ diff --git a/core/cortex-m/switch.S b/core/cortex-m/switch.S index ae76b64c37..f56c5e4c74 100644 --- a/core/cortex-m/switch.S +++ b/core/cortex-m/switch.S @@ -80,7 +80,7 @@ __switchto: .global __task_start .thumb_func __task_start: - ldr r2,=scratchpad @ area used as dummy thread stack for the first switch + ldr r2,=scratchpad @ area used as thread stack for the first switch mov r3, #2 @ use : priv. mode / thread stack / no floating point @ setting FP to unused here means first context switch @ will not store FP regs |