- Timestamp:
- 2017-06-07T16:39:00Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23c8acd9
- Parents:
- 239e32b8
- Location:
- boot/arch/riscv64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/riscv64/Makefile.inc
r239e32b8 rc09ff7b 40 40 arch/$(BARCH)/src/ucb.c \ 41 41 arch/$(BARCH)/src/putchar.c \ 42 $(COMPS_C) \ 42 $(COMPS).s \ 43 $(COMPS)_desc.c \ 43 44 generic/src/memstr.c \ 44 45 generic/src/printf_core.c \ … … 48 49 generic/src/version.c \ 49 50 generic/src/inflate.c 51 52 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c -
boot/arch/riscv64/_link.ld.in
r239e32b8 rc09ff7b 17 17 *(.bss); /* uninitialized static variables */ 18 18 *(COMMON); /* global variables */ 19 *(.components); 19 20 } 20 21 -
boot/arch/riscv64/src/main.c
r239e32b8 rc09ff7b 39 39 #include <halt.h> 40 40 #include <inflate.h> 41 #include <arch/_components.h>41 #include "../../components.h" 42 42 43 43 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) … … 60 60 61 61 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, 63 63 components[i].name, components[i].inflated, 64 64 components[i].size); 65 65 66 uintptr_t tail = (uintptr_t) components[i]. start+66 uintptr_t tail = (uintptr_t) components[i].addr + 67 67 components[i].size; 68 68 if (tail > top) … … 112 112 printf("%s ", components[i - 1].name); 113 113 114 int err = inflate(components[i - 1]. start, components[i - 1].size,114 int err = inflate(components[i - 1].addr, components[i - 1].size, 115 115 dest[i - 1], components[i - 1].inflated); 116 116
Note:
See TracChangeset
for help on using the changeset viewer.