Changes in kernel/arch/arm32/include/machine_func.h [ecf083dd:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/machine_func.h
recf083dd rd99c1d2 46 46 #include <arch/exception.h> 47 47 48 #define MACHINE_GENFUNC machine_genfunc 49 48 50 struct arm_machine_ops { 49 void (*machine_init)(void); 50 void (*machine_timer_irq_start)(void); 51 void (*machine_cpu_halt)(void); 52 void (*machine_get_memory_extents)(uintptr_t *, uintptr_t *); 53 void (*machine_irq_exception)(unsigned int, istate_t *); 54 void (*machine_frame_init)(void); 55 void (*machine_output_init)(void); 56 void (*machine_input_init)(void); 57 size_t (*machine_get_irq_count)(void); 51 void (*machine_init)(void); 52 void (*machine_timer_irq_start)(void); 53 void (*machine_cpu_halt)(void); 54 uintptr_t (*machine_get_memory_size)(void); 55 void (*machine_irq_exception)(int, istate_t*); 56 void (*machine_frame_init)(void); 57 void (*machine_output_init)(void); 58 void (*machine_input_init)(void); 58 59 }; 59 60 60 /** Pointer to arm_machine_ops structure being used. */ 61 extern struct arm_machine_ops *machine_ops; 61 extern struct arm_machine_ops machine_ops; 62 62 63 /** Initialize machine_ops pointer. */64 extern void machine_ops_init(void);65 63 66 64 /** Maps HW devices to the kernel address space using #hw_map. */ … … 75 73 extern void machine_cpu_halt(void); 76 74 77 /** Get extents of available memory. 75 76 /** Returns size of available memory. 78 77 * 79 * @param start Place to store memory start address. 80 * @param size Place to store memory size. 78 * @return Size of available memory. 81 79 */ 82 extern void machine_get_memory_extents(uintptr_t *start, uintptr_t *size); 80 extern uintptr_t machine_get_memory_size(void); 81 83 82 84 83 /** Interrupt exception handler. … … 87 86 * @param istate Saved processor state. 88 87 */ 89 extern void machine_irq_exception( unsignedint exc_no, istate_t *istate);88 extern void machine_irq_exception(int exc_no, istate_t *istate); 90 89 91 90 … … 105 104 extern void machine_input_init(void); 106 105 107 extern size_t machine_get_irq_count(void); 108 106 extern void machine_genfunc(void); 109 107 #endif 110 108
Note:
See TracChangeset
for help on using the changeset viewer.