Changeset c09ff7b in mainline for boot/arch/riscv64/src/main.c


Ignore:
Timestamp:
2017-06-07T16:39:00Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23c8acd9
Parents:
239e32b8
Message:

riscv64: fix compilation

File:
1 edited

Legend:

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

    r239e32b8 rc09ff7b  
    3939#include <halt.h>
    4040#include <inflate.h>
    41 #include <arch/_components.h>
     41#include "../../components.h"
    4242
    4343#define KA2PA(x)  (((uintptr_t) (x)) - UINT64_C(0xffff800000000000))
     
    6060       
    6161        for (size_t i = 0; i < COMPONENTS; i++) {
    62                 printf(" %p: %s image (%zu/%zu bytes)\n", components[i].start,
     62                printf(" %p: %s image (%zu/%zu bytes)\n", components[i].addr,
    6363                    components[i].name, components[i].inflated,
    6464                    components[i].size);
    6565               
    66                 uintptr_t tail = (uintptr_t) components[i].start +
     66                uintptr_t tail = (uintptr_t) components[i].addr +
    6767                    components[i].size;
    6868                if (tail > top)
     
    112112                printf("%s ", components[i - 1].name);
    113113               
    114                 int err = inflate(components[i - 1].start, components[i - 1].size,
     114                int err = inflate(components[i - 1].addr, components[i - 1].size,
    115115                    dest[i - 1], components[i - 1].inflated);
    116116               
Note: See TracChangeset for help on using the changeset viewer.