Changes in boot/arch/arm32/src/main.c [4646710:15fbe6a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/main.c
r4646710 r15fbe6a 37 37 #include <arch/asm.h> 38 38 #include <arch/mm.h> 39 #include <arch/_components.h> 39 40 #include <halt.h> 40 41 #include <printf.h> … … 43 44 #include <macros.h> 44 45 #include <align.h> 45 #include <stdbool.h>46 46 #include <str.h> 47 47 #include <errno.h> 48 48 #include <inflate.h> 49 49 #include <arch/cp15.h> 50 #include "../../components.h"51 50 52 51 #define TOP2ADDR(top) (((void *) PA2KA(BOOT_OFFSET)) + (top)) … … 99 98 100 99 for (size_t i = 0; i < COMPONENTS; i++) { 101 printf(" %p|%p: %s image (%u/%u bytes)\n", components[i]. addr,102 components[i]. addr, components[i].name, components[i].inflated,100 printf(" %p|%p: %s image (%u/%u bytes)\n", components[i].start, 101 components[i].start, components[i].name, components[i].inflated, 103 102 components[i].size); 104 103 } … … 129 128 130 129 for (size_t i = cnt; i > 0; i--) { 131 void *tail = components[i - 1]. addr+ components[i - 1].size;130 void *tail = components[i - 1].start + components[i - 1].size; 132 131 if (tail >= dest[i - 1]) { 133 132 printf("\n%s: Image too large to fit (%p >= %p), halting.\n", … … 138 137 printf("%s ", components[i - 1].name); 139 138 140 int err = inflate(components[i - 1]. addr, components[i - 1].size,139 int err = inflate(components[i - 1].start, components[i - 1].size, 141 140 dest[i - 1], components[i - 1].inflated); 142 141 if (err != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.