Changeset c09ff7b in mainline for boot/arch


Ignore:
Timestamp:
2017-06-07T16:39:00Z (8 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

Location:
boot/arch/riscv64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/riscv64/Makefile.inc

    r239e32b8 rc09ff7b  
    4040        arch/$(BARCH)/src/ucb.c \
    4141        arch/$(BARCH)/src/putchar.c \
    42         $(COMPS_C) \
     42        $(COMPS).s \
     43        $(COMPS)_desc.c \
    4344        generic/src/memstr.c \
    4445        generic/src/printf_core.c \
     
    4849        generic/src/version.c \
    4950        generic/src/inflate.c
     51
     52PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c
  • boot/arch/riscv64/_link.ld.in

    r239e32b8 rc09ff7b  
    1717                *(.bss);        /* uninitialized static variables */
    1818                *(COMMON);      /* global variables */
     19                *(.components);
    1920        }
    2021       
  • 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.