Changeset 6323989 in mainline for arch/ppc32/loader/main.c
- Timestamp:
- 2006-03-14T09:11:07Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d69ee6
- Parents:
- eebd172
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/loader/main.c
reebd172 r6323989 29 29 #include "main.h" 30 30 #include "printf.h" 31 #include "ofw.h"32 31 #include "asm.h" 33 32 … … 38 37 #define KERNEL_SIZE ((unsigned int) KERNEL_END - (unsigned int) KERNEL_START) 39 38 39 memmap_t memmap; 40 40 41 void bootstrap(void) 41 42 { … … 44 45 void *phys = ofw_translate(&start); 45 46 printf("loaded at %L (physical %L)\n", &start, phys); 47 48 if (!ofw_memmap(&memmap)) { 49 printf("Unable to get memory map\n"); 50 halt(); 51 } 52 printf("total memory %d MB\n", memmap.total >> 20); 46 53 47 54 // FIXME: map just the kernel … … 60 67 61 68 flush_instruction_cache(); 62 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS );69 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, ofw_translate(&memmap)); 63 70 }
Note:
See TracChangeset
for help on using the changeset viewer.