/SPARTAN/trunk/arch/ppc/boot/boot.s |
---|
30,7 → 30,4 |
.global start |
start: |
bl real_start |
real_start: |
/SPARTAN/trunk/arch/ppc/Makefile.inc |
---|
15,7 → 15,7 |
LFLAGS=-M -no-check-sections -T ../arch/ppc/_link.ld |
arch_sources= \ |
arch/powerpc.c \ |
arch/ppc.c \ |
arch/fpu_context.c \ |
arch/dummy.s \ |
arch/start.S \ |
/SPARTAN/trunk/arch/ppc/src/powerpc.c |
---|
File deleted |
/SPARTAN/trunk/arch/ppc/src/ppc.c |
---|
0,0 → 1,28 |
/* |
* Copyright (C) 2001-2004 Jakub Jermar |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* |
* - Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* - Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* - The name of the author may not be used to endorse or promote products |
* derived from this software without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/SPARTAN/trunk/arch/ppc/src/mm/page.c |
---|
32,8 → 32,6 |
#include <mm/frame.h> |
#include <mm/page.h> |
pte_t *PTL0 = NULL; |
void page_arch_init(void) |
{ |
} |
/SPARTAN/trunk/arch/ppc/src/start.S |
---|
31,3 → 31,4 |
.global kernel_image_start |
kernel_image_start: |
b main_bsp |
/SPARTAN/trunk/arch/ppc/_link.ld |
---|
1,12 → 1,13 |
/* |
* PowerPC linker script |
* |
* PPC linker script |
* |
* It is ELF format, but its only section looks like this: |
* kernel text |
* kernel data |
* |
* |
*/ |
OUTPUT_FORMAT(binary) |
OUTPUT_FORMAT(elf32-powerpc) |
ENTRY(kernel_image_start) |
SECTIONS { |
14,6 → 15,10 |
ktext_start = .; |
*(K_TEXT_START) |
*(.text); |
ktext_end = .; |
kdata_start = .; |
*(K_DATA_START) |
*(.rodata); |
*(.rodata.*); |
*(.data); /* initialized data */ |
21,25 → 26,11 |
*(.sbss); |
*(.bss); /* uninitialized static variables */ |
*(COMMON); /* global variables */ |
ktext_end = .; |
kdata_start = .; |
kdata_end = .; |
} = 0x00000000 |
. = ABSOLUTE(hardcoded_ktext_size); |
.patch_1 : { |
LONG(ktext_end - ktext_start); |
} |
_hardcoded_ktext_size = ktext_end - ktext_start; |
_hardcoded_kdata_size = kdata_end - kdata_start; |
_hardcoded_load_address = 0x80000000; |
. = ABSOLUTE(hardcoded_kdata_size); |
.patch_2 : { |
LONG(kdata_end - kdata_start); |
} |
. = ABSOLUTE(hardcoded_load_address); |
.patch_3 : { |
LONG(0x80000000); |
} |
} |