Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/include/trap.h
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | |||||
#define EXC_PGM_ILLEGAL (1UL << 19) | #define EXC_PGM_ILLEGAL (1UL << 19) | ||||
#define EXC_PGM_PRIV (1UL << 18) | #define EXC_PGM_PRIV (1UL << 18) | ||||
#define EXC_PGM_TRAP (1UL << 17) | #define EXC_PGM_TRAP (1UL << 17) | ||||
/* DTrace trap opcode. */ | /* DTrace trap opcode. */ | ||||
#define EXC_DTRACE 0x7ffff808 | #define EXC_DTRACE 0x7ffff808 | ||||
/* Magic pointer to store TOC base and other info for trap handlers on ppc64 */ | /* Magic pointer to store TOC base and other info for trap handlers on ppc64 */ | ||||
#define TRAP_GENTRAP 0x1f0 | #define TRAP_GENTRAP 0x1d8 | ||||
jhibbits: Is 0x1e8 taken? | |||||
bdragonAuthorUnsubmitted Done Inline ActionsNope, I just apparently can't count backwards in hex. bdragon: Nope, I just apparently can't count backwards in hex. | |||||
#define TRAP_ENTRY 0x1f0 | |||||
#define TRAP_TOCBASE 0x1f8 | #define TRAP_TOCBASE 0x1f8 | ||||
#ifndef LOCORE | #ifndef LOCORE | ||||
struct trapframe; | struct trapframe; | ||||
struct thread; | struct thread; | ||||
extern int (*hmi_handler)(struct trapframe *); | extern int (*hmi_handler)(struct trapframe *); | ||||
void trap(struct trapframe *); | void trap(struct trapframe *); | ||||
int ppc_instr_emulate(struct trapframe *, struct thread *); | int ppc_instr_emulate(struct trapframe *, struct thread *); | ||||
#endif | #endif | ||||
#endif /* _POWERPC_TRAP_H_ */ | #endif /* _POWERPC_TRAP_H_ */ |
Is 0x1e8 taken?