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