From d9bfebcabd0cb6b8effd0cdf3c4bfa859abcbf54 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 20 Sep 2001 09:09:03 +0000 Subject: 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. --- sys/alpha/alpha/genassym.c | 1 + sys/alpha/alpha/locore.s | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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. -- cgit v1.1