Changeset 4646710 in mainline for boot/arch/ppc32
- Timestamp:
- 2017-06-07T15:39:23Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 239e32b8
- Parents:
- 22299ed
- Location:
- boot/arch/ppc32
- Files:
-
- 3 edited
-
Makefile.inc (modified) (2 diffs)
-
_link.ld.in (modified) (1 diff)
-
src/main.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/Makefile.inc
r22299ed r4646710 57 57 arch/$(BARCH)/src/main.c \ 58 58 arch/$(BARCH)/src/ofw.c \ 59 $(COMPS_C) \ 59 $(COMPS).s \ 60 $(COMPS)_desc.c \ 60 61 genarch/src/ofw.c \ 61 62 genarch/src/ofw_tree.c \ … … 70 71 generic/src/version.c \ 71 72 generic/src/inflate.c 73 74 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c -
boot/arch/ppc32/_link.ld.in
r22299ed r4646710 18 18 *(.bss); /* uninitialized static variables */ 19 19 *(COMMON); /* global variables */ 20 [[COMPONENTS]] 20 *(.components); 21 21 } 22 22 -
boot/arch/ppc32/src/main.c
r22299ed r4646710 30 30 #include <arch/arch.h> 31 31 #include <arch/asm.h> 32 #include <arch/_components.h>33 32 #include <genarch/ofw.h> 34 33 #include <genarch/ofw_tree.h> … … 42 41 #include <errno.h> 43 42 #include <inflate.h> 43 #include "../../components.h" 44 44 45 45 #define BALLOC_MAX_SIZE 131072 … … 75 75 size_t i; 76 76 for (i = 0; i < COMPONENTS; i++) 77 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i]. start,78 ofw_translate(components[i]. start), components[i].name,77 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr, 78 ofw_translate(components[i].addr), components[i].name, 79 79 components[i].inflated, components[i].size); 80 80 … … 139 139 printf("%s ", components[i - 1].name); 140 140 141 int err = inflate(components[i - 1]. start, components[i - 1].size,141 int err = inflate(components[i - 1].addr, components[i - 1].size, 142 142 inflate_base + dest[i - 1], components[i - 1].inflated); 143 143
Note:
See TracChangeset
for help on using the changeset viewer.
