Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/vm_machdep.c
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_extern.h> | #include <vm/vm_extern.h> | ||||
#include <vm/vm_kern.h> | #include <vm/vm_kern.h> | ||||
#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> | ||||
_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."); | ||||
struct savefpu * | struct 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 567 Lines • Show Last 20 Lines |