Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 1996 13:23:53 +0000
From:      Poul-Henning Kamp <phk@critter.tfs.com>
To:        Stephen Hocking <sysseh@devetir.qld.gov.au>
Cc:        current@freebsd.org
Subject:   Re: Last mods to locore.s (v1.67) causes reboots 
Message-ID:  <311.830784233@critter.tfs.com>
In-Reply-To: Your message of "Mon, 29 Apr 1996 14:38:48 %2B1000." <199604290438.EAA14237@netfl15a.devetir.qld.gov.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Causes one of my machines (16Mb 486, IDE) to spontaneously reboot when boot. 
> It happens just after the "loading ..." prompt, before the screen clearing an
d 
> any of the usual messages about memory, version numbers & devices appear. 
> Anybody else before I put in a bug report?

Any idea how old your bootblocks are ?

Could you try this ?


Index: locore.s
===================================================================
RCS file: /home/ncvs/src/sys/i386/i386/locore.s,v
retrieving revision 1.67
diff -u -r1.67 locore.s
--- locore.s	1996/04/28 07:14:05	1.67
+++ locore.s	1996/04/29 06:21:01
@@ -203,10 +203,11 @@
 	popfl
 
 /*
- * Don't trust what the BIOS gives for %fs and %gs.  Trust the bootstrap
- * to set %cs, %ds, %es and %ss.
+ * Don't trust what the BIOS gives for %es, %fs and %gs.  Trust the bootstrap
+ * to set %cs, %ds and %ss.
  */
 	mov	%ds, %ax
+	mov	%ax, %es
 	mov	%ax, %fs
 	mov	%ax, %gs
 
@@ -219,6 +220,8 @@
  * returns via the old frame.
  */
 	movl	$R(tmpstk),%esp
+	mov	%ds, %ax
+	mov	%ax, %ds
 
 	call	identify_cpu
 
--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@ref.tfs.com       TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?311.830784233>