1 #ifndef PP_EXEC_INTERNAL_H
2 #define PP_EXEC_INTERNAL_H
7 #include <exec/types.h>
9 * Assembly files don't want to see the prototypes
12 void sys_Dispatch(struct pt_regs
* regs
, LONG adjust
);
13 void _sys_SetSR(struct pt_regs
* regs
, LONG adjust
);
14 void _sys_swi_handler(void);
16 void switch_to_user_mode(void *, ULONG
*);
18 struct ExecBase
* PrepareExecBase(struct MemHeader
*);
21 * Routines for detecting the memory size.
23 struct MemHeader
* detect_memory(void);
24 void detect_memory_rest(struct ExecBase
* SysBase
);
26 void dm_data_abort_handler(void);
28 void set_sp_mode(void *, ULONG mode
);
30 /* Only temporarily for testing */
34 ULONG
get_cp15_r0(void);
35 ULONG
get_cp15_r1(void);
36 ULONG
get_cp15_r2(void);
41 #define DATA_ABORT_MARKER_ADDRESS 0x300