Changeset View
Changeset View
Standalone View
Standalone View
head/sys/riscv/include/pcpu.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#define ALT_STACK_SIZE 128 | #define ALT_STACK_SIZE 128 | ||||
#define PCPU_MD_FIELDS \ | #define PCPU_MD_FIELDS \ | ||||
struct pmap *pc_curpmap; /* Currently active pmap */ \ | struct pmap *pc_curpmap; /* Currently active pmap */ \ | ||||
uint32_t pc_pending_ipis; /* IPIs pending to this CPU */ \ | uint32_t pc_pending_ipis; /* IPIs pending to this CPU */ \ | ||||
char __pad[61] | uint32_t pc_hart; /* Hart ID */ \ | ||||
char __pad[57] | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct pcb; | struct pcb; | ||||
struct pcpu; | struct pcpu; | ||||
static inline struct pcpu * | static inline struct pcpu * | ||||
get_pcpu(void) | get_pcpu(void) | ||||
Show All 29 Lines |