Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1479 → Rev 1478

/boot/trunk/arch/ppc32/loader/asm.S
139,8 → 139,7
.global real_mode
 
real_mode:
DEBUG_INIT
 
DEBUG_real_mode
# copy kernel to proper location
163,9 → 162,6
mtctr r31
lwz r29, 0(r5)
DEBUG_INIT
DEBUG_copy_loop
copy_loop:
lwz r28, 0(r29)
179,8 → 175,6
beq copy_end
bdnz copy_loop
DEBUG_end_copy_loop
addi r5, r5, 4
b page_copy
187,8 → 181,6
copy_end:
DEBUG_segments
# initially fill segment registers
 
li r31, 16
206,8 → 198,6
# invalidate block address translation registers
DEBUG_bat
li r30, 0
mtspr ibat0u, r30
236,8 → 226,6
# create identity mapping
DEBUG_mapping
# FIXME: map exactly the size of RAM
lis r31, 0x8000
252,13 → 240,9
mtspr dbat0u, r31
mtspr dbat0l, r30
DEBUG_tlb
tlbia
tlbsync
DEBUG_prepare
# start the kernel
#
# r3 = bootinfo (pa)