diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-02-18 17:05:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-02-18 17:05:34 +0000 |
commit | 21a8622379f6a3e8e6dd8a4228fb1180469bf121 (patch) | |
tree | 2f2c42a2f411307f23ca164e7db3afcf26be9bfc /sys/arch/sparc | |
parent | cf879e80dcd93463ad602eec75ac09b8d77cd18f (diff) |
setpte4m is now only legal for kernel mappings.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index 882dee7145d..313cebc25fa 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.75 2000/02/04 19:16:13 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.76 2000/02/18 17:05:33 art Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -534,7 +534,7 @@ static u_long segfixmask = 0xffffffff; /* all bits valid to start */ ASI_SRMMUFP) u_int *getptep4m __P((struct pmap *, vaddr_t)); static __inline void setpgt4m __P((int *, int)); -__inline void setpte4m __P((vaddr_t va, int pte)); +void setpte4m __P((vaddr_t va, int pte)); #endif #if defined(SUN4) || defined(SUN4C) @@ -739,18 +739,17 @@ setpgt4m(ptep, pte) swap(ptep, pte); } -/* Set the page table entry for va to pte. */ -__inline void +/* + * Set the page table entry for va to pte. Only legal for kernel mappings. + */ +void setpte4m(va, pte) vaddr_t va; int pte; { - struct pmap *pm; int *ptep; - pm = cpuinfo.ctxinfo[getcontext4m()].c_pmap; - - ptep = getptep4m(pm, va); + ptep = getptep4m(pmap_kernel(), va); tlb_flush_page(va); setpgt4m(ptep, pte); } |