diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-09-07 11:10:27 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-09-09 10:33:49 -0700 |
commit | d66ef1213dc1fa015ffc7458ab9d67a669a326bc (patch) | |
tree | f7f701062d6fcb993b2dcc4215f1bf56d9276d4d /core/cortex-m/watchdog.c | |
parent | b35ad52db3dcc5441b948499e06f9ad773aff0c5 (diff) | |
download | chrome-ec-d66ef1213dc1fa015ffc7458ab9d67a669a326bc.tar.gz |
Track current task directly instead of computing from stack pointer
This is a precursor to supporting task-specific task sizes. I've
benchmarked this vs. the current stack pointer method; no measurable
performance difference.
BUG=chrome-os-partner:13814
TEST=boot EC; taskinfo; if it boots and doesn't print garbage, it worked
BRANCH=all
Change-Id: Ia326c3ab499ac03cce78dbacaa52f735601a171e
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32603
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/cortex-m/watchdog.c')
-rw-r--r-- | core/cortex-m/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/watchdog.c b/core/cortex-m/watchdog.c index 3ad89e94ab..d21bb4f1ec 100644 --- a/core/cortex-m/watchdog.c +++ b/core/cortex-m/watchdog.c @@ -34,7 +34,7 @@ void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp) if ((excep_lr & 0xf) == 1) uart_puts("(exc) ###\n"); else - uart_printf("(task %d) ###\n", task_from_addr(psp)); + uart_printf("(task %d) ###\n", task_get_current()); /* Ensure this debug message is always flushed to the UART */ uart_emergency_flush(); |