Changeset 76fca31 in mainline for kernel/generic/src/lib/func.c
- Timestamp:
- 2008-12-16T19:02:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ae4443
- Parents:
- 8fe5980
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/func.c
r8fe5980 r76fca31 56 56 bool rundebugger = false; 57 57 58 // TODO test_and_set not defined on all arches59 // if (!test_and_set(&haltstate))60 58 if (!atomic_get(&haltstate)) { 61 59 atomic_set(&haltstate, 1); … … 67 65 68 66 interrupts_disable(); 69 #ifdef CONFIG_DEBUG 70 if (rundebugger) { 71 printf("\n");72 kconsole("panic" ); /* Run kconsole as a last resort to user */73 } 74 #endif 67 68 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE)) 69 if (rundebugger) 70 kconsole("panic", "\nLast resort kernel console ready\n", false); 71 #endif 72 75 73 if (CPU) 76 74 printf("cpu%u: halted\n", CPU->id);
Note:
See TracChangeset
for help on using the changeset viewer.