summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2000-12-28 22:21:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2000-12-28 22:21:47 +0000
commit5594e61e1de45dbc6450c18668dd00c8d0c9be87 (patch)
tree2057e07b6f06efd5c9967b3bf8065f3e39ca435f /sys
parentaf5dd44e0d76a7dfe51e0c6f5013906e007e6eb8 (diff)
Define UADDR not as fixed address, but rather as what it really is:
a negative offset relative to the top of the adressing space. This fixes the miscompilation problems in locore_r2000.S with binutils 2.10. Tested by maja@ and myself.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/pmax/include/param.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/pmax/include/param.h b/sys/arch/pmax/include/param.h
index 45ffdda7c3c..810769255c2 100644
--- a/sys/arch/pmax/include/param.h
+++ b/sys/arch/pmax/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.9 2000/07/04 05:46:23 maja Exp $ */
+/* $OpenBSD: param.h,v 1.10 2000/12/28 22:21:46 miod Exp $ */
/* $NetBSD: param.h,v 1.18 1997/02/26 01:45:41 jonathan Exp $ */
/*
@@ -76,9 +76,8 @@
#define SINCR 1 /* increment of stack/NBPG */
#define UPAGES 2 /* pages of u-area */
-#define UADDR 0xffffd000 /* address of u */
+#define UADDR (-0x3000) /* address of u */
#define USPACE (UPAGES*NBPG) /* size of u-area in bytes */
-#define UVPN (UADDR>>PGSHIFT)/* virtual page number of u */
#define KERNELSTACK (UADDR+UPAGES*NBPG) /* top of kernel stack */
/*