From: Kevin O'Connor Date: Sat, 7 Feb 2009 18:25:25 +0000 (-0500) Subject: Minor - remove permanent_halt function. X-Git-Tag: rel-0.4.1~151 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=60b69990a521993a901abc07b17f5135c2a5ecb5;p=seabios.git Minor - remove permanent_halt function. The only caller is now in the 0xf0000 segment - so no need for it. --- diff --git a/src/romlayout.S b/src/romlayout.S index 4e3cdab..96aa836 100644 --- a/src/romlayout.S +++ b/src/romlayout.S @@ -403,16 +403,6 @@ post32: .code16gcc -// Shutdown a CPU. We want this in the 0xf000 section to ensure that -// the code wont be overwritten with something else. (Should -// something spurious wake up the CPU, we want to be sure that the hlt -// insn will still be present and will shutdown the CPU.) - DECLFUNC permanent_halt -permanent_halt: - cli -1: hlt - jmp 1b - // IRQ trampolines .macro IRQ_TRAMPOLINE num DECLFUNC irq_trampoline_0x\num diff --git a/src/smpdetect.c b/src/smpdetect.c index 0617be4..c54ec57 100644 --- a/src/smpdetect.c +++ b/src/smpdetect.c @@ -56,7 +56,8 @@ ASM16( " movw %ax, %ds\n" " lock incl smp_cpus\n" // Halt the processor. - " jmp permanent_halt\n" + "1:hlt\n" + " jmp 1b\n" ); /* find the number of CPUs by launching a SIPI to them */