Changeset 36e7ee98 in mainline for generic/src/console/console.c
- Timestamp:
- 2005-12-15T21:32:12Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cddc1639
- Parents:
- 49b6d32
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/console.c
r49b6d32 r36e7ee98 37 37 #include <func.h> 38 38 #include <print.h> 39 #include <arch/atomic.h> 39 40 40 41 /** Standard input character device. */ … … 53 54 ipl_t ipl; 54 55 55 if ( haltstate) {56 if (atomic_get(&haltstate)) { 56 57 /* If we are here, we are hopefully on the processor, that 57 58 * issued the 'halt' command, so proceed to read the character … … 61 62 return chardev->op->read(chardev); 62 63 /* no other way of interacting with user, halt */ 63 printf("cpu: halted - no kconsole\n"); 64 if (CPU) 65 printf("cpu%d: ", CPU->id); 66 else 67 printf("cpu: "); 68 printf("halted - no kconsole\n"); 64 69 cpu_halt(); 65 70 }
Note:
See TracChangeset
for help on using the changeset viewer.