Changes in boot/arch/mips32/src/main.c [295732b:4646710] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/src/main.c
r295732b r4646710 30 30 #include <arch/arch.h> 31 31 #include <arch/asm.h> 32 #include <arch/_components.h>33 32 #include <halt.h> 34 33 #include <printf.h> … … 40 39 #include <errno.h> 41 40 #include <inflate.h> 41 #include "../../components.h" 42 42 43 43 #define TOP2ADDR(top) (((void *) PA2KA(BOOT_OFFSET)) + (top)) … … 64 64 size_t i; 65 65 for (i = 0; i < COMPONENTS; i++) 66 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i]. start,67 (uintptr_t) components[i]. start>= PA2KSEG(0) ?68 (void *) KSEG2PA(components[i]. start) :69 (void *) KA2PA(components[i]. start),66 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr, 67 (uintptr_t) components[i].addr >= PA2KSEG(0) ? 68 (void *) KSEG2PA(components[i].addr) : 69 (void *) KA2PA(components[i].addr), 70 70 components[i].name, components[i].inflated, 71 71 components[i].size); … … 107 107 printf("%s ", components[i - 1].name); 108 108 109 int err = inflate(components[i - 1]. start, components[i - 1].size,109 int err = inflate(components[i - 1].addr, components[i - 1].size, 110 110 dest[i - 1], components[i - 1].inflated); 111 111
Note:
See TracChangeset
for help on using the changeset viewer.