Changes in kernel/arch/abs32le/include/asm.h [7a0359b:3d6beaa] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/asm.h
r7a0359b r3d6beaa 38 38 #include <typedefs.h> 39 39 #include <config.h> 40 #include <trace.h>41 40 42 NO_TRACEstatic inline void asm_delay_loop(uint32_t usec)41 static inline void asm_delay_loop(uint32_t usec) 43 42 { 44 43 } 45 44 46 NO_TRACEstatic inline __attribute__((noreturn)) void cpu_halt(void)45 static inline __attribute__((noreturn)) void cpu_halt(void) 47 46 { 48 47 /* On real hardware this should stop processing further … … 54 53 } 55 54 56 NO_TRACEstatic inline void cpu_sleep(void)55 static inline void cpu_sleep(void) 57 56 { 58 57 /* On real hardware this should put the CPU into low-power … … 62 61 } 63 62 64 NO_TRACEstatic inline void pio_write_8(ioport8_t *port, uint8_t val)63 static inline void pio_write_8(ioport8_t *port, uint8_t val) 65 64 { 66 65 } … … 74 73 * 75 74 */ 76 NO_TRACEstatic inline void pio_write_16(ioport16_t *port, uint16_t val)75 static inline void pio_write_16(ioport16_t *port, uint16_t val) 77 76 { 78 77 } … … 86 85 * 87 86 */ 88 NO_TRACEstatic inline void pio_write_32(ioport32_t *port, uint32_t val)87 static inline void pio_write_32(ioport32_t *port, uint32_t val) 89 88 { 90 89 } … … 98 97 * 99 98 */ 100 NO_TRACEstatic inline uint8_t pio_read_8(ioport8_t *port)99 static inline uint8_t pio_read_8(ioport8_t *port) 101 100 { 102 101 return 0; … … 111 110 * 112 111 */ 113 NO_TRACEstatic inline uint16_t pio_read_16(ioport16_t *port)112 static inline uint16_t pio_read_16(ioport16_t *port) 114 113 { 115 114 return 0; … … 124 123 * 125 124 */ 126 NO_TRACEstatic inline uint32_t pio_read_32(ioport32_t *port)125 static inline uint32_t pio_read_32(ioport32_t *port) 127 126 { 128 127 return 0; 129 128 } 130 129 131 NO_TRACEstatic inline ipl_t interrupts_enable(void)130 static inline ipl_t interrupts_enable(void) 132 131 { 133 /* 134 * On real hardware this unconditionally enables preemption 135 * by internal and external interrupts. 136 * 137 * The return value stores the previous interrupt level. 138 */ 132 /* On real hardware this unconditionally enables preemption 133 by internal and external interrupts. 134 135 The return value stores the previous interrupt level. */ 139 136 140 137 return 0; 141 138 } 142 139 143 NO_TRACEstatic inline ipl_t interrupts_disable(void)140 static inline ipl_t interrupts_disable(void) 144 141 { 145 /* 146 * On real hardware this disables preemption by the usual 147 * set of internal and external interrupts. This does not 148 * apply to special non-maskable interrupts and sychronous 149 * CPU exceptions. 150 * 151 * The return value stores the previous interrupt level. 152 */ 142 /* On real hardware this disables preemption by the usual 143 set of internal and external interrupts. This does not 144 apply to special non-maskable interrupts and sychronous 145 CPU exceptions. 146 147 The return value stores the previous interrupt level. */ 153 148 154 149 return 0; 155 150 } 156 151 157 NO_TRACEstatic inline void interrupts_restore(ipl_t ipl)152 static inline void interrupts_restore(ipl_t ipl) 158 153 { 159 /* 160 * On real hardware this either enables or disables preemption 161 * according to the interrupt level value from the argument. 162 */ 154 /* On real hardware this either enables or disables preemption 155 according to the interrupt level value from the argument. */ 163 156 } 164 157 165 NO_TRACEstatic inline ipl_t interrupts_read(void)158 static inline ipl_t interrupts_read(void) 166 159 { 167 /* 168 * On real hardware the return value stores the current interrupt 169 * level. 170 */ 160 /* On real hardware the return value stores the current interrupt 161 level. */ 171 162 172 163 return 0; 173 164 } 174 165 175 NO_TRACEstatic inline bool interrupts_disabled(void)166 static inline bool interrupts_disabled(void) 176 167 { 177 /* 178 * On real hardware the return value is true iff interrupts are 179 * disabled. 180 */ 181 168 /* On real hardware the return value is true iff interrupts are 169 disabled. */ 182 170 return false; 183 171 } 184 172 185 NO_TRACEstatic inline uintptr_t get_stack_base(void)173 static inline uintptr_t get_stack_base(void) 186 174 { 187 /* 188 * On real hardware this returns the address of the bottom 189 * of the current CPU stack. The the_t structure is stored 190 * on the bottom of stack and this is used to identify the 191 * current CPU, current task, current thread and current 192 * address space. 193 */ 175 /* On real hardware this returns the address of the bottom 176 of the current CPU stack. The the_t structure is stored 177 on the bottom of stack and this is used to identify the 178 current CPU, current task, current thread and current 179 address space. */ 194 180 195 181 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.