Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm64/include/cpu.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
#define cpu_setstack(td, sp) ((td)->td_frame->tf_sp = (sp)) | #define cpu_setstack(td, sp) ((td)->td_frame->tf_sp = (sp)) | ||||
#define cpu_spinwait() /* nothing */ | #define cpu_spinwait() /* nothing */ | ||||
/* Extract CPU affinity levels 0-3 */ | /* Extract CPU affinity levels 0-3 */ | ||||
#define CPU_AFF0(mpidr) (u_int)(((mpidr) >> 0) & 0xff) | #define CPU_AFF0(mpidr) (u_int)(((mpidr) >> 0) & 0xff) | ||||
#define CPU_AFF1(mpidr) (u_int)(((mpidr) >> 8) & 0xff) | #define CPU_AFF1(mpidr) (u_int)(((mpidr) >> 8) & 0xff) | ||||
#define CPU_AFF2(mpidr) (u_int)(((mpidr) >> 16) & 0xff) | #define CPU_AFF2(mpidr) (u_int)(((mpidr) >> 16) & 0xff) | ||||
#define CPU_AFF3(mpidr) (u_int)(((mpidr) >> 32) & 0xff) | #define CPU_AFF3(mpidr) (u_int)(((mpidr) >> 32) & 0xff) | ||||
#define CPU_AFF_MASK 0xff00ffffffUL /* Mask affinity fields in MPIDR_EL1 */ | #define CPU_AFF0_MASK 0xffUL | ||||
#define CPU_AFF1_MASK 0xff00UL | |||||
#define CPU_AFF2_MASK 0xff0000UL | |||||
#define CPU_AFF3_MASK 0xff00000000UL | |||||
#define CPU_AFF_MASK (CPU_AFF0_MASK | CPU_AFF1_MASK | \ | |||||
CPU_AFF2_MASK| CPU_AFF3_MASK) /* Mask affinity fields in MPIDR_EL1 */ | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define CPU_IMPL_ARM 0x41 | #define CPU_IMPL_ARM 0x41 | ||||
#define CPU_IMPL_BROADCOM 0x42 | #define CPU_IMPL_BROADCOM 0x42 | ||||
#define CPU_IMPL_CAVIUM 0x43 | #define CPU_IMPL_CAVIUM 0x43 | ||||
#define CPU_IMPL_DEC 0x44 | #define CPU_IMPL_DEC 0x44 | ||||
#define CPU_IMPL_INFINEON 0x49 | #define CPU_IMPL_INFINEON 0x49 | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |