Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/include/pcpu.h
| Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| #ifndef PCPU_MD_FIELDS | #ifndef PCPU_MD_FIELDS | ||||
| #define PCPU_MD_FIELDS \ | #define PCPU_MD_FIELDS \ | ||||
| int pc_md_placeholder[32] | int pc_md_placeholder[32] | ||||
| #endif | #endif | ||||
| #ifdef _KERNEL | #ifdef _KERNEL | ||||
| #define pcpup ((struct pcpu *) powerpc_get_pcpup()) | #define pcpup (get_pcpu()) | ||||
| static __inline __pure2 struct thread * | static __inline __pure2 struct thread * | ||||
| __curthread(void) | __curthread(void) | ||||
| { | { | ||||
| struct thread *td; | struct thread *td; | ||||
| #ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
| __asm __volatile("mr %0,13" : "=r"(td)); | __asm __volatile("mr %0,13" : "=r"(td)); | ||||
| #else | #else | ||||
| Show All 20 Lines | |||||