Changeset 4520dc02 in mainline
- Timestamp:
- 2006-06-01T05:52:46Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bbeb5e4
- Parents:
- e0dd1a8
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
re0dd1a8 r4520dc02 44 44 -include arch/$(ARCH)/Makefile.inc 45 45 46 ifeq ($(CONFIG_DEBUG),y) 47 DEFS += -DCONFIG_DEBUG 48 endif 49 46 50 .PHONY: all build config distclean arch_distclean clean kernel uspace clean_kernel clean_uspace distclean_kernel distclean_uspace 47 51 -
arch/ppc32/Makefile.inc
re0dd1a8 r4520dc02 30 30 31 31 image.boot: kernel uspace 32 make -C arch/$(ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 32 make -C arch/$(ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)" 33 33 cp arch/$(ARCH)/loader/image.boot image.boot 34 34 -
arch/ppc32/loader/Makefile
re0dd1a8 r4520dc02 48 48 49 49 CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc -msoft-float -m32 50 DEFS =51 50 52 51 SOURCES = \ -
arch/ppc32/loader/asm.S
re0dd1a8 r4520dc02 29 29 #include "asm.h" 30 30 #include "regname.h" 31 #include "debug.inc" 31 32 32 33 .text … … 109 110 # r6 = bytes to copy 110 111 # r7 = real_mode (pa) 112 # r8 = framebuffer (pa) 113 # r9 = scanline 111 114 112 115 # disable interrupts … … 124 127 mfmsr r31 125 128 lis r30, ~0@h 126 ori r30, r30, ~(msr_ir | msr_dr )@l129 ori r30, r30, ~(msr_ir | msr_dr | msr_ee)@l 127 130 and r31, r31, r30 128 131 mtspr srr1, r31 … … 137 140 138 141 real_mode: 142 143 DEBUG_real_mode 139 144 140 145 # copy kernel to proper location … … 142 147 # r5 = trans (pa) 143 148 # r6 = bytes to copy 149 # r8 = framebuffer (pa) 150 # r9 = scanline 144 151 145 152 li r31, PAGE_SIZE >> 2 … … 252 259 sync 253 260 isync 261 262 DEBUG_rfi 254 263 rfi 255 264 -
arch/ppc32/loader/asm.h
re0dd1a8 r4520dc02 45 45 46 46 extern void halt(); 47 extern void jump_to_kernel(void *bootinfo, unsigned int bootinfo_size, void *trans, unsigned int kernel_size, void *real_mode ) __attribute__((noreturn));47 extern void jump_to_kernel(void *bootinfo, unsigned int bootinfo_size, void *trans, unsigned int kernel_size, void *real_mode, void *fb, unsigned int scanline) __attribute__((noreturn)); 48 48 extern void real_mode(); 49 49 -
arch/ppc32/loader/main.c
re0dd1a8 r4520dc02 151 151 152 152 printf("\nBooting the kernel...\n"); 153 jump_to_kernel(bootinfo_pa, sizeof(bootinfo), trans_pa, pages << PAGE_WIDTH, real_mode_pa );153 jump_to_kernel(bootinfo_pa, sizeof(bootinfo), trans_pa, pages << PAGE_WIDTH, real_mode_pa, bootinfo.screen.addr, bootinfo.screen.scanline); 154 154 } -
arch/ppc32/loader/regname.h
re0dd1a8 r4520dc02 211 211 #define msr_ir (1 << 4) 212 212 #define msr_dr (1 << 5) 213 #define msr_ee (1 << 15) 213 214 214 215 /* HID0 bits */ -
boot.config
re0dd1a8 r4520dc02 17 17 % [ARCH=ppc32] SAVEAS PPC32_COMPILER COMPILER 18 18 19 # Debug bootloader 20 ! [ARCH=ppc32] CONFIG_DEBUG (y/n) 21 19 22 # PPC64 Compiler 20 23 @ "cross" Cross-compiler
Note:
See TracChangeset
for help on using the changeset viewer.