summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-09-07 11:10:27 -0700
committerGerrit <chrome-bot@google.com>2012-09-09 10:33:49 -0700
commitd66ef1213dc1fa015ffc7458ab9d67a669a326bc (patch)
treef7f701062d6fcb993b2dcc4215f1bf56d9276d4d /include/task.h
parentb35ad52db3dcc5441b948499e06f9ad773aff0c5 (diff)
downloadchrome-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 'include/task.h')
-rw-r--r--include/task.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/task.h b/include/task.h
index 075ed43698..2362d077c8 100644
--- a/include/task.h
+++ b/include/task.h
@@ -50,16 +50,9 @@ static inline void task_wake(task_id_t tskid)
task_set_event(tskid, TASK_EVENT_WAKE, 0);
}
-/* Return the identifier of the task currently running.
- *
- * When called in interrupt context, returns TASK_ID_INVALID. */
+/* Return the identifier of the task currently running. */
task_id_t task_get_current(void);
-/* Convert an address to the corresponding task ID. The address may be a stack
- * pointer or the task data for a task. Returns TASK_ID_INVALID if the address
- * does not correspond to a task. */
-task_id_t task_from_addr(uint32_t addr);
-
/* Return a pointer to the bitmap of events of the task. */
uint32_t *task_get_event_bitmap(task_id_t tsk);