Changeset 06e6805 in mainline for arch/ppc32/src/mm/memory_init.c
- Timestamp:
- 2006-03-14T11:08:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4bb4836d
- Parents:
- d1f8a87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/mm/memory_init.c
rd1f8a87 r06e6805 27 27 */ 28 28 29 #include <arch/boot/memmap.h> 29 30 #include <arch/mm/memory_init.h> 30 31 #include <typedefs.h> 32 #include <print.h> 33 34 memmap_t memmap; 35 31 36 32 37 size_t get_memory_size(void) 33 38 { 34 return 0;39 return memmap.total; 35 40 } 41 42 43 void memory_print_map(void) 44 { 45 count_t i; 46 47 for (i = 0; i < memmap.count; i++) 48 printf("base: %L size: %L\n", memmap.zones[i].start, memmap.zones[i].size); 49 }
Note:
See TracChangeset
for help on using the changeset viewer.