Add #ifdef _KERNEL ~ #endif to protect kernel variables from userland.
This commit is contained in:
parent
33f305090e
commit
cbac1a91d9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.15 2000/05/14 14:10:09 minoura Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.16 2000/08/26 23:23:43 minoura Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -132,6 +132,8 @@ struct pv_page {
|
||||
struct pv_entry pvp_pv[NPVPPG];
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
extern struct pmap kernel_pmap_store;
|
||||
|
||||
#define pmap_kernel() (&kernel_pmap_store)
|
||||
@ -159,4 +161,6 @@ void pmap_procwr __P((struct proc *, vaddr_t, size_t));
|
||||
void pmap_zero_page_uncached __P((paddr_t));
|
||||
#define PMAP_PAGEIDLEZERO(pa) pmap_zero_page_uncached((pa))
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_X68K_PMAP_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user