Rev 603 | Rev 609 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 603 | Rev 607 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | #include <print.h> |
30 | #include <print.h> |
| 31 | #include <cpu.h> |
31 | #include <cpu.h> |
| 32 | #include <arch/asm.h> |
32 | #include <arch/asm.h> |
| 33 | #include <arch.h> |
33 | #include <arch.h> |
| 34 | #include <typedefs.h> |
34 | #include <typedefs.h> |
| - | 35 | #include <console/kconsole.h> |
|
| 35 | 36 | ||
| 36 | __u32 haltstate = 0; /**< Halt flag */ |
37 | __u32 haltstate = 0; /**< Halt flag */ |
| 37 | 38 | ||
| 38 | 39 | ||
| 39 | /** Halt wrapper |
40 | /** Halt wrapper |
| Line 43... | Line 44... | ||
| 43 | */ |
44 | */ |
| 44 | void halt(void) |
45 | void halt(void) |
| 45 | { |
46 | { |
| 46 | haltstate = 1; |
47 | haltstate = 1; |
| 47 | interrupts_disable(); |
48 | interrupts_disable(); |
| - | 49 | #ifdef CONFIG_DEBUG |
|
| - | 50 | printf("\n"); |
|
| - | 51 | kconsole(NULL); /* Run kconsole as a last resort to user */ |
|
| - | 52 | #endif |
|
| - | 53 | ||
| 48 | if (CPU) |
54 | if (CPU) |
| 49 | printf("cpu%d: halted\n", CPU->id); |
55 | printf("cpu%d: halted\n", CPU->id); |
| 50 | else |
56 | else |
| 51 | printf("cpu: halted\n"); |
57 | printf("cpu: halted\n"); |
| 52 | cpu_halt(); |
58 | cpu_halt(); |