Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/include/cpufunc.h
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | |||||
| static __inline void | static __inline void | ||||
| intr_restore(register_t msr) | intr_restore(register_t msr) | ||||
| { | { | ||||
| mtmsr(msr); | mtmsr(msr); | ||||
| } | } | ||||
| static __inline struct pcpu * | static __inline struct pcpu * | ||||
| powerpc_get_pcpup(void) | get_pcpu(void) | ||||
| { | { | ||||
| struct pcpu *ret; | struct pcpu *ret; | ||||
| __asm __volatile("mfsprg %0, 0" : "=r"(ret)); | __asm __volatile("mfsprg %0, 0" : "=r"(ret)); | ||||
| return (ret); | return (ret); | ||||
| } | } | ||||
| #endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
| #endif /* !_MACHINE_CPUFUNC_H_ */ | #endif /* !_MACHINE_CPUFUNC_H_ */ | ||||