Changeset d81e6bdf in mainline for arch/ppc32/loader/main.c


Ignore:
Timestamp:
2006-02-26T12:58:18Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1bedc54
Parents:
3c1dec0
Message:

create ppc32 boot image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/loader/main.c

    r3c1dec0 rd81e6bdf  
    3131#include "ofw.h"
    3232
     33#define KERNEL_LOAD_ADDRESS 0x800000
     34#define KERNEL_SIZE _binary_____________kernel_kernel_bin_size
     35
    3336static void halt(void)
    3437{
     
    3841void bootstrap(void)
    3942{
    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);
    4144       
    42         void *addr = ofw_claim((void *) kernel_load_address, kernel_size, 1);
     45        void *addr = ofw_claim((void *) KERNEL_LOAD_ADDRESS, KERNEL_SIZE, 1);
    4346        if (addr == NULL) {
    4447                printf("Error: Unable to claim memory");
Note: See TracChangeset for help on using the changeset viewer.