param.h (66422f5b7a1a6055f0b2358268eb902aab6e2e3e) param.h (910548dea729e52e27a95187cd3f7e9859ba05f2)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 73 unchanged lines hidden (view full) ---

82#define ALIGNBYTES _ALIGNBYTES
83#define ALIGN(p) _ALIGN(p)
84
85#define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
86#define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */
87#define PAGE_MASK (PAGE_SIZE-1)
88#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
89
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 73 unchanged lines hidden (view full) ---

82#define ALIGNBYTES _ALIGNBYTES
83#define ALIGN(p) _ALIGN(p)
84
85#define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
86#define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */
87#define PAGE_MASK (PAGE_SIZE-1)
88#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
89
90#define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
90#define NPGPTD 1
91#define PDRSHIFT 22 /* LOG2(NBPDR) */
91#define PDRSHIFT 22 /* LOG2(NBPDR) */
92
93#define NBPTD (NPGPTD<<PAGE_SHIFT)
94#define NPDEPTD (NBPTD/(sizeof (pd_entry_t)))
95#define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
92#define NBPDR (1<<PDRSHIFT) /* bytes/page dir */
93#define PDRMASK (NBPDR-1)
94
95#define IOPAGES 2 /* pages of i/o permission bitmap */
96
97#ifndef KSTACK_PAGES
98#define KSTACK_PAGES 2 /* Includes pcb! */
99#endif

--- 39 unchanged lines hidden ---
96#define NBPDR (1<<PDRSHIFT) /* bytes/page dir */
97#define PDRMASK (NBPDR-1)
98
99#define IOPAGES 2 /* pages of i/o permission bitmap */
100
101#ifndef KSTACK_PAGES
102#define KSTACK_PAGES 2 /* Includes pcb! */
103#endif

--- 39 unchanged lines hidden ---