Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2000 12:29:06 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        freebsd-alpha@freebsd.org
Subject:   Re: size problems with INVARIANTS/DIAGNOSTIC -current kernels
Message-ID:  <14827.11266.106941.884245@grasshopper.cs.duke.edu>
In-Reply-To: <Pine.BSF.4.21.0010141056220.22441-100000@salmon.nlsystems.com>
References:  <14823.2097.382096.942072@grasshopper.cs.duke.edu> <Pine.BSF.4.21.0010141056220.22441-100000@salmon.nlsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Doug Rabson writes:
 > 
 > I think the safest might be to put it into the PALVECT macro.

OK, the following gets me booting multi-user on my UP1000 with today's
-current after I remove the random device (not sure why, but with the
random device in the kerne, bootup stops at ldconfig, which is waiting
in rnd_something)..

Without modifying XentSys, I get bizzare panics just after init
starts.  I figured we'd also need it in XentUna1.

Do you approve of the following patch?


Index: alpha/exception.s
===================================================================
RCS file: /home/ncvs/src/sys/alpha/alpha/exception.s,v
retrieving revision 1.3
diff -u -r1.3 exception.s
--- alpha/exception.s	1999/08/28 00:38:26	1.3
+++ alpha/exception.s	2000/10/16 16:03:29
@@ -124,6 +124,8 @@
 	/* syscall number, passed in v0, is first arg, frame pointer second */
 	mov	v0,a0
 	mov	sp,a1			; .loc 1 __LINE__
+	br	pv,XentSys1
+XentSys1: LDGP(pv)	
 	CALL(syscall)
 
 	jmp	zero, exception_return
@@ -147,6 +149,8 @@
 	/* a0, a1, & a2 already set up */
 	ldiq	a3, ALPHA_KENTRY_UNA
 	mov	sp, a4			; .loc 1 __LINE__
+	br	pv, XentUna1
+XentUna1: LDGP(pv)	
 	CALL(trap)
 
 	jmp	zero, exception_return
Index: include/asm.h
===================================================================
RCS file: /home/ncvs/src/sys/alpha/include/asm.h,v
retrieving revision 1.7
diff -u -r1.7 asm.h
--- include/asm.h	2000/09/07 01:32:40	1.7
+++ include/asm.h	2000/10/16 14:33:47
@@ -250,7 +250,10 @@
 
 #define PALVECT(_name_)						\
 	ESETUP(_name_);						\
-	ERSAVE()
+	ERSAVE();						\
+	br	pv, _name_##lgp;				\
+_name_##lgp:;							\
+	LDGP(pv)
 
 #define	ESETUP(_name_)						\
 	.loc	1 __LINE__;					\




Thanks,

Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




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