Files
OpenCellular/include
Shawn Nematbakhsh 2af21940a3 core: Assert if task_get_current() cannot return a valid task ID
If task_get_current() is called early during initialization when we have
not yet done a context switch, our current_task pointer is invalid. Add
an assert to detect this case and put it behind CONFIG_DEBUG_BRINGUP, a
new config that's intended to enable possibly-costly pre-production
debugging.

BUG=chrome-os-partner:40677
TEST=Manual on glados. Define CONFIG_DEBUG_BRINGUP, then call i2c_write from
board_init and verify the new assert fails. Remove the i2c_write and verify
the new assert passes.
BRANCH=None

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I6014ccf739dcc4c8f4f960be2b89f01e423b65b5
Reviewed-on: https://chromium-review.googlesource.com/273541
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2015-06-12 22:21:15 +00:00
..
2013-12-17 21:27:53 +00:00
2015-06-04 19:33:00 +00:00
2013-04-05 14:28:42 -07:00
2015-05-19 02:46:27 +00:00
2015-05-19 02:46:27 +00:00
2014-02-08 00:14:48 +00:00
2015-06-11 18:27:24 +00:00
2013-10-25 20:12:49 +00:00
2012-10-26 09:49:38 -07:00
2015-06-10 18:24:05 +00:00
2014-10-29 22:23:43 +00:00
2015-05-27 03:58:16 +00:00
2015-05-27 03:58:16 +00:00
2015-05-27 03:58:16 +00:00
2015-05-19 02:46:27 +00:00
2015-05-19 02:46:27 +00:00
2013-06-26 09:08:23 -07:00
2013-10-30 23:10:13 +00:00
2013-08-07 12:43:48 -07:00
2015-04-13 20:00:58 +00:00
2015-06-09 12:10:42 +00:00
2011-12-07 19:10:02 +00:00
2015-04-30 02:31:22 +00:00
2015-03-06 08:48:39 +00:00
2012-10-25 14:12:11 -07:00
2012-10-25 14:12:10 -07:00
2013-10-30 23:10:10 +00:00
2015-06-09 12:10:37 +00:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2015-05-07 23:39:06 +00:00
2015-05-07 23:39:06 +00:00
2014-01-06 12:40:45 +00:00
2015-02-12 06:44:04 +00:00
2014-03-01 20:15:59 +00:00
2013-11-21 00:09:09 +00:00
2014-06-19 03:28:43 +00:00
2015-01-20 20:56:43 +00:00