Changeset 67a88c3 in mainline for kernel/generic/src/lib/func.c
- Timestamp:
- 2009-03-12T17:47:21Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a02e383
- Parents:
- ac8e7a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/func.c
rac8e7a9 r67a88c3 48 48 /** Halt wrapper 49 49 * 50 * Set halt flag and halt the cpu.50 * Set halt flag and halt the CPU. 51 51 * 52 52 */ … … 55 55 #ifdef CONFIG_DEBUG 56 56 bool rundebugger = false; 57 57 58 58 if (!atomic_get(&haltstate)) { 59 59 atomic_set(&haltstate, 1); … … 63 63 atomic_set(&haltstate, 1); 64 64 #endif 65 65 66 66 interrupts_disable(); 67 67 68 68 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE)) 69 if ( rundebugger)70 kconsole("panic", "\nLast resort kernel console ready \n", false);69 if ((rundebugger) && (kconsole_check_poll())) 70 kconsole("panic", "\nLast resort kernel console ready.\n", false); 71 71 #endif 72 72 … … 75 75 else 76 76 printf("cpu: halted\n"); 77 77 78 cpu_halt(); 78 79 }
Note:
See TracChangeset
for help on using the changeset viewer.