Rev 950 | Rev 956 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 950 | Rev 953 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #define KERNEL_END &_binary_____________kernel_kernel_bin_end |
36 | #define KERNEL_END &_binary_____________kernel_kernel_bin_end |
37 | #define KERNEL_SIZE ((unsigned int) KERNEL_END - (unsigned int) KERNEL_START) |
37 | #define KERNEL_SIZE ((unsigned int) KERNEL_END - (unsigned int) KERNEL_START) |
38 | 38 | ||
39 | void bootstrap(void) |
39 | void bootstrap(void) |
40 | { |
40 | { |
- | 41 | printf("\nHelenOS PPC Bootloader\n"); |
|
- | 42 | ||
- | 43 | void *loader = ofw_translate(&start); |
|
- | 44 | printf("loaded at %L (physical %L)\n", &start, loader); |
|
41 | printf("\nHelenOS PPC Bootloader\nLoaded at %L\nKernel size %d bytes, load address %L\n", &start, KERNEL_SIZE, KERNEL_LOAD_ADDRESS); |
45 | printf("kernel load address %L (size %d)\n", KERNEL_LOAD_ADDRESS, KERNEL_SIZE); |
42 | 46 | ||
43 | void *addr = ofw_claim((void *) KERNEL_LOAD_ADDRESS, KERNEL_SIZE, 1); |
47 | void *addr = ofw_claim((void *) KERNEL_LOAD_ADDRESS, KERNEL_SIZE, 1); |
44 | if (addr == NULL) { |
48 | if (addr == NULL) { |
45 | printf("Error: Unable to claim memory"); |
49 | printf("Error: Unable to claim memory"); |
46 | halt(); |
50 | halt(); |