Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 912 → Rev 913

/boot/trunk/arch/ppc32/loader/main.c
29,15 → 29,13
#include "main.h"
#include "printf.h"
#include "ofw.h"
#include "asm.h"
 
#define KERNEL_LOAD_ADDRESS 0x800000
#define KERNEL_SIZE ((unsigned int) &_binary_____________kernel_kernel_bin_end - (unsigned int) &_binary_____________kernel_kernel_bin_start)
#define KERNEL_START &_binary_____________kernel_kernel_bin_start
#define KERNEL_END &_binary_____________kernel_kernel_bin_end
#define KERNEL_SIZE ((unsigned int) KERNEL_END - (unsigned int) KERNEL_START)
 
static void halt(void)
{
while (1);
}
 
void bootstrap(void)
{
printf("\nHelenOS PPC Bootloader\nKernel size %d bytes, load address %L\n", KERNEL_SIZE, KERNEL_LOAD_ADDRESS);
47,6 → 45,8
printf("Error: Unable to claim memory");
halt();
}
memcpy(addr, KERNEL_START, KERNEL_SIZE);
halt();
printf("Booting the kernel...\n");
jump_to_kernel(addr);
}