Rev 331 | Rev 430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 331 | Rev 413 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | * |
41 | * |
42 | */ |
42 | */ |
43 | void halt(void) |
43 | void halt(void) |
44 | { |
44 | { |
45 | haltstate = 1; |
45 | haltstate = 1; |
46 | cpu_priority_high(); |
46 | interrupts_disable(); |
47 | if (CPU) |
47 | if (CPU) |
48 | printf("cpu%d: halted\n", CPU->id); |
48 | printf("cpu%d: halted\n", CPU->id); |
49 | else |
49 | else |
50 | printf("cpu: halted\n"); |
50 | printf("cpu: halted\n"); |
51 | cpu_halt(); |
51 | cpu_halt(); |