- Timestamp:
- 2017-11-14T12:24:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cad776
- Parents:
- 887c9de (diff), d2d142a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
- git-committer:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
- Location:
- boot
- Files:
-
- 1 added
- 1 deleted
- 14 edited
- 39 moved
-
Makefile (modified) (1 diff)
-
Makefile.build (modified) (4 diffs)
-
Makefile.common (modified) (2 diffs)
-
arch/amd64/Makefile.inc (modified) (2 diffs)
-
arch/arm32/Makefile.inc (modified) (2 diffs)
-
arch/arm32/include/arch/arch.h (moved) (moved from boot/arch/arm32/include/arch.h )
-
arch/arm32/include/arch/asm.h (moved) (moved from boot/arch/arm32/include/asm.h )
-
arch/arm32/include/arch/cp15.h (added)
-
arch/arm32/include/arch/main.h (moved) (moved from boot/arch/arm32/include/main.h )
-
arch/arm32/include/arch/mm.h (moved) (moved from boot/arch/arm32/include/mm.h )
-
arch/arm32/include/arch/types.h (moved) (moved from boot/arch/arm32/include/types.h ) (1 diff)
-
arch/arm32/include/cp15.h (deleted)
-
arch/ia64/Makefile.inc (modified) (3 diffs)
-
arch/ia64/include/arch/arch.h (moved) (moved from boot/arch/ia64/include/arch.h )
-
arch/ia64/include/arch/asm.h (moved) (moved from boot/arch/ia64/include/asm.h )
-
arch/ia64/include/arch/main.h (moved) (moved from boot/arch/ia64/include/main.h )
-
arch/ia64/include/arch/pal.h (moved) (moved from boot/arch/ia64/include/pal.h )
-
arch/ia64/include/arch/sal.h (moved) (moved from boot/arch/ia64/include/sal.h )
-
arch/ia64/include/arch/ski.h (moved) (moved from boot/arch/ia64/include/ski.h )
-
arch/ia64/include/arch/types.h (moved) (moved from boot/arch/ia64/include/types.h ) (1 diff)
-
arch/mips32/Makefile.inc (modified) (2 diffs)
-
arch/mips32/include/arch/arch.h (moved) (moved from boot/arch/mips32/include/arch.h )
-
arch/mips32/include/arch/asm.h (moved) (moved from boot/arch/mips32/include/asm.h )
-
arch/mips32/include/arch/main.h (moved) (moved from boot/arch/mips32/include/main.h )
-
arch/mips32/include/arch/regname.h (moved) (moved from boot/arch/mips32/include/regname.h )
-
arch/mips32/include/arch/types.h (moved) (moved from boot/arch/mips32/include/types.h ) (1 diff)
-
arch/mips32/src/asm.S (modified) (1 diff)
-
arch/ppc32/Makefile.inc (modified) (1 diff)
-
arch/ppc32/include/arch/arch.h (moved) (moved from boot/arch/ppc32/include/arch.h )
-
arch/ppc32/include/arch/asm.h (moved) (moved from boot/arch/ppc32/include/asm.h )
-
arch/ppc32/include/arch/main.h (moved) (moved from boot/arch/ppc32/include/main.h )
-
arch/ppc32/include/arch/ofw.h (moved) (moved from boot/arch/ppc32/include/ofw.h )
-
arch/ppc32/include/arch/regname.h (moved) (moved from boot/arch/ppc32/include/regname.h )
-
arch/ppc32/include/arch/types.h (moved) (moved from boot/arch/ppc32/include/types.h ) (1 diff)
-
arch/riscv64/include/arch/arch.h (moved) (moved from boot/arch/riscv64/include/arch.h )
-
arch/riscv64/include/arch/asm.h (moved) (moved from boot/arch/riscv64/include/asm.h )
-
arch/riscv64/include/arch/main.h (moved) (moved from boot/arch/riscv64/include/main.h )
-
arch/riscv64/include/arch/mm.h (moved) (moved from boot/arch/riscv64/include/mm.h )
-
arch/riscv64/include/arch/types.h (moved) (moved from boot/arch/riscv64/include/types.h ) (1 diff)
-
arch/riscv64/include/arch/ucb.h (moved) (moved from boot/arch/riscv64/include/ucb.h )
-
arch/sparc64/Makefile.inc (modified) (1 diff)
-
arch/sparc64/include/arch/arch.h (moved) (moved from boot/arch/sparc64/include/arch.h )
-
arch/sparc64/include/arch/asm.h (moved) (moved from boot/arch/sparc64/include/asm.h )
-
arch/sparc64/include/arch/main.h (moved) (moved from boot/arch/sparc64/include/main.h )
-
arch/sparc64/include/arch/ofw.h (moved) (moved from boot/arch/sparc64/include/ofw.h )
-
arch/sparc64/include/arch/types.h (moved) (moved from boot/arch/sparc64/include/types.h ) (1 diff)
-
genarch/include/genarch/division.h (moved) (moved from boot/genarch/include/division.h )
-
genarch/include/genarch/efi.h (moved) (moved from boot/genarch/include/efi.h )
-
genarch/include/genarch/multiplication.h (moved) (moved from boot/genarch/include/multiplication.h )
-
genarch/include/genarch/ofw.h (moved) (moved from boot/genarch/include/ofw.h )
-
genarch/include/genarch/ofw_tree.h (moved) (moved from boot/genarch/include/ofw_tree.h )
-
generic/include/stddef.h (modified) (1 diff)
-
generic/include/stdint.h (modified) (1 diff)
-
generic/src/printf_core.c (modified) (3 diffs)
-
generic/src/str.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r887c9de rf9d0a86 128 128 rm -f $(POST_OUTPUT) $(BOOT_OUTPUT) arch/*/include/common.h 129 129 find generic/src/ arch/*/src/ genarch/src/ -name '*.o' -follow -exec rm \{\} \; 130 find generic/src/ arch/*/src/ genarch/src/-name '*.d' -follow -exec rm \{\} \;130 find . -name '*.d' -follow -exec rm \{\} \; 131 131 132 132 clean_dist: -
boot/Makefile.build
r887c9de rf9d0a86 31 31 include Makefile.common 32 32 33 INCLUDES = -Igeneric/include -I $(ROOT_PATH)/abi/include33 INCLUDES = -Igeneric/include -Iarch/$(KARCH)/include -Igenarch/include -I$(ROOT_PATH)/abi/include 34 34 OPTIMIZATION = 3 35 35 36 36 DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 37 37 38 AFLAGS = 39 LFLAGS = --fatal-warnings 40 41 # FIXME: This condition is a workaround for issue #693. 42 ifneq ($(BARCH),mips32) 43 AFLAGS += --fatal-warnings 44 endif 38 AFLAGS = --fatal-warnings 39 LFLAGS = --fatal-warnings --warn-common 45 40 46 41 COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 47 42 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 48 -fexec-charset=UTF-8 -finput-charset=UTF-8 43 -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \ 44 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. 49 45 50 46 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ … … 76 72 77 73 clean: 78 rm -f $(RAW) $(MAP) $(ARCH_INCLUDE) $(GENARCH_INCLUDE)74 rm -f $(RAW) $(MAP) 79 75 80 76 -include $(DEPENDS) … … 91 87 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK) 92 88 89 %.o: %.s | depend 90 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ 91 93 92 %.o: %.S | depend 94 $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 95 ifeq ($(PRECHECK),y) 96 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 97 endif 93 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ 98 94 99 95 %.o: %.c | depend 100 $(CC) -MD $(DEFS) $(CFLAGS) -c $< -o $@ 101 ifeq ($(PRECHECK),y) 102 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 103 endif 96 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 104 97 105 %.o: %.s | depend 106 $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 107 ifeq ($(PRECHECK),y) 108 $(JOBFILE) $(JOB) $< $@ as asm 109 endif 110 111 depend: $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) $(PRE_DEPEND) 98 depend: $(PRE_DEPEND) 112 99 113 100 $(COMPS).s: $(COMPS).zip … … 128 115 include Makefile.initrd 129 116 130 $(ARCH_INCLUDE): arch/$(KARCH)/include/131 ln -sfn ../../$< $@132 133 $(GENARCH_INCLUDE): genarch/include/134 ln -sfn ../../$< $@135 136 $(COMMON_HEADER_ARCH): $(COMMON_HEADER)137 ln -sfn ../../../$< $@ -
boot/Makefile.common
r887c9de rf9d0a86 36 36 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 37 37 COMMON_HEADER = $(ROOT_PATH)/common.h 38 COMMON_HEADER_ARCH = arch/$(BARCH)/include/common.h39 38 40 39 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config … … 58 57 MKUIMAGE = $(TOOLS_PATH)/mkuimage.py 59 58 60 JOBFILE = $(ROOT_PATH)/tools/jobfile.py 61 62 ARCH_INCLUDE = generic/include/arch 63 GENARCH_INCLUDE = generic/include/genarch 59 ifeq ($(PRECHECK),y) 60 JOBFILE = $(TOOLS_PATH)/jobfile.py 61 # XXX: Do not change the order of arguments. 62 CC_JOB = $(JOBFILE) $(JOB) $(CC) $< -o $@ 63 else 64 CC_JOB = $(CC) $< -o $@ 65 endif 64 66 65 67 DISTROOT = distroot -
boot/arch/amd64/Makefile.inc
r887c9de rf9d0a86 39 39 audio/sb16 \ 40 40 char/i8042 \ 41 char/ps2mouse \42 char/xtkbd41 hid/ps2mouse \ 42 hid/xtkbd 43 43 44 44 RD_DRVS_NON_ESSENTIAL += \ … … 51 51 bus/usb/usbflbk \ 52 52 bus/usb/usbhub \ 53 bus/usb/usbhid \54 bus/usb/usbmast \55 53 bus/usb/usbmid \ 56 54 bus/usb/vhc \ 57 bus/usb/xhci 55 bus/usb/xhci \ 56 block/usbmast \ 57 hid/usbhid 58 58 59 59 RD_DRV_CFG += \ -
boot/arch/arm32/Makefile.inc
r887c9de rf9d0a86 74 74 RD_DRVS_ESSENTIAL += \ 75 75 char/pl050 \ 76 char/atkbd \77 char/ps2mouse \76 hid/atkbd \ 77 hid/ps2mouse \ 78 78 intctl/icp-ic \ 79 79 platform/icp … … 85 85 bus/usb/usbflbk \ 86 86 bus/usb/usbhub \ 87 bus/usb/usb hid \88 b us/usb/usbmast \89 bus/usb/usbmid87 bus/usb/usbmid \ 88 block/usbmast \ 89 hid/usbhid 90 90 91 91 SOURCES = \ -
boot/arch/arm32/include/arch/types.h
r887c9de rf9d0a86 37 37 #define BOOT_arm32_TYPES_H 38 38 39 #include < arch/common.h>39 #include <_bits/all.h> 40 40 41 41 #define TASKMAP_MAX_RECORDS 32 42 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 44 typedef uint32_t size_t;45 typedef uint32_t uintptr_t;46 47 typedef uint32_t pfn_t;48 49 typedef int32_t ptrdiff_t;50 43 51 44 typedef struct { -
boot/arch/ia64/Makefile.inc
r887c9de rf9d0a86 66 66 endif 67 67 68 ifeq ($(MACHINE),i460GX) 68 69 RD_DRVS_ESSENTIAL += \ 69 70 platform/pc \ … … 71 72 bus/isa \ 72 73 char/i8042 \ 73 char/xtkbd74 hid/xtkbd 74 75 75 76 RD_DRVS_NON_ESSENTIAL += \ … … 81 82 bus/usb/usbflbk \ 82 83 bus/usb/usbhub \ 83 bus/usb/usbhid \84 bus/usb/usbmast \85 84 bus/usb/usbmid \ 86 bus/usb/vhc 85 bus/usb/vhc \ 86 block/usbmast \ 87 hid/usbhid 87 88 88 89 RD_DRV_CFG += \ 89 90 bus/isa 91 endif 92 93 ifeq ($(MACHINE),ski) 94 RD_DRVS_ESSENTIAL += \ 95 char/ski-con \ 96 platform/ski 97 endif 90 98 91 99 PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c $(COMPONENTS_DEFLATE) -
boot/arch/ia64/include/arch/types.h
r887c9de rf9d0a86 30 30 #define BOOT_ia64_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 36 #define MEMMAP_ITEMS 128 37 38 typedef uint64_t size_t;39 typedef uint64_t sysarg_t;40 typedef uint64_t uintptr_t;41 42 typedef int64_t ptrdiff_t;43 37 44 38 typedef struct { -
boot/arch/mips32/Makefile.inc
r887c9de rf9d0a86 58 58 bus/isa \ 59 59 char/i8042 \ 60 char/ps2mouse \61 char/xtkbd60 hid/ps2mouse \ 61 hid/xtkbd 62 62 63 63 RD_DRV_CFG += \ … … 68 68 RD_DRVS_ESSENTIAL += \ 69 69 platform/msim \ 70 block/ddisk 70 block/ddisk \ 71 char/msim-con 71 72 endif 72 73 -
boot/arch/mips32/include/arch/types.h
r887c9de rf9d0a86 30 30 #define BOOT_mips32_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define CPUMAP_MAX_RECORDS 32 36 36 #define BOOTINFO_TASK_NAME_BUFLEN 32 37 38 typedef uint32_t size_t;39 typedef uint32_t uintptr_t;40 41 typedef int32_t ptrdiff_t;42 37 43 38 typedef struct { -
boot/arch/mips32/src/asm.S
r887c9de rf9d0a86 33 33 .set noat 34 34 .set noreorder 35 .set nomacro36 35 37 36 .section BOOTSTRAP -
boot/arch/ppc32/Makefile.inc
r887c9de rf9d0a86 49 49 bus/usb/usbflbk \ 50 50 bus/usb/usbhub \ 51 bus/usb/usbhid \52 bus/usb/usbmast \53 51 bus/usb/usbmid \ 54 bus/usb/vhc 52 bus/usb/vhc \ 53 block/usbmast \ 54 hid/usbhid 55 55 56 56 SOURCES = \ -
boot/arch/ppc32/include/arch/types.h
r887c9de rf9d0a86 30 30 #define BOOT_ppc32_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 37 typedef uint32_t size_t;38 typedef uint32_t uintptr_t;39 typedef uint32_t sysarg_t;40 typedef int32_t native_t;41 42 typedef int32_t ptrdiff_t;43 36 44 37 typedef struct { -
boot/arch/riscv64/include/arch/types.h
r887c9de rf9d0a86 30 30 #define BOOT_riscv64_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define MEMMAP_MAX_RECORDS 32 35 35 #define TASKMAP_MAX_RECORDS 32 36 36 #define BOOTINFO_TASK_NAME_BUFLEN 32 37 38 typedef uint64_t size_t;39 typedef uint64_t uintptr_t;40 41 typedef int64_t ptrdiff_t;42 37 43 38 typedef struct { -
boot/arch/sparc64/Makefile.inc
r887c9de rf9d0a86 39 39 EXTRA_CFLAGS = -mcpu=ultrasparc -m64 -mno-fpu -mcmodel=medlow 40 40 41 ifeq ($(PROCESSOR), sun4v) 42 RD_DRVS_ESSENTIAL += \ 43 platform/sun4v \ 44 char/sun4v-con 45 else 41 46 RD_DRVS_ESSENTIAL += \ 42 47 platform/sun4u \ 43 48 bus/pci/pciintel \ 44 49 bus/isa \ 50 intctl/obio \ 45 51 char/ns8250 46 52 47 53 RD_DRV_CFG += \ 48 54 bus/isa 49 50 RD_SRVS_NON_ESSENTIAL += 51 52 RD_SRVS_ESSENTIAL += \ 53 $(USPACE_PATH)/srv/hw/irc/obio/obio 55 endif 54 56 55 57 SOURCES = \ -
boot/arch/sparc64/include/arch/types.h
r887c9de rf9d0a86 30 30 #define BOOT_sparc64_TYPES_H_ 31 31 32 #include < arch/common.h>32 #include <_bits/all.h> 33 33 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 #define BOOTINFO_TASK_NAME_BUFLEN 32 36 37 typedef uint64_t size_t;38 typedef uint64_t uintptr_t;39 typedef uint64_t sysarg_t;40 typedef int64_t native_t;41 42 typedef int64_t ptrdiff_t;43 36 44 37 typedef struct { -
boot/generic/include/stddef.h
r887c9de rf9d0a86 33 33 #define BOOT_STDDEF_H_ 34 34 35 #include <arch/common.h>36 35 #include <arch/types.h> 37 36 38 # define NULL ((void *) 0)37 #include <_bits/NULL.h> 39 38 40 39 #endif -
boot/generic/include/stdint.h
r887c9de rf9d0a86 33 33 #define BOOT_STDINT_H_ 34 34 35 #include <arch/common.h>36 35 #include <arch/types.h> 37 38 #define INT8_MIN INT8_C(0x80)39 #define INT8_MAX INT8_C(0x7F)40 41 #define UINT8_MIN UINT8_C(0)42 #define UINT8_MAX UINT8_C(0xFF)43 44 #define INT16_MIN INT16_C(0x8000)45 #define INT16_MAX INT16_C(0x7FFF)46 47 #define UINT16_MIN UINT16_C(0)48 #define UINT16_MAX UINT16_C(0xFFFF)49 50 #define INT32_MIN INT32_C(0x80000000)51 #define INT32_MAX INT32_C(0x7FFFFFFF)52 53 #define UINT32_MIN UINT32_C(0)54 #define UINT32_MAX UINT32_C(0xFFFFFFFF)55 56 #define INT64_MIN INT64_C(0x8000000000000000)57 #define INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF)58 59 #define UINT64_MIN UINT64_C(0)60 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF)61 36 62 37 #endif -
boot/generic/src/printf_core.c
r887c9de rf9d0a86 101 101 PrintfQualifierLongLong, 102 102 PrintfQualifierPointer, 103 PrintfQualifierSize 103 PrintfQualifierSize, 104 PrintfQualifierMax 104 105 } qualifier_t; 105 106 … … 643 644 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 644 645 break; 646 case 'j': 647 qualifier = PrintfQualifierMax; 648 i = nxt; 649 uc = str_decode(fmt, &nxt, STR_NO_LIMIT); 650 break; 645 651 default: 646 652 /* Default type */ … … 759 765 number = (uint64_t) va_arg(ap, size_t); 760 766 break; 767 case PrintfQualifierMax: 768 size = sizeof(uintmax_t); 769 number = (uint64_t) va_arg(ap, uintmax_t); 770 break; 761 771 default: 762 772 /* Unknown qualifier */ -
boot/generic/src/str.c
r887c9de rf9d0a86 104 104 105 105 /** Check the condition if wchar_t is signed */ 106 #ifdef WCHAR_IS_UNSIGNED106 #ifdef __WCHAR_UNSIGNED__ 107 107 #define WCHAR_SIGNED_CHECK(cond) (true) 108 108 #else
Note:
See TracChangeset
for help on using the changeset viewer.
