- Timestamp:
- 2009-06-18T08:30:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12956e57
- Parents:
- 553492be
- Location:
- kernel
- Files:
-
- 7 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r553492be rac47b7c2 45 45 # 46 46 47 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" 47 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 48 48 49 49 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \ 50 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32 -finput-charset=UTF-8\51 -f no-builtin -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Werror \52 - nostdlib -nostdinc -pipe50 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 51 -finput-charset=UTF-8 -fno-builtin -Wall -Wextra -Wno-unused-parameter \ 52 -Wmissing-prototypes -Werror -nostdlib -nostdinc -pipe 53 53 54 54 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \ -
kernel/arch/amd64/Makefile.inc
r553492be rac47b7c2 42 42 SUNCC_CFLAGS += -m64 -xmodel=kernel 43 43 44 DEFS += -D__64_BITS__ 44 BITS = 64 45 ENDIANESS = LE 45 46 46 47 ## Accepted CPUs -
kernel/arch/arm32/Makefile.inc
r553492be rac47b7c2 40 40 GCC_CFLAGS += -fno-zero-initialized-in-bss 41 41 42 DEFS += -D__32_BITS__ 42 BITS = 32 43 ENDIANESS = LE 43 44 44 45 ARCH_SOURCES = \ -
kernel/arch/ia32/Makefile.inc
r553492be rac47b7c2 36 36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/i686 37 37 38 DEFS += -D__32_BITS__ 38 BITS = 32 39 ENDIANESS = LE 39 40 40 41 CMN1 = -m32 -
kernel/arch/ia64/Makefile.inc
r553492be rac47b7c2 42 42 AFLAGS += -mconstant-gp 43 43 44 DEFS += -D__64_BITS__ 44 BITS = 64 45 ENDIANESS = LE 45 46 46 47 ARCH_SOURCES = \ -
kernel/arch/mips32/Makefile.inc
r553492be rac47b7c2 37 37 GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3 38 38 39 DEFS += -D__32_BITS__ 39 BITS = 32 40 40 41 41 ## Accepted MACHINEs … … 44 44 ifeq ($(MACHINE),lgxemul) 45 45 BFD_NAME = elf32-tradlittlemips 46 ENDIANESS = LE 46 47 endif 47 48 ifeq ($(MACHINE),bgxemul) … … 49 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips 50 51 TARGET = mips-linux-gnu 51 GCC_CFLAGS += -DBIG_ENDIAN 52 ENDIANESS = BE 53 GCC_CFLAGS += -D__BE__ 52 54 endif 53 55 ifeq ($(MACHINE),msim) 54 56 BFD_NAME = elf32-tradlittlemips 57 ENDIANESS = LE 55 58 GCC_CFLAGS += -mhard-float 56 59 endif -
kernel/arch/mips32/include/elf.h
r553492be rac47b7c2 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 36 36 #define KERN_mips32_ELF_H_ 37 37 38 # include <byteorder.h>38 #define ELF_MACHINE EM_MIPS 39 39 40 #define ELF_MACHINE EM_MIPS 41 42 #ifdef ARCH_IS_BIG_ENDIAN 43 # define ELF_DATA_ENCODING ELFDATA2MSB 40 #ifdef __BE__ 41 #define ELF_DATA_ENCODING ELFDATA2MSB 44 42 #else 45 # define ELF_DATA_ENCODINGELFDATA2LSB43 #define ELF_DATA_ENCODING ELFDATA2LSB 46 44 #endif 47 45 48 #define ELF_CLASS 46 #define ELF_CLASS ELFCLASS32 49 47 50 48 #endif -
kernel/arch/ppc32/Makefile.inc
r553492be rac47b7c2 40 40 LFLAGS += -no-check-sections -N 41 41 42 DEFS += -D__32_BITS__ 42 BITS = 32 43 ENDIANESS = BE 43 44 44 45 ARCH_SOURCES = \ -
kernel/arch/sparc64/Makefile.inc
r553492be rac47b7c2 41 41 LFLAGS += -no-check-sections -N 42 42 43 DEFS += -D__64_BITS__ 43 BITS = 64 44 ENDIANESS = BE 44 45 45 46 ifeq ($(PROCESSOR),us) -
kernel/generic/include/byteorder.h
r553492be rac47b7c2 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_BYTEORDER_H_ 37 37 38 #include <arch/byteorder.h>39 38 #include <arch/types.h> 40 39 41 #if !(defined( ARCH_IS_BIG_ENDIAN) ^ defined(ARCH_IS_LITTLE_ENDIAN))42 #error The architecture must be either big-endian or little-endian.40 #if !(defined(__BE__) ^ defined(__LE__)) 41 #error The architecture must be either big-endian or little-endian. 43 42 #endif 44 43 45 #ifdef ARCH_IS_BIG_ENDIAN44 #ifdef __BE__ 46 45 47 #define uint16_t_le2host(n) uint16_t_byteorder_swap(n)48 #define uint32_t_le2host(n) uint32_t_byteorder_swap(n)49 #define uint64_t_le2host(n) uint64_t_byteorder_swap(n)46 #define uint16_t_le2host(n) (uint16_t_byteorder_swap(n)) 47 #define uint32_t_le2host(n) (uint32_t_byteorder_swap(n)) 48 #define uint64_t_le2host(n) (uint64_t_byteorder_swap(n)) 50 49 51 #define uint16_t_be2host(n) 52 #define uint32_t_be2host(n) 53 #define uint64_t_be2host(n) 50 #define uint16_t_be2host(n) (n) 51 #define uint32_t_be2host(n) (n) 52 #define uint64_t_be2host(n) (n) 54 53 55 #define host2uint16_t_le(n) uint16_t_byteorder_swap(n)56 #define host2uint32_t_le(n) uint32_t_byteorder_swap(n)57 #define host2uint64_t_le(n) uint64_t_byteorder_swap(n)54 #define host2uint16_t_le(n) (uint16_t_byteorder_swap(n)) 55 #define host2uint32_t_le(n) (uint32_t_byteorder_swap(n)) 56 #define host2uint64_t_le(n) (uint64_t_byteorder_swap(n)) 58 57 59 #define host2uint16_t_be(n) 60 #define host2uint32_t_be(n) 61 #define host2uint64_t_be(n) 58 #define host2uint16_t_be(n) (n) 59 #define host2uint32_t_be(n) (n) 60 #define host2uint64_t_be(n) (n) 62 61 63 62 #else 64 63 65 #define uint16_t_le2host(n) 66 #define uint32_t_le2host(n) 67 #define uint64_t_le2host(n) 64 #define uint16_t_le2host(n) (n) 65 #define uint32_t_le2host(n) (n) 66 #define uint64_t_le2host(n) (n) 68 67 69 #define uint16_t_be2host(n) uint16_t_byteorder_swap(n)70 #define uint32_t_be2host(n) uint32_t_byteorder_swap(n)71 #define uint64_t_be2host(n) uint64_t_byteorder_swap(n)68 #define uint16_t_be2host(n) (uint16_t_byteorder_swap(n)) 69 #define uint32_t_be2host(n) (uint32_t_byteorder_swap(n)) 70 #define uint64_t_be2host(n) (uint64_t_byteorder_swap(n)) 72 71 73 #define host2uint16_t_le(n) 74 #define host2uint32_t_le(n) 75 #define host2uint64_t_le(n) 72 #define host2uint16_t_le(n) (n) 73 #define host2uint32_t_le(n) (n) 74 #define host2uint64_t_le(n) (n) 76 75 77 #define host2uint16_t_be(n) uint16_t_byteorder_swap(n)78 #define host2uint32_t_be(n) uint32_t_byteorder_swap(n)79 #define host2uint64_t_be(n) uint64_t_byteorder_swap(n)76 #define host2uint16_t_be(n) (uint16_t_byteorder_swap(n)) 77 #define host2uint32_t_be(n) (uint32_t_byteorder_swap(n)) 78 #define host2uint64_t_be(n) (uint64_t_byteorder_swap(n)) 80 79 81 80 #endif -
kernel/generic/include/string.h
r553492be rac47b7c2 58 58 #define U_CURSOR 0x2588 59 59 60 #define U_BOM 0xfeff61 62 60 /**< No size limit constant */ 63 61 #define STR_NO_LIMIT ((size_t) -1) -
kernel/generic/src/printf/printf_core.c
r553492be rac47b7c2 302 302 if (str == NULL) 303 303 return printf_putstr(nullstr, ps); 304 305 if (*str == U_BOM)306 str++;307 304 308 305 /* Print leading spaces. */
Note:
See TracChangeset
for help on using the changeset viewer.