Changeset View
Changeset View
Standalone View
Standalone View
head/sys/i386/i386/vm_machdep.c
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
#include <vm/vm_page.h> | #include <vm/vm_page.h> | ||||
#include <vm/vm_map.h> | #include <vm/vm_map.h> | ||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#ifndef NSFBUFS | #ifndef NSFBUFS | ||||
#define NSFBUFS (512 + maxusers * 16) | #define NSFBUFS (512 + maxusers * 16) | ||||
#endif | #endif | ||||
_Static_assert(OFFSETOF_CURTHREAD == offsetof(struct pcpu, pc_curthread), | |||||
"OFFSETOF_CURTHREAD does not correspond with offset of pc_curthread."); | |||||
_Static_assert(OFFSETOF_CURPCB == offsetof(struct pcpu, pc_curpcb), | |||||
"OFFSETOF_CURPCB does not correspond with offset of pc_curpcb."); | |||||
_Static_assert(__OFFSETOF_MONITORBUF == offsetof(struct pcpu, pc_monitorbuf), | _Static_assert(__OFFSETOF_MONITORBUF == offsetof(struct pcpu, pc_monitorbuf), | ||||
"__OFFSETOF_MONITORBUF does not correspond with offset of pc_monitorbuf."); | "__OFFSETOF_MONITORBUF does not correspond with offset of pc_monitorbuf."); | ||||
union savefpu * | union savefpu * | ||||
get_pcb_user_save_td(struct thread *td) | get_pcb_user_save_td(struct thread *td) | ||||
{ | { | ||||
vm_offset_t p; | vm_offset_t p; | ||||
▲ Show 20 Lines • Show All 584 Lines • Show Last 20 Lines |