Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/main.c

    r4646710 r15fbe6a  
    3737#include <arch/asm.h>
    3838#include <arch/mm.h>
     39#include <arch/_components.h>
    3940#include <halt.h>
    4041#include <printf.h>
     
    4344#include <macros.h>
    4445#include <align.h>
    45 #include <stdbool.h>
    4646#include <str.h>
    4747#include <errno.h>
    4848#include <inflate.h>
    4949#include <arch/cp15.h>
    50 #include "../../components.h"
    5150
    5251#define TOP2ADDR(top)  (((void *) PA2KA(BOOT_OFFSET)) + (top))
     
    9998       
    10099        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,
    103102                    components[i].size);
    104103        }
     
    129128       
    130129        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;
    132131                if (tail >= dest[i - 1]) {
    133132                        printf("\n%s: Image too large to fit (%p >= %p), halting.\n",
     
    138137                printf("%s ", components[i - 1].name);
    139138               
    140                 int err = inflate(components[i - 1].addr, components[i - 1].size,
     139                int err = inflate(components[i - 1].start, components[i - 1].size,
    141140                    dest[i - 1], components[i - 1].inflated);
    142141                if (err != EOK) {
Note: See TracChangeset for help on using the changeset viewer.