Changeset 20235a3 in mainline for kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
- Timestamp:
- 2010-09-02T20:55:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c39b96
- Parents:
- 0c61955 (diff), 3249673 (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
r0c61955 r20235a3 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, 65 65 icp_output_init, 66 icp_input_init 66 icp_input_init, 67 icp_get_irq_count 67 68 }; 68 69 … … 214 215 } 215 216 216 /** Returns the size of emulated memory. 217 * 218 * @return Size in bytes. 219 */ 220 size_t icp_get_memory_size(void) 221 { 217 /** Get extents of available memory. 218 * 219 * @param start Place to store memory start address. 220 * @param size Place to store memory size. 221 */ 222 void icp_get_memory_extents(uintptr_t *start, uintptr_t *size) 223 { 224 *start = 0; 225 222 226 if (hw_map_init_called) { 223 return (sdram[((*(uint32_t *)icp_hw_map.sdramcr & ICP_SDRAM_MASK) >> 2)]); 227 *size = (sdram[((*(uint32_t *)icp_hw_map.sdramcr & 228 ICP_SDRAM_MASK) >> 2)]); 224 229 } else { 225 return SDRAM_SIZE; 226 } 227 230 *size = SDRAM_SIZE; 231 } 228 232 } 229 233 … … 333 337 } 334 338 339 size_t icp_get_irq_count(void) 340 { 341 return ICP_IRQ_COUNT; 342 } 335 343 336 344 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.