Changeset d7ef14b in mainline for kernel/arch/arm32/src/mach/gta02/gta02.c
- Timestamp:
- 2010-06-25T20:58:06Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12b0d51
- Parents:
- 1590e23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/gta02/gta02.c
r1590e23 rd7ef14b 36 36 #include <arch/exception.h> 37 37 #include <arch/mach/gta02/gta02.h> 38 #include <arch/mm/page.h> 39 40 #define GTA02_MEMORY_START 0x30000000 /* physical */ 41 #define GTA02_MEMORY_SIZE 0x08000000 /* 128 MB */ 42 #define GTA02_MEMORY_SKIP 0x8000 /* 2 pages */ 38 43 39 44 static void gta02_init(void); 40 45 static void gta02_timer_irq_start(void); 41 46 static void gta02_cpu_halt(void); 42 static uintptr_t gta02_get_memory_size(void);47 static void gta02_get_memory_extents(uintptr_t *start, uintptr_t *size); 43 48 static void gta02_irq_exception(unsigned int exc_no, istate_t *istate); 44 49 static void gta02_frame_init(void); … … 50 55 gta02_timer_irq_start, 51 56 gta02_cpu_halt, 52 gta02_get_memory_ size,57 gta02_get_memory_extents, 53 58 gta02_irq_exception, 54 59 gta02_frame_init, … … 69 74 } 70 75 71 static uintptr_t gta02_get_memory_size(void) 76 /** Get extents of available memory. 77 * 78 * @param start Place to store memory start address. 79 * @param size Place to store memory size. 80 */ 81 static void gta02_get_memory_extents(uintptr_t *start, uintptr_t *size) 72 82 { 73 return 0; 83 *start = PA2KA(GTA02_MEMORY_START) + GTA02_MEMORY_SKIP; 84 *size = GTA02_MEMORY_SIZE - GTA02_MEMORY_SKIP; 74 85 } 75 86
Note:
See TracChangeset
for help on using the changeset viewer.