diff options
author | 2000-12-28 22:21:46 +0000 | |
---|---|---|
committer | 2000-12-28 22:21:46 +0000 | |
commit | f5acd7bd8a90ad3ee3c8a8082c6eaf5606d56572 (patch) | |
tree | 2dc818903da05fe33dd8dba9b3327328d960a082 | |
parent | Alter compilation flags, since binutils have changed some of their default (diff) | |
download | wireguard-openbsd-f5acd7bd8a90ad3ee3c8a8082c6eaf5606d56572.tar.xz wireguard-openbsd-f5acd7bd8a90ad3ee3c8a8082c6eaf5606d56572.zip |
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.
-rw-r--r-- | sys/arch/pmax/include/param.h | 5 |
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 */ /* |