- Timestamp:
- 2018-10-21T21:57:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cfdeedc
- Parents:
- 566457ad
- Location:
- boot/arch/ppc32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/src/asm.S
r566457ad rd59718e 403 403 # pc = kernel's entry point (r7) 404 404 # r3 = bootinfo (physical address) 405 # sprg0 = BOOT_OFFSET406 405 # sprg3 = physical memory size 407 406 # sp = 0 (enforces the usage of sprg0 as exception stack) … … 409 408 mtspr srr0, r7 410 409 411 lis r31, BOOT_OFFSET@ha412 addi r31, r31, BOOT_OFFSET@l410 # Clear sprg0. Kernel will set it. 411 li r31, 0 413 412 mtsprg0 r31 414 413 … … 416 415 # the physical memory size, get the lower 4 bytes 417 416 417 // FIXME: unchecked magic offset 418 418 lwz r31, 4(r3) 419 419 mtsprg3 r31 -
boot/arch/ppc32/src/main.c
r566457ad rd59718e 97 97 size_t pages = (balloc_start + ALIGN_UP(BALLOC_MAX_SIZE, PAGE_SIZE)) >> 98 98 PAGE_WIDTH; 99 100 printf(" Boot allocations area: %p - %p\n", (void *) balloc_start, 101 (void *) (pages << PAGE_WIDTH)); 102 103 if ((pages << PAGE_WIDTH) >= (uintptr_t) loader_address_pa) { 104 printf("Boot allocations overlap loader area.\n"); 105 printf("The boot image is too large. Halting.\n"); 106 halt(); 107 } 108 99 109 void *transtable; 100 110 void *transtable_pa;
Note:
See TracChangeset
for help on using the changeset viewer.