Changeset c621f4aa in mainline for kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
- Timestamp:
- 2010-07-25T10:11:13Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 377cce8
- Parents:
- 24a2517 (diff), a2da43c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
r24a2517 rc621f4aa 56 56 static icp_hw_map_t icp_hw_map; 57 57 static irq_t icp_timer_irq; 58 struct arm_machine_ops machine_ops = {58 struct arm_machine_ops icp_machine_ops = { 59 59 icp_init, 60 60 icp_timer_irq_start, 61 61 icp_cpu_halt, 62 icp_get_memory_ size,62 icp_get_memory_extents, 63 63 icp_irq_exception, 64 64 icp_frame_init, … … 214 214 } 215 215 216 /** Returns the size of emulated memory. 217 * 218 * @return Size in bytes. 219 */ 220 size_t icp_get_memory_size(void) 221 { 216 /** Get extents of available memory. 217 * 218 * @param start Place to store memory start address. 219 * @param size Place to store memory size. 220 */ 221 void icp_get_memory_extents(uintptr_t *start, uintptr_t *size) 222 { 223 *start = 0; 224 222 225 if (hw_map_init_called) { 223 return (sdram[((*(uint32_t *)icp_hw_map.sdramcr & ICP_SDRAM_MASK) >> 2)]); 226 *size = (sdram[((*(uint32_t *)icp_hw_map.sdramcr & 227 ICP_SDRAM_MASK) >> 2)]); 224 228 } else { 225 return SDRAM_SIZE; 226 } 227 229 *size = SDRAM_SIZE; 230 } 228 231 } 229 232 … … 242 245 * @param istate Saved processor state. 243 246 */ 244 void icp_irq_exception( int exc_no, istate_t *istate)247 void icp_irq_exception(unsigned int exc_no, istate_t *istate) 245 248 { 246 249 uint32_t sources = icp_irqc_get_sources(); 247 int i;250 unsigned int i; 248 251 249 252 for (i = 0; i < ICP_IRQC_MAX_IRQ; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
