diff options
author | Paul Fagerburg <pfagerburg@google.com> | 2020-07-21 13:12:02 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-22 22:49:46 +0000 |
commit | 514923bc59f5a3435dbb7cbf348735ed41889ffe (patch) | |
tree | 15efb9db43b84f903e1915a78162e020808fec09 /core | |
parent | b93f139e47f8ced7ebe2414737296f9a6ba49cbc (diff) | |
download | chrome-ec-514923bc59f5a3435dbb7cbf348735ed41889ffe.tar.gz |
ec: change usage of "sane" per inclusive language
Google is working to change its source code to use more inclusive
language. To that end, replace the terms "sane", "sanity check", and
similar with inclusive/non-stigmatizing alternatives.
BUG=b:161832469
BRANCH=None
TEST=`make buildall -j` succeeds. `grep -Eir "sane|sanity" .` shows
results only in third-party code or documentation.
Signed-off-by: Paul Fagerburg <pfagerburg@chromium.org>
Change-Id: I29e78ab27f84f17b1ded75cfa10868fa4e5ae88c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311169
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/task.c | 2 | ||||
-rw-r--r-- | core/cortex-m0/task.c | 2 | ||||
-rw-r--r-- | core/minute-ia/task.c | 2 | ||||
-rw-r--r-- | core/nds32/init.S | 2 | ||||
-rw-r--r-- | core/nds32/task.c | 2 | ||||
-rw-r--r-- | core/riscv-rv32i/init.S | 2 | ||||
-rw-r--r-- | core/riscv-rv32i/task.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index 0cf93f2f05..75fbf99155 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -161,7 +161,7 @@ static uint32_t task_reset_state[TASK_ID_COUNT] = { #undef ENABLE_RESET #endif /* CONFIG_TASK_RESET_LIST */ -/* Sanity checks about static task invariants */ +/* Validity checks about static task invariants */ BUILD_ASSERT(TASK_ID_COUNT <= sizeof(unsigned) * 8); BUILD_ASSERT(TASK_ID_COUNT < (1 << (sizeof(task_id_t) * 8))); BUILD_ASSERT(BIT(TASK_ID_COUNT) < TASK_RESET_LOCK); diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c index 1d085431ac..5fa884fc3e 100644 --- a/core/cortex-m0/task.c +++ b/core/cortex-m0/task.c @@ -108,7 +108,7 @@ static const struct { /* Contexts for all tasks */ static task_ tasks[TASK_ID_COUNT]; -/* Sanity checks about static task invariants */ +/* Validity checks about static task invariants */ BUILD_ASSERT(TASK_ID_COUNT <= sizeof(unsigned) * 8); BUILD_ASSERT(TASK_ID_COUNT < (1 << (sizeof(task_id_t) * 8))); diff --git a/core/minute-ia/task.c b/core/minute-ia/task.c index 75cd09a513..7e7c836f7e 100644 --- a/core/minute-ia/task.c +++ b/core/minute-ia/task.c @@ -118,7 +118,7 @@ static const struct { /* Contexts for all tasks */ static task_ tasks[TASK_ID_COUNT]; -/* Sanity checks about static task invariants */ +/* Validity checks about static task invariants */ BUILD_ASSERT(TASK_ID_COUNT <= sizeof(unsigned) * 8); BUILD_ASSERT(TASK_ID_COUNT < (1 << (sizeof(task_id_t) * 8))); diff --git a/core/nds32/init.S b/core/nds32/init.S index f817aef346..b8e109c434 100644 --- a/core/nds32/init.S +++ b/core/nds32/init.S @@ -227,7 +227,7 @@ excep_handler: la $r0, saved_regs + 4 smw.bim $r1, [$r0], $r10, 0 smw.bim $r15,[$r0], $r15, 0xF - /* put a sane stack pointer */ + /* put a valid stack pointer */ la $sp, stack_end /* add IPC, IPSW to the context */ mfsr $r1, $IPC diff --git a/core/nds32/task.c b/core/nds32/task.c index d9aa6beda9..e92e418fba 100644 --- a/core/nds32/task.c +++ b/core/nds32/task.c @@ -118,7 +118,7 @@ static const struct { /* Contexts for all tasks */ static task_ tasks[TASK_ID_COUNT]; -/* Sanity checks about static task invariants */ +/* Validity checks about static task invariants */ BUILD_ASSERT(TASK_ID_COUNT <= sizeof(unsigned) * 8); BUILD_ASSERT(TASK_ID_COUNT < (1 << (sizeof(task_id_t) * 8))); diff --git a/core/riscv-rv32i/init.S b/core/riscv-rv32i/init.S index 2fc47d34d4..0bc99052da 100644 --- a/core/riscv-rv32i/init.S +++ b/core/riscv-rv32i/init.S @@ -386,7 +386,7 @@ excep_handler: la a0, saved_regs csrr sp, mscratch sw sp, 30*4(a0) - /* put a sane stack pointer */ + /* put a valid stack pointer */ la sp, stack_end /* jump to panic dump C routine */ jal report_panic diff --git a/core/riscv-rv32i/task.c b/core/riscv-rv32i/task.c index 3addbcd91f..14f204f8a2 100644 --- a/core/riscv-rv32i/task.c +++ b/core/riscv-rv32i/task.c @@ -114,7 +114,7 @@ static const struct { /* Contexts for all tasks */ static task_ tasks[TASK_ID_COUNT] __attribute__ ((section(".bss.tasks"))); -/* Sanity checks about static task invariants */ +/* Validity checks about static task invariants */ BUILD_ASSERT(TASK_ID_COUNT <= (sizeof(unsigned) * 8)); BUILD_ASSERT(TASK_ID_COUNT < (1 << (sizeof(task_id_t) * 8))); |