Changeset 20235a3 in mainline for kernel/arch/arm32/src/machine_func.c
- Timestamp:
- 2010-09-02T20:55:28Z (15 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/machine_func.c
r0c61955 r20235a3 39 39 40 40 #include <arch/machine_func.h> 41 #include <arch/mach/gta02/gta02.h> 41 42 #include <arch/mach/integratorcp/integratorcp.h> 42 43 #include <arch/mach/testarm/testarm.h> … … 48 49 void machine_ops_init(void) 49 50 { 50 #if defined(MACHINE_testarm) 51 #if defined(MACHINE_gta02) 52 machine_ops = >a02_machine_ops; 53 #elif defined(MACHINE_testarm) 51 54 machine_ops = &gxemul_machine_ops; 52 55 #elif defined(MACHINE_integratorcp) … … 77 80 } 78 81 79 80 /** Returns size of available memory. 82 /** Get extents of available memory. 81 83 * 82 * @return Size of available memory. 84 * @param start Place to store memory start address. 85 * @param size Place to store memory size. 83 86 */ 84 uintptr_t machine_get_memory_size(void)87 void machine_get_memory_extents(uintptr_t *start, uintptr_t *size) 85 88 { 86 return (machine_ops->machine_get_memory_size)();89 (machine_ops->machine_get_memory_extents)(start, size); 87 90 } 88 91 … … 122 125 } 123 126 127 /** Get IRQ number range used by machine. */ 128 size_t machine_get_irq_count(void) 129 { 130 return (machine_ops->machine_get_irq_count)(); 131 } 132 124 133 /** @} 125 134 */
Note:
See TracChangeset
for help on using the changeset viewer.