Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3a1c048 in mainline for kernel/arch/ia32/include/asm.h


Ignore:
Timestamp:
2009-03-12T17:55:26Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial
Children:
4a26e39
Parents:
3c79afe
Message:

make cpu_halt() really halt the execution

File:
1 edited

Legend:

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

    r3c79afe r3a1c048  
    5757/** Halt CPU
    5858 *
    59  * Halt the current CPU until interrupt event.
     59 * Halt the current CPU.
    6060 *
    6161 */
    6262static inline void cpu_halt(void)
    6363{
    64         asm volatile ("hlt\n");
     64        asm volatile (
     65                "0:\n"
     66                "       hlt\n"
     67                "       jmp 0b\n"
     68        );
    6569}
    6670
Note: See TracChangeset for help on using the changeset viewer.