version 1.27, 2020/05/01 08:21:27 |
version 1.27.6.2, 2021/06/17 04:46:20 |
|
|
|
|
#ifdef _KERNEL |
#ifdef _KERNEL |
#include <machine/cpu.h> |
#include <machine/cpu.h> |
|
#ifdef _KERNEL_OPT |
|
#include "opt_param.h" |
|
#endif |
#endif |
#endif |
|
|
/* |
/* |
|
|
|
|
#define PGSHIFT 12 /* LOG2(NBPG) */ |
#define PGSHIFT 12 /* LOG2(NBPG) */ |
#define NBPG (1 << PGSHIFT) /* bytes/page */ |
#define NBPG (1 << PGSHIFT) /* bytes/page */ |
#define PGOFSET (NBPG-1) /* byte offset into page */ |
#define PGOFSET (NBPG - 1) /* byte offset into page */ |
|
|
#define SEGSHIFT (PGSHIFT + (PGSHIFT-PTESHIFT)) /* LOG2(NBSEG) */ |
#define SEGSHIFT (PGSHIFT + (PGSHIFT-PTESHIFT)) /* LOG2(NBSEG) */ |
#define NBSEG (1 << SEGSHIFT) /* bytes/segment (quadrant) */ |
#define NBSEG (1 << SEGSHIFT) /* bytes/segment (quadrant) */ |
#define SEGOFSET (NBSEG-1) /* byte offset into segment */ |
#define SEGOFSET (NBSEG - 1) /* byte offset into segment */ |
|
|
#define KERNBASE 0x00000000 /* start of kernel virtual */ |
#define KERNBASE 0x00000000 /* start of kernel virtual */ |
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) |
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) |
|
|
#define USPACE (UPAGES * NBPG) /* pages for user struct and kstack */ |
#define USPACE (UPAGES * NBPG) /* pages for user struct and kstack */ |
|
|
#ifndef MSGBUFSIZE |
#ifndef MSGBUFSIZE |
#define MSGBUFSIZE (2*NBPG) /* default message buffer size */ |
#define MSGBUFSIZE (2 * NBPG) /* default message buffer size */ |
#endif |
#endif |
|
|
/* |
/* |