Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 913 → Rev 912

/boot/trunk/arch/ppc32/loader/spr.h
File deleted
/boot/trunk/arch/ppc32/loader/asm.S
File deleted
/boot/trunk/arch/ppc32/loader/asm.h
File deleted
/boot/trunk/arch/ppc32/loader/main.c
29,13 → 29,15
#include "main.h"
#include "printf.h"
#include "ofw.h"
#include "asm.h"
 
#define KERNEL_LOAD_ADDRESS 0x800000
#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)
#define KERNEL_SIZE ((unsigned int) &_binary_____________kernel_kernel_bin_end - (unsigned int) &_binary_____________kernel_kernel_bin_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);
45,8 → 47,6
printf("Error: Unable to claim memory");
halt();
}
memcpy(addr, KERNEL_START, KERNEL_SIZE);
printf("Booting the kernel...\n");
jump_to_kernel(addr);
halt();
}
/boot/trunk/arch/ppc32/loader/Makefile
53,7 → 53,6
main.c \
ofw.c \
printf.c \
asm.S \
boot.S
 
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
/boot/trunk/arch/ppc32/loader/boot.S
1,5 → 1,5
#
# Copyright (C) 2006 Martin Decky
# Copyright (C) 2005 Martin Decky
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
/boot/trunk/arch/ppc32/loader/regname.h
26,8 → 26,8
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#ifndef __REGNAME_H__
#define __REGNAME_H__
#ifndef __ppc32_REGNAME_H__
#define __ppc32_REGNAME_H__
 
/* Condition Register Bit Fields */
#define cr0 0