Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/include/cpu.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
#define cpu_getstack(td) ((td)->td_frame->fixreg[1]) | #define cpu_getstack(td) ((td)->td_frame->fixreg[1]) | ||||
#define cpu_spinwait() __asm __volatile("or 27,27,27") /* yield */ | #define cpu_spinwait() __asm __volatile("or 27,27,27") /* yield */ | ||||
#define cpu_lock_delay() DELAY(1) | #define cpu_lock_delay() DELAY(1) | ||||
extern char btext[]; | extern char btext[]; | ||||
extern char etext[]; | extern char etext[]; | ||||
struct thread; | |||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
extern void enter_idle_powerx(void); | extern void enter_idle_powerx(void); | ||||
extern uint64_t can_wakeup; | extern uint64_t can_wakeup; | ||||
extern register_t lpcr; | extern register_t lpcr; | ||||
#endif | #endif | ||||
void cpu_halt(void); | void cpu_halt(void); | ||||
void cpu_reset(void); | void cpu_reset(void); | ||||
void cpu_sleep(void); | void cpu_sleep(void); | ||||
void flush_disable_caches(void); | void flush_disable_caches(void); | ||||
void fork_trampoline(void); | void fork_trampoline(void); | ||||
void swi_vm(void *); | void swi_vm(void *); | ||||
int cpu_machine_check(struct thread *, struct trapframe *, int *); | |||||
#endif /* _MACHINE_CPU_H_ */ | #endif /* _MACHINE_CPU_H_ */ |