1 1.11 matt /* $NetBSD: machdep.h,v 1.11 2012/08/16 18:22:40 matt Exp $ */ 2 1.1 chris 3 1.1 chris #ifndef _ARM32_BOOT_MACHDEP_H_ 4 1.1 chris #define _ARM32_BOOT_MACHDEP_H_ 5 1.1 chris 6 1.11 matt /* Define various stack sizes in pages */ 7 1.11 matt #ifndef IRQ_STACK_SIZE 8 1.11 matt #define IRQ_STACK_SIZE 1 9 1.11 matt #endif 10 1.11 matt #ifndef ABT_STACK_SIZE 11 1.11 matt #define ABT_STACK_SIZE 1 12 1.11 matt #endif 13 1.11 matt #ifndef UND_STACK_SIZE 14 1.11 matt #ifdef IPKDB 15 1.11 matt #define UND_STACK_SIZE 2 16 1.11 matt #else 17 1.11 matt #define UND_STACK_SIZE 1 18 1.11 matt #endif 19 1.11 matt #endif 20 1.11 matt #ifndef FIQ_STACK_SIZE 21 1.11 matt #define FIQ_STACK_SIZE 1 22 1.11 matt #endif 23 1.11 matt 24 1.11 matt 25 1.11 matt extern void (*cpu_reset_address)(void); 26 1.11 matt extern paddr_t cpu_reset_address_paddr; 27 1.11 matt 28 1.10 matt extern u_int data_abort_handler_address; 29 1.10 matt extern u_int prefetch_abort_handler_address; 30 1.10 matt extern u_int undefined_handler_address; 31 1.10 matt 32 1.10 matt extern char *booted_kernel; 33 1.10 matt 34 1.1 chris /* misc prototypes used by the many arm machdeps */ 35 1.9 dsl void halt(void); 36 1.9 dsl void parse_mi_bootargs(char *); 37 1.9 dsl void data_abort_handler(trapframe_t *); 38 1.9 dsl void prefetch_abort_handler(trapframe_t *); 39 1.9 dsl void undefinedinstruction_bounce(trapframe_t *); 40 1.9 dsl void dumpsys(void); 41 1.1 chris 42 1.2 chris /* 43 1.8 christos * note that we use void *as all the platforms have different ideas on what 44 1.2 chris * the structure is 45 1.2 chris */ 46 1.9 dsl u_int initarm(void *); 47 1.2 chris 48 1.2 chris /* from arm/arm32/intr.c */ 49 1.9 dsl void dosoftints(void); 50 1.9 dsl void set_spl_masks(void); 51 1.2 chris #ifdef DIAGNOSTIC 52 1.9 dsl void dump_spl_masks(void); 53 1.2 chris #endif 54 1.1 chris #endif 55