- 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
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/Makefile.inc
r22299ed r4646710 96 96 arch/$(BARCH)/src/mm.c \ 97 97 arch/$(BARCH)/src/putchar.c \ 98 $(COMPS_C) \ 98 $(COMPS).s \ 99 $(COMPS)_desc.c \ 99 100 genarch/src/division.c \ 100 101 generic/src/memstr.c \ … … 105 106 generic/src/version.c \ 106 107 generic/src/inflate.c 108 109 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c -
boot/arch/arm32/_link.ld.in
r22299ed r4646710 23 23 *(.bss); /* uninitialized static variables */ 24 24 *(COMMON); /* global variables */ 25 [[COMPONENTS]] 25 *(.components); 26 26 } 27 27 bdata_end = .; -
boot/arch/arm32/src/main.c
r22299ed r4646710 37 37 #include <arch/asm.h> 38 38 #include <arch/mm.h> 39 #include <arch/_components.h>40 39 #include <halt.h> 41 40 #include <printf.h> … … 49 48 #include <inflate.h> 50 49 #include <arch/cp15.h> 50 #include "../../components.h" 51 51 52 52 #define TOP2ADDR(top) (((void *) PA2KA(BOOT_OFFSET)) + (top)) … … 99 99 100 100 for (size_t i = 0; i < COMPONENTS; i++) { 101 printf(" %p|%p: %s image (%u/%u bytes)\n", components[i]. start,102 components[i]. start, components[i].name, components[i].inflated,101 printf(" %p|%p: %s image (%u/%u bytes)\n", components[i].addr, 102 components[i].addr, components[i].name, components[i].inflated, 103 103 components[i].size); 104 104 } … … 129 129 130 130 for (size_t i = cnt; i > 0; i--) { 131 void *tail = components[i - 1]. start+ components[i - 1].size;131 void *tail = components[i - 1].addr + components[i - 1].size; 132 132 if (tail >= dest[i - 1]) { 133 133 printf("\n%s: Image too large to fit (%p >= %p), halting.\n", … … 138 138 printf("%s ", components[i - 1].name); 139 139 140 int err = inflate(components[i - 1]. start, components[i - 1].size,140 int err = inflate(components[i - 1].addr, components[i - 1].size, 141 141 dest[i - 1], components[i - 1].inflated); 142 142 if (err != EOK) { -
boot/arch/ia64/Makefile.inc
r22299ed r4646710 48 48 arch/$(BARCH)/src/pal_asm.S \ 49 49 arch/$(BARCH)/src/putchar.c \ 50 $(COMPS_C) \ 50 $(COMPS).s \ 51 $(COMPS)_desc.c \ 51 52 genarch/src/efi.c \ 52 53 genarch/src/division.c \ … … 88 89 bus/isa 89 90 91 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c -
boot/arch/ia64/_link.ld.in
r22299ed r4646710 16 16 *(.bss); /* uninitialized static variables */ 17 17 *(COMMON); 18 [[COMPONENTS]] 18 *(.components); 19 19 } 20 20 21 21 /DISCARD/ : { 22 22 *(.*); -
boot/arch/ia64/src/main.c
r22299ed r4646710 33 33 #include <arch/arch.h> 34 34 #include <arch/asm.h> 35 #include <arch/_components.h>36 35 #include <genarch/efi.h> 37 36 #include <arch/sal.h> … … 46 45 #include <errno.h> 47 46 #include <inflate.h> 47 #include "../../components.h" 48 48 49 49 #define DEFAULT_MEMORY_BASE 0x4000000ULL … … 78 78 memmap[items].size = DEFAULT_LEGACY_IO_SIZE; 79 79 memmap[items].type = MEMMAP_IO_PORTS; 80 items++; 80 items++; 81 81 } else { 82 82 char *cur, *mm_base = (char *) bootpar->efi_memmap; … … 159 159 size_t i; 160 160 for (i = 0; i < COMPONENTS; i++) 161 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i]. start,162 components[i]. start, components[i].name,161 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr, 162 components[i].addr, components[i].name, 163 163 components[i].inflated, components[i].size); 164 164 … … 202 202 * overlap with the destination for inflate(). 203 203 */ 204 memmove((void *) top, components[i - 1]. start, components[i - 1].size);204 memmove((void *) top, components[i - 1].addr, components[i - 1].size); 205 205 206 206 int err = inflate((void *) top, components[i - 1].size, -
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 -
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 -
boot/arch/riscv64/_link.ld.in
r22299ed r4646710 17 17 *(.bss); /* uninitialized static variables */ 18 18 *(COMMON); /* global variables */ 19 [[COMPONENTS]]20 19 } 21 20 -
boot/arch/sparc64/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 \ … … 68 69 generic/src/version.c \ 69 70 generic/src/inflate.c 71 72 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c -
boot/arch/sparc64/_link.ld.in
r22299ed r4646710 15 15 *(.bss); /* uninitialized static variables */ 16 16 *(COMMON); /* global variables */ 17 [[COMPONENTS]] 17 *(.components); 18 18 } 19 19 -
boot/arch/sparc64/src/main.c
r22299ed r4646710 32 32 #include <arch/asm.h> 33 33 #include <arch/ofw.h> 34 #include <arch/_components.h>35 34 #include <genarch/ofw.h> 36 35 #include <genarch/ofw_tree.h> … … 44 43 #include <errno.h> 45 44 #include <inflate.h> 45 #include "../../components.h" 46 46 47 47 /* The lowest ID (read from the VER register) of some US3 CPU model */ … … 220 220 size_t i; 221 221 for (i = 0; i < COMPONENTS; i++) 222 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i]. start,223 ofw_translate(components[i]. start), components[i].name,222 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr, 223 ofw_translate(components[i].addr), components[i].name, 224 224 components[i].inflated, components[i].size); 225 225 … … 267 267 ALIGN_UP(components[i - 1].inflated, PAGE_SIZE), -1); 268 268 269 int err = inflate(components[i - 1]. start, components[i - 1].size,269 int err = inflate(components[i - 1].addr, components[i - 1].size, 270 270 dest[i - 1], components[i - 1].inflated); 271 271
Note:
See TracChangeset
for help on using the changeset viewer.