Ignore:
File:
1 edited

Legend:

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

    r15fbe6a r4646710  
    3737#include <arch/asm.h>
    3838#include <arch/mm.h>
    39 #include <arch/_components.h>
    4039#include <halt.h>
    4140#include <printf.h>
     
    4443#include <macros.h>
    4544#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"
    5051
    5152#define TOP2ADDR(top)  (((void *) PA2KA(BOOT_OFFSET)) + (top))
     
    9899       
    99100        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,
    102103                    components[i].size);
    103104        }
     
    128129       
    129130        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;
    131132                if (tail >= dest[i - 1]) {
    132133                        printf("\n%s: Image too large to fit (%p >= %p), halting.\n",
     
    137138                printf("%s ", components[i - 1].name);
    138139               
    139                 int err = inflate(components[i - 1].start, components[i - 1].size,
     140                int err = inflate(components[i - 1].addr, components[i - 1].size,
    140141                    dest[i - 1], components[i - 1].inflated);
    141142                if (err != EOK) {
Note: See TracChangeset for help on using the changeset viewer.