mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
KPTDI_LAST renamed to KPTDI
This commit is contained in:
parent
988d75b3d6
commit
a27df7823f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=589
@ -35,9 +35,9 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.4 1993/09/30 23:16:17 rgrimes Exp $
|
||||
* $Id: pmap.c,v 1.5 1993/10/12 13:53:25 rgrimes Exp $
|
||||
*/
|
||||
static char rcsid[] = "$Id: pmap.c,v 1.4 1993/09/30 23:16:17 rgrimes Exp $";
|
||||
static char rcsid[] = "$Id: pmap.c,v 1.5 1993/10/12 13:53:25 rgrimes Exp $";
|
||||
|
||||
/*
|
||||
* Derived from hp300 version by Mike Hibler, this version by William
|
||||
@ -453,7 +453,7 @@ pmap_pinit(pmap)
|
||||
pmap->pm_pdir = (pd_entry_t *) kmem_alloc(kernel_map, NBPG);
|
||||
|
||||
/* wire in kernel global address entries */
|
||||
bcopy(PTD+KPTDI_FIRST, pmap->pm_pdir+KPTDI_FIRST, NKPDE*4);
|
||||
bcopy(PTD+KPTDI, pmap->pm_pdir+KPTDI, NKPDE*4);
|
||||
|
||||
/* install self-referential address mapping entry */
|
||||
*(int *)(pmap->pm_pdir+PTDPTDI) =
|
||||
|
@ -137,8 +137,8 @@ typedef struct pte pt_entry_t; /* Mach page table entry */
|
||||
#define LASTPTDI (NPTEPG-1) /* reserved for the future (unused) */
|
||||
#define APTDPTDI (LASTPTDI-1) /* alt ptd entry that points to APTD */
|
||||
#define RSVDPTDI (APTDPTDI-3) /* reserved for the near future */
|
||||
#define KPTDI_FIRST (RSVDPTDI-NKPDE)/* start of kernel virtual pde's */
|
||||
#define PTDPTDI (KPTDI_FIRST-1) /* ptd entry that points to ptd! */
|
||||
#define KPTDI (RSVDPTDI-NKPDE)/* start of kernel virtual pde's */
|
||||
#define PTDPTDI (KPTDI-1) /* ptd entry that points to ptd! */
|
||||
#define UPTDI (PTDPTDI-1) /* ptd entry for u./kernel&user stack */
|
||||
|
||||
/*
|
||||
|
@ -35,9 +35,9 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.4 1993/09/30 23:16:17 rgrimes Exp $
|
||||
* $Id: pmap.c,v 1.5 1993/10/12 13:53:25 rgrimes Exp $
|
||||
*/
|
||||
static char rcsid[] = "$Id: pmap.c,v 1.4 1993/09/30 23:16:17 rgrimes Exp $";
|
||||
static char rcsid[] = "$Id: pmap.c,v 1.5 1993/10/12 13:53:25 rgrimes Exp $";
|
||||
|
||||
/*
|
||||
* Derived from hp300 version by Mike Hibler, this version by William
|
||||
@ -453,7 +453,7 @@ pmap_pinit(pmap)
|
||||
pmap->pm_pdir = (pd_entry_t *) kmem_alloc(kernel_map, NBPG);
|
||||
|
||||
/* wire in kernel global address entries */
|
||||
bcopy(PTD+KPTDI_FIRST, pmap->pm_pdir+KPTDI_FIRST, NKPDE*4);
|
||||
bcopy(PTD+KPTDI, pmap->pm_pdir+KPTDI, NKPDE*4);
|
||||
|
||||
/* install self-referential address mapping entry */
|
||||
*(int *)(pmap->pm_pdir+PTDPTDI) =
|
||||
|
@ -137,8 +137,8 @@ typedef struct pte pt_entry_t; /* Mach page table entry */
|
||||
#define LASTPTDI (NPTEPG-1) /* reserved for the future (unused) */
|
||||
#define APTDPTDI (LASTPTDI-1) /* alt ptd entry that points to APTD */
|
||||
#define RSVDPTDI (APTDPTDI-3) /* reserved for the near future */
|
||||
#define KPTDI_FIRST (RSVDPTDI-NKPDE)/* start of kernel virtual pde's */
|
||||
#define PTDPTDI (KPTDI_FIRST-1) /* ptd entry that points to ptd! */
|
||||
#define KPTDI (RSVDPTDI-NKPDE)/* start of kernel virtual pde's */
|
||||
#define PTDPTDI (KPTDI-1) /* ptd entry that points to ptd! */
|
||||
#define UPTDI (PTDPTDI-1) /* ptd entry for u./kernel&user stack */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user