Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/asm.h

    r82474ef rc4d11c5  
    6060 *
    6161 */
    62 static inline __attribute__((noreturn)) void cpu_halt(void)
    63 {
    64         while (true) {
    65                 asm volatile (
    66                         "hlt\n"
    67                 );
    68         }
     62static inline void cpu_halt(void)
     63{
     64        asm volatile (
     65                "0:\n"
     66                "       hlt\n"
     67                "       jmp 0b\n"
     68        );
    6969}
    7070
Note: See TracChangeset for help on using the changeset viewer.