diff options
author | peter <peter@FreeBSD.org> | 2001-09-20 09:09:03 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-20 09:09:03 +0000 |
commit | d9bfebcabd0cb6b8effd0cdf3c4bfa859abcbf54 (patch) | |
tree | ae8227dbf08b2606521fac485adf674ff750083b | |
parent | 1bfa117a36f2956ef8e4e334888d26520eeb6f37 (diff) | |
download | FreeBSD-src-d9bfebcabd0cb6b8effd0cdf3c4bfa859abcbf54.zip FreeBSD-src-d9bfebcabd0cb6b8effd0cdf3c4bfa859abcbf54.tar.gz |
Export kernbase like on the i386. I dont think the alpha kernel is
movable like on the x86, but this gets things in sync and reduces
the need for special cases in things like ps and libkvm etc.
-rw-r--r-- | sys/alpha/alpha/genassym.c | 1 | ||||
-rw-r--r-- | sys/alpha/alpha/locore.s | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/alpha/alpha/genassym.c b/sys/alpha/alpha/genassym.c index 5727dab..050486d 100644 --- a/sys/alpha/alpha/genassym.c +++ b/sys/alpha/alpha/genassym.c @@ -176,3 +176,4 @@ ASSYM(ALPHA_KENTRY_IF, ALPHA_KENTRY_IF); ASSYM(ALPHA_KENTRY_UNA, ALPHA_KENTRY_UNA); ASSYM(VPTBASE, VPTBASE); +ASSYM(KERNBASE, KERNBASE); diff --git a/sys/alpha/alpha/locore.s b/sys/alpha/alpha/locore.s index adb481f..8f3106f 100644 --- a/sys/alpha/alpha/locore.s +++ b/sys/alpha/alpha/locore.s @@ -71,7 +71,10 @@ .equ PTlev2,PTmap + (PTLEV1I << ALPHA_L2SHIFT) .equ PTlev1,PTlev2 + (PTLEV1I << ALPHA_L3SHIFT) .equ PTlev1pte,PTlev1 + (PTLEV1I * PTESIZE) - + + .globl kernbase + .equ kernbase,KERNBASE + /* * Perform actions necessary to switch to a new context. The * hwpcb should be in a0. |