Module Name:    src
Committed By:   tsutsui
Date:           Thu Nov 25 14:05:28 UTC 2010

Modified Files:
        src/sys/arch/pmax/stand/common: startprog.S

Log Message:
Fix botch on mips64 merge:
 - use correct offsets to pass args to loaded kernel in __mips_o32 case

Now NetBSD/pmax kernel properly boots, but init(8) still doesn't start
on GXemul emulating R3000 3MAX.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/pmax/stand/common/startprog.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/pmax/stand/common/startprog.S
diff -u src/sys/arch/pmax/stand/common/startprog.S:1.5 src/sys/arch/pmax/stand/common/startprog.S:1.6
--- src/sys/arch/pmax/stand/common/startprog.S:1.5	Mon Dec 14 00:46:11 2009
+++ src/sys/arch/pmax/stand/common/startprog.S	Thu Nov 25 14:05:27 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: startprog.S,v 1.5 2009/12/14 00:46:11 matt Exp $	*/
+/*	$NetBSD: startprog.S,v 1.6 2010/11/25 14:05:27 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -46,10 +46,10 @@
 	move	a1,a3
 
 #ifdef __mips_o32
-	lw	a2,48(sp)		# load everything from old stack we need
-	lw	a3,52(sp)
-	lw	$8,56(sp)		# use a4/t0 in case N32/N64 kernel
-	lw	$9,60(sp)		# use a5/t1 in case N32/N64 kernel
+	lw	a2,CALLFRAME_SIZ+16(sp)	# load everything from old stack we need
+	lw	a3,CALLFRAME_SIZ+20(sp)
+	lw	$8,CALLFRAME_SIZ+24(sp)	# use a4/t0 in case N32/N64 kernel
+	lw	$9,CALLFRAME_SIZ+28(sp)	# use a5/t1 in case N32/N64 kernel
 #else
 	move	a2,a4
 	move	a3,a5

Reply via email to