linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Use correct x86 reboot vector
@ 2003-05-10  2:56 Andi Kleen
  2003-05-10  3:35 ` CaT
  2003-05-10 16:15 ` [PATCH] Use correct x86 reboot vector Jamie Lokier
  0 siblings, 2 replies; 37+ messages in thread
From: Andi Kleen @ 2003-05-10  2:56 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


Extensive discussion by various experts on the discuss@x86-64.org
mailing list concluded that the correct vector to restart an 286+ 
CPU is f000:fff0, not ffff:0000. Both seem to work on current systems, 
but the first is correct.

See the "DPMI on AMD64" and "Warm reboot for x86-64 linux" threads
on http://www.x86-64.org/mailing_lists/list?listname=discuss&listnum=0 
for more details.

This patch fixes the 2.5.69 i386 reboot code to use this too.

--- linux-2.5.69/arch/i386/kernel/reboot.c-o	2003-03-28 18:32:18.000000000 +0100
+++ linux-2.5.69/arch/i386/kernel/reboot.c	2003-05-10 04:51:35.000000000 +0200
@@ -123,7 +123,7 @@
 };
 static unsigned char jump_to_bios [] =
 {
-	0xea, 0x00, 0x00, 0xff, 0xff		/*    ljmp  $0xffff,$0x0000  */
+	0xea, 0xf0, 0xff, 0x00, 0xf0	/* ljmp  $0xf000:0xfff0 */
 };
 
 /*

^ permalink raw reply	[flat|nested] 37+ messages in thread
* Re: [PATCH] Use correct x86 reboot vector
@ 2003-05-13 12:49 Chuck Ebbert
  2003-05-13 18:45 ` H. Peter Anvin
  0 siblings, 1 reply; 37+ messages in thread
From: Chuck Ebbert @ 2003-05-13 12:49 UTC (permalink / raw)
  To: wingel; +Cc: Linux Kernel Mailing List

Christer Weinigel wrote:

> BTW, what does Windows do here?  Whatever Windows is using should work
> with Linux too.

  I've only ever seen NT4/2K do a warm reboot, if that's relevant.

  FreeBSD unmaps every page in the machine and then flushes the
TLB as its last-resort reboot attempt.  I assume this causes a
triplefault...

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2003-05-13 19:14 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-10  2:56 [PATCH] Use correct x86 reboot vector Andi Kleen
2003-05-10  3:35 ` CaT
2003-05-10  3:58   ` H. Peter Anvin
2003-05-10 14:49   ` Alan Cox
2003-05-10 16:17     ` Jamie Lokier
2003-05-10 18:47       ` Jos Hulzink
2003-05-11 18:01     ` Eric W. Biederman
2003-05-11 17:24       ` Alan Cox
2003-05-11 19:04         ` Eric W. Biederman
2003-05-12  5:48         ` [PATCH] always shutdown on the bootstrap processor Eric W. Biederman
2003-05-10 16:15 ` [PATCH] Use correct x86 reboot vector Jamie Lokier
2003-05-10 17:09   ` Randy.Dunlap
2003-05-10 19:41   ` Jos Hulzink
2003-05-10 18:10     ` Jamie Lokier
2003-05-10 20:55       ` Jos Hulzink
2003-05-11  3:50       ` Linus Torvalds
2003-05-11  9:37         ` Jos Hulzink
2003-05-11 14:01           ` Jamie Lokier
2003-05-11 17:38             ` Davide Libenzi
2003-05-11 17:56               ` Eric W. Biederman
2003-05-11 18:23                 ` Davide Libenzi
2003-05-11 19:12                   ` Eric W. Biederman
2003-05-12 15:36                     ` Maciej W. Rozycki
2003-05-13  6:35                     ` H. Peter Anvin
2003-05-11 18:38                 ` Linus Torvalds
2003-05-11 19:00                   ` Matt Mackall
2003-05-11 19:16                     ` Eric W. Biederman
2003-05-12  1:07                     ` H. Peter Anvin
2003-05-11 19:10                   ` Eric W. Biederman
2003-05-11 18:43                 ` Christer Weinigel
2003-05-11 20:22                   ` wingel
2003-05-11 20:26                     ` Davide Libenzi
2003-05-11 17:54         ` Eric W. Biederman
2003-05-13 12:49 Chuck Ebbert
2003-05-13 18:45 ` H. Peter Anvin
2003-05-13 19:04   ` Richard B. Johnson
2003-05-13 19:27     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).