Changeset 4db05ea in mainline
- Timestamp:
- 2018-10-20T16:09:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 566457ad
- Parents:
- 2cea4c58
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-18 18:45:48)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-20 16:09:17)
- Location:
- boot/arch/ppc32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/include/arch/asm.h
r2cea4c58 r4db05ea 33 33 #include <arch/main.h> 34 34 35 extern void jump_to_kernel(void *, void *, size_t, void * )35 extern void jump_to_kernel(void *, void *, size_t, void *, uintptr_t) 36 36 __attribute__((noreturn)); 37 37 extern void real_mode(void); -
boot/arch/ppc32/src/asm.S
r2cea4c58 r4db05ea 127 127 # r5 = pages to translate 128 128 # r6 = real mode meeting point (physical address) 129 # r7 = kernel entry point (virtual address in kernel's address space) 129 130 130 131 # disable interrupts … … 160 161 # r4 = translate table (physical address) 161 162 # r5 = pages to translate 163 # r7 = kernel entry point (virtual address in kernel's address space) 162 164 163 165 # move the images of components to the proper … … 399 401 # start the kernel 400 402 # 401 # pc = PA2KA(BOOT_OFFSET)403 # pc = kernel's entry point (r7) 402 404 # r3 = bootinfo (physical address) 403 405 # sprg0 = BOOT_OFFSET … … 405 407 # sp = 0 (enforces the usage of sprg0 as exception stack) 406 408 407 lis r31, PA2KA(BOOT_OFFSET)@ha 408 addi r31, r31, PA2KA(BOOT_OFFSET)@l 409 mtspr srr0, r31 409 mtspr srr0, r7 410 410 411 411 lis r31, BOOT_OFFSET@ha -
boot/arch/ppc32/src/main.c
r2cea4c58 r4db05ea 135 135 136 136 printf("Booting the kernel...\n"); 137 jump_to_kernel(bootinfo_pa, transtable_pa, pages, real_mode_pa); 137 jump_to_kernel(bootinfo_pa, transtable_pa, pages, real_mode_pa, 138 PA2KA(BOOT_OFFSET)); 138 139 }
Note:
See TracChangeset
for help on using the changeset viewer.