- Timestamp:
- 2018-10-12T17:44:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68a0d60
- Parents:
- d4eba6d
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-12 17:38:51)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-12 17:44:35)
- Location:
- boot/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/src/main.c
rd4eba6d rdcc2c5d 73 73 (void *) LOADER_ADDRESS, loader_address_pa); 74 74 75 size_t un compressed_size = payload_uncompressed_size();76 printf("Payload uncompressed size: %d bytes\n", un compressed_size);75 size_t unpacked_size = payload_unpacked_size(); 76 printf("Payload uncompressed size: %d bytes\n", unpacked_size); 77 77 78 if (un compressed_size >= (size_t) loader_address_pa) {78 if (unpacked_size >= (size_t) loader_address_pa) { 79 79 printf("Inflated components overlap loader area.\n"); 80 80 printf("The boot image is too large. Halting.\n"); … … 91 91 void *inflate_base_pa; 92 92 ofw_alloc("inflate area", &inflate_base, &inflate_base_pa, 93 un compressed_size, loader_address_pa);93 unpacked_size, loader_address_pa); 94 94 printf(" %p|%p: inflate area\n", inflate_base, inflate_base_pa); 95 95 96 uintptr_t balloc_start = ALIGN_UP(un compressed_size, PAGE_SIZE);96 uintptr_t balloc_start = ALIGN_UP(unpacked_size, PAGE_SIZE); 97 97 size_t pages = (balloc_start + ALIGN_UP(BALLOC_MAX_SIZE, PAGE_SIZE)) >> 98 98 PAGE_WIDTH; … … 109 109 /* Inflate components. */ 110 110 extract_payload(&bootinfo.taskmap, inflate_base, 111 inflate_base + un compressed_size, PA2KA(0), NULL);111 inflate_base + unpacked_size, PA2KA(0), NULL); 112 112 113 113 printf("Setting up boot allocator ...\n"); -
boot/arch/sparc64/src/main.c
rd4eba6d rdcc2c5d 225 225 */ 226 226 227 size_t sz = ALIGN_UP(payload_un compressed_size(), PAGE_SIZE);227 size_t sz = ALIGN_UP(payload_unpacked_size(), PAGE_SIZE); 228 228 ofw_claim_phys((void *) (bootinfo.physmem_start + KERNEL_ADDRESS), sz); 229 229 ofw_map((void *) (bootinfo.physmem_start + KERNEL_ADDRESS),
Note:
See TracChangeset
for help on using the changeset viewer.