Changeset 4646710 in mainline for boot/arch/mips32
- 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/mips32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/Makefile.inc
r22299ed r4646710 30 30 BITS = 32 31 31 EXTRA_CFLAGS = -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=32 32 AS_PROLOG = .module softfloat; 32 33 33 34 ifeq ($(MACHINE),msim) … … 74 75 arch/$(BARCH)/src/main.c \ 75 76 arch/$(BARCH)/src/putchar.c \ 76 $(COMPS_C) \ 77 $(COMPS).s \ 78 $(COMPS)_desc.c \ 77 79 genarch/src/division.c \ 78 80 genarch/src/multiplication.c \ … … 84 86 generic/src/version.c \ 85 87 generic/src/inflate.c 88 89 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c -
boot/arch/mips32/_link.ld.in
r22299ed r4646710 21 21 *(.bss); /* uninitialized static variables */ 22 22 *(COMMON); /* global variables */ 23 [[COMPONENTS]] 23 *(.components); 24 24 } 25 25 -
boot/arch/mips32/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 <halt.h> 34 33 #include <printf.h> … … 40 39 #include <errno.h> 41 40 #include <inflate.h> 41 #include "../../components.h" 42 42 43 43 #define TOP2ADDR(top) (((void *) PA2KA(BOOT_OFFSET)) + (top)) … … 64 64 size_t i; 65 65 for (i = 0; i < COMPONENTS; i++) 66 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i]. start,67 (uintptr_t) components[i]. start>= PA2KSEG(0) ?68 (void *) KSEG2PA(components[i]. start) :69 (void *) KA2PA(components[i]. start),66 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr, 67 (uintptr_t) components[i].addr >= PA2KSEG(0) ? 68 (void *) KSEG2PA(components[i].addr) : 69 (void *) KA2PA(components[i].addr), 70 70 components[i].name, components[i].inflated, 71 71 components[i].size); … … 107 107 printf("%s ", components[i - 1].name); 108 108 109 int err = inflate(components[i - 1]. start, components[i - 1].size,109 int err = inflate(components[i - 1].addr, components[i - 1].size, 110 110 dest[i - 1], components[i - 1].inflated); 111 111
Note:
See TracChangeset
for help on using the changeset viewer.