Changeset 32e8cd1 in mainline for kernel/arch/sparc32/src/machine_func.c
- Timestamp:
- 2013-12-28T17:16:44Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1023bcb
- Parents:
- f6f22cdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/src/machine_func.c
rf6f22cdb r32e8cd1 31 31 */ 32 32 /** @file 33 * 33 * @brief Definitions of machine specific functions. 34 34 * 35 * These functions enable to differentiate more kinds of sparcemulators36 * 37 * 35 * These functions enable to differentiate more kinds of SPARC emulators 36 * or CPUs. It's the same concept as "arch" functions on the architecture 37 * level. 38 38 */ 39 39 … … 54 54 } 55 55 56 /** Map sHW devices to the kernel address space using #hw_map. */56 /** Map HW devices to the kernel address space using #hw_map. */ 57 57 void machine_init(bootinfo_t *bootinfo) 58 58 { 59 (machine_ops->machine_init)(bootinfo);59 machine_ops->machine_init(bootinfo); 60 60 } 61 61 62 63 /** Starts timer. */ 62 /** Start timer. */ 64 63 void machine_timer_irq_start(void) 65 64 { 66 (machine_ops->machine_timer_irq_start)();65 machine_ops->machine_timer_irq_start(); 67 66 } 68 67 69 70 /** Halts CPU. */ 68 /** Halt CPU. */ 71 69 void machine_cpu_halt(void) 72 70 { 73 (machine_ops->machine_cpu_halt)();71 machine_ops->machine_cpu_halt(); 74 72 } 75 73 76 74 /** Get extents of available memory. 77 75 * 78 * @param start Place to store memory start address. 79 * @param size Place to store memory size. 76 * @param start Place to store memory start address. 77 * @param size Place to store memory size. 78 * 80 79 */ 81 80 void machine_get_memory_extents(uintptr_t *start, size_t *size) 82 81 { 83 (machine_ops->machine_get_memory_extents)(start, size);82 machine_ops->machine_get_memory_extents(start, size); 84 83 } 85 84 86 85 /** Interrupt exception handler. 87 86 * 88 * @param exc _noInterrupt exception number.87 * @param exc Interrupt exception number. 89 88 * @param istate Saved processor state. 89 * 90 90 */ 91 void machine_irq_exception(unsigned int exc _no, istate_t *istate)91 void machine_irq_exception(unsigned int exc, istate_t *istate) 92 92 { 93 (machine_ops->machine_irq_exception)(exc_no, istate);93 machine_ops->machine_irq_exception(exc, istate); 94 94 } 95 95 96 /* 97 * configure the output device. 98 */ 96 /** Configure the output device. */ 99 97 void machine_output_init(void) 100 98 { 101 (machine_ops->machine_output_init)();99 machine_ops->machine_output_init(); 102 100 } 103 101 104 /* 105 * configure the input device. 106 */ 102 /** Configure the input device. */ 107 103 void machine_input_init(void) 108 104 { 109 (machine_ops->machine_input_init)();105 machine_ops->machine_input_init(); 110 106 } 111 107 … … 113 109 size_t machine_get_irq_count(void) 114 110 { 115 return (machine_ops->machine_get_irq_count)();111 return machine_ops->machine_get_irq_count(); 116 112 } 117 113 118 const char * 114 const char *machine_get_platform_name(void) 119 115 { 120 116 if (machine_ops->machine_get_platform_name) 121 117 return machine_ops->machine_get_platform_name(); 118 122 119 return NULL; 123 120 } 121 124 122 /** @} 125 123 */
Note:
See TracChangeset
for help on using the changeset viewer.