Changeset a721f6a in mainline
- Timestamp:
- 2010-04-23T15:15:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 80badbe
- Parents:
- 9efff92
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r9efff92 ra721f6a 351 351 352 352 $(RAW): $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(SYMTAB_OBJECTS) 353 $(LD) $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@$(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS)353 $(LD) -N $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) 354 354 355 355 $(LINK): $(LINK).in $(DEPEND) … … 394 394 $(REAL_MAP).bin: $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) 395 395 echo $(SYMTAB_SECTION) | $(AS) $(AFLAGS) -o $(EMPTY_MAP) 396 $(LD) $(LFLAGS) -T $(LINK) -M -Map $(MAP_PREV) -o $@$(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP)396 $(LD) -N $(LFLAGS) -T $(LINK) -M -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) 397 397 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 398 398 $(GENMAP) $(MAP_PREV) $(DUMP) $@ … … 402 402 403 403 echo $(SYMTAB_SECTION)" .incbin \"$@\"" | $(AS) $(AFLAGS) -o $(SIZEOK_MAP) 404 $(LD) $(LFLAGS) -T $(LINK) -M -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP)404 $(LD) -N $(LFLAGS) -T $(LINK) -M -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) 405 405 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 406 406 $(GENMAP) $(MAP_PREV) $(DUMP) $@ -
kernel/arch/mips32/include/arch.h
r9efff92 ra721f6a 36 36 #define KERN_mips32_ARCH_H_ 37 37 38 #define TASKMAP_MAX_RECORDS 32 39 #define CPUMAP_MAX_RECORDS 32 38 #include <typedefs.h> 40 39 41 #define BOOTINFO_TASK_NAME_BUFLEN3242 43 # include <typedefs.h>40 #define TASKMAP_MAX_RECORDS 32 41 #define CPUMAP_MAX_RECORDS 32 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 44 43 45 44 extern size_t cpu_count; … … 47 46 typedef struct { 48 47 uintptr_t addr; 49 uint32_t size;48 size_t size; 50 49 char name[BOOTINFO_TASK_NAME_BUFLEN]; 51 50 } utask_t; … … 53 52 typedef struct { 54 53 uint32_t cpumap; 55 uint32_t cnt;54 size_t cnt; 56 55 utask_t tasks[TASKMAP_MAX_RECORDS]; 57 56 } bootinfo_t; -
kernel/arch/mips32/include/asm/boot.h
r9efff92 ra721f6a 36 36 #define KERN_mips32_BOOT_H_ 37 37 38 39 38 /* Temporary stack size for boot process */ 40 #define TEMP_STACK_SIZE 0x10039 #define TEMP_STACK_SIZE 0x100 41 40 42 41 #endif -
kernel/arch/mips32/include/asm/regname.h
r9efff92 ra721f6a 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 69 69 #define ra 31 70 70 71 #define rindex 72 #define rrandom 73 #define entrylo0 74 #define entrylo1 75 #define context 76 #define pagemask 77 #define wired 78 #define badvaddr 79 #define count 80 #define entryhi 81 #define compare 82 #define status 83 #define cause 84 #define epc 85 #define rconfig 86 #define lladdr 87 #define watchlo 88 #define watchhi 89 #define xcontext 90 #define rdebug 91 #define depc 92 #define eepc 71 #define rindex 0 72 #define rrandom 1 73 #define entrylo0 2 74 #define entrylo1 3 75 #define context 4 76 #define pagemask 5 77 #define wired 6 78 #define badvaddr 8 79 #define count 9 80 #define entryhi 10 81 #define compare 11 82 #define status 12 83 #define cause 13 84 #define epc 14 85 #define rconfig 16 86 #define lladdr 17 87 #define watchlo 18 88 #define watchhi 19 89 #define xcontext 20 90 #define rdebug 23 91 #define depc 24 92 #define eepc 30 93 93 94 #endif /* KERN_mips32_REGNAME_H_ */94 #endif 95 95 96 96 /** @} -
kernel/generic/include/print.h
r9efff92 ra721f6a 39 39 #include <stdarg.h> 40 40 41 #define EOF (-1)41 #define EOF (-1) 42 42 43 43 extern int puts(const char *s); -
kernel/generic/include/printf/printf_core.h
r9efff92 ra721f6a 51 51 } printf_spec_t; 52 52 53 int printf_core(const char *fmt, printf_spec_t *ps, va_list ap);53 extern int printf_core(const char *fmt, printf_spec_t *ps, va_list ap); 54 54 55 55 #endif -
kernel/generic/src/main/version.c
r9efff92 ra721f6a 59 59 { 60 60 printf("%s, release %s (%s)%s\nBuilt%s for %s\n%s\n", 61 61 project, release, name, revision, timestamp, arch, copyright); 62 62 } 63 63 -
kernel/generic/src/printf/printf.c
r9efff92 ra721f6a 34 34 35 35 #include <print.h> 36 #include <stdarg.h> 36 37 37 38 int printf(const char *fmt, ...) -
kernel/generic/src/printf/printf_core.c
r9efff92 ra721f6a 46 46 /** show prefixes 0x or 0 */ 47 47 #define __PRINTF_FLAG_PREFIX 0x00000001 48 48 49 /** signed / unsigned number */ 49 50 #define __PRINTF_FLAG_SIGNED 0x00000002 51 50 52 /** print leading zeroes */ 51 53 #define __PRINTF_FLAG_ZEROPADDED 0x00000004 54 52 55 /** align to left */ 53 56 #define __PRINTF_FLAG_LEFTALIGNED 0x00000010 57 54 58 /** always show + sign */ 55 59 #define __PRINTF_FLAG_SHOWPLUS 0x00000020 60 56 61 /** print space instead of plus */ 57 62 #define __PRINTF_FLAG_SPACESIGN 0x00000040 63 58 64 /** show big characters */ 59 65 #define __PRINTF_FLAG_BIGCHARS 0x00000080 66 60 67 /** number has - sign */ 61 68 #define __PRINTF_FLAG_NEGATIVE 0x00000100 … … 79 86 } qualifier_t; 80 87 81 static c har nullstr[]= "(NULL)";82 static c har digits_small[]= "0123456789abcdef";83 static c har digits_big[]= "0123456789ABCDEF";84 static c har invalch = U_SPECIAL;88 static const char *nullstr = "(NULL)"; 89 static const char *digits_small = "0123456789abcdef"; 90 static const char *digits_big = "0123456789ABCDEF"; 91 static const char invalch = U_SPECIAL; 85 92 86 93 /** Print one or more characters without adding newline. … … 351 358 uint32_t flags, printf_spec_t *ps) 352 359 { 353 c har *digits;360 const char *digits; 354 361 if (flags & __PRINTF_FLAG_BIGCHARS) 355 362 digits = digits_big; -
uspace/lib/c/generic/io/printf_core.c
r9efff92 ra721f6a 45 45 /** show prefixes 0x or 0 */ 46 46 #define __PRINTF_FLAG_PREFIX 0x00000001 47 47 48 /** signed / unsigned number */ 48 49 #define __PRINTF_FLAG_SIGNED 0x00000002 50 49 51 /** print leading zeroes */ 50 52 #define __PRINTF_FLAG_ZEROPADDED 0x00000004 53 51 54 /** align to left */ 52 55 #define __PRINTF_FLAG_LEFTALIGNED 0x00000010 56 53 57 /** always show + sign */ 54 58 #define __PRINTF_FLAG_SHOWPLUS 0x00000020 59 55 60 /** print space instead of plus */ 56 61 #define __PRINTF_FLAG_SPACESIGN 0x00000040 62 57 63 /** show big characters */ 58 64 #define __PRINTF_FLAG_BIGCHARS 0x00000080 65 59 66 /** number has - sign */ 60 67 #define __PRINTF_FLAG_NEGATIVE 0x00000100 … … 78 85 } qualifier_t; 79 86 80 static c har nullstr[]= "(NULL)";81 static c har digits_small[]= "0123456789abcdef";82 static c har digits_big[]= "0123456789ABCDEF";83 static c har invalch = U_SPECIAL;87 static const char *nullstr = "(NULL)"; 88 static const char *digits_small = "0123456789abcdef"; 89 static const char *digits_big = "0123456789ABCDEF"; 90 static const char invalch = U_SPECIAL; 84 91 85 92 /** Print one or more characters without adding newline. … … 350 357 uint32_t flags, printf_spec_t *ps) 351 358 { 352 c har *digits;359 const char *digits; 353 360 if (flags & __PRINTF_FLAG_BIGCHARS) 354 361 digits = digits_big;
Note:
See TracChangeset
for help on using the changeset viewer.