//boot/trunk/arch/ppc32/loader/Makefile |
74,7 → 74,7 |
-rm -f $(OBJECTS) image.boot kernel.o Makefile.depend |
|
kernel.o: $(KERNEL) |
$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common --rename-section .data=.image $(KERNEL) $@ |
$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc --rename-section .data=.image $(KERNEL) $@ |
|
%.o: %.S |
$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
//boot/trunk/arch/ppc32/loader/asm.S |
124,7 → 124,7 |
isync |
rfi |
|
.section REALMODE, "ax" |
.section REALMODE |
.align PAGE_WIDTH |
.global real_mode |
|
168,17 → 168,16 |
|
copy_end: |
|
# initially fill segment registers |
# invalidate segment registers |
|
li r31, 16 |
mtctr r31 |
li r31, 0 |
li r30, 0x2000 |
li r30, 0 |
|
seg_fill: |
|
mtsrin r30, r31 |
addi r30, r30, 0x111 |
addis r31, r31, 0x1000 # move to next SR |
|
bdnz seg_fill |