Changeset d81e6bdf in mainline for arch/ppc32/loader/main.c
- Timestamp:
- 2006-02-26T12:58:18Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1bedc54
- Parents:
- 3c1dec0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/loader/main.c
r3c1dec0 rd81e6bdf 31 31 #include "ofw.h" 32 32 33 #define KERNEL_LOAD_ADDRESS 0x800000 34 #define KERNEL_SIZE _binary_____________kernel_kernel_bin_size 35 33 36 static void halt(void) 34 37 { … … 38 41 void bootstrap(void) 39 42 { 40 printf("\nHelenOS PPC Bootloader\nKernel size %d, load address %L\n", kernel_size, kernel_load_address);43 printf("\nHelenOS PPC Bootloader\nKernel size %d, load address %L\n", KERNEL_SIZE, KERNEL_LOAD_ADDRESS); 41 44 42 void *addr = ofw_claim((void *) kernel_load_address, kernel_size, 1);45 void *addr = ofw_claim((void *) KERNEL_LOAD_ADDRESS, KERNEL_SIZE, 1); 43 46 if (addr == NULL) { 44 47 printf("Error: Unable to claim memory");
Note:
See TracChangeset
for help on using the changeset viewer.