Changeset dcc2c5d in mainline for boot/arch/ppc32/src/main.c
- Timestamp:
- 2018-10-12T17:44:35Z (5 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)
- File:
-
- 1 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");
Note:
See TracChangeset
for help on using the changeset viewer.