Changeset 282f4724 in mainline
- Timestamp:
- 2006-06-25T21:02:16Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce8725be
- Parents:
- 7431e867
- Files:
-
- 3 added
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/loader/Makefile
r7431e867 r282f4724 48 48 49 49 CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 50 DEFS = 50 DEFS = -I. 51 51 52 52 SOURCES = \ 53 53 main.c \ 54 54 msim.c \ 55 printf.c \55 ../../../generic/printf.c \ 56 56 asm.S \ 57 57 boot.S -
arch/mips32/loader/main.c
r7431e867 r282f4724 28 28 29 29 #include "main.h" 30 #include " printf.h"30 #include "../../../generic/printf.h" 31 31 #include "msim.h" 32 32 #include "asm.h" -
arch/mips32/loader/msim.c
r7431e867 r282f4724 28 28 29 29 #include "msim.h" 30 #include "printf.h" 31 30 #include "../../../generic/printf.h" 32 31 33 32 #define MSIM_VIDEORAM 0xB0000000 34 35 33 36 34 void write(const char *str, const int len) -
arch/mips32/loader/msim.h
r7431e867 r282f4724 30 30 #define __MSIM_H__ 31 31 32 #define NULL 033 #define false 034 #define true 135 36 typedef __builtin_va_list va_list;37 38 #define va_start(ap, last) __builtin_va_start(ap, last)39 #define va_arg(ap, type) __builtin_va_arg(ap, type)40 #define va_end(ap) __builtin_va_end(ap)41 42 32 extern void init(void); 43 33 extern void halt(void); 44 34 45 extern void write(const char *str, const int len);46 35 extern void *translate(void *addr); 47 36 -
generic/printf.c
r7431e867 r282f4724 28 28 29 29 #include "printf.h" 30 #include "msim.h" 30 #include "stdarg.h" 31 #include <types.h> 32 33 typedef char *char_ptr; 31 34 32 35 static char digits[] = "0123456789abcdef"; /**< Hexadecimal characters */ 33 34 36 35 37 void puts(const char *str) -
generic/printf.h
r7431e867 r282f4724 27 27 */ 28 28 29 #ifndef __PRINTF_H__30 #define __PRINTF_H__29 #ifndef PRINTF_H__ 30 #define PRINTF_H__ 31 31 32 32 #define INT8 1 … … 35 35 #define INT64 8 36 36 37 typedef signed char __s8; 37 extern void puts(const char *str); 38 extern void printf(const char *fmt, ...); 38 39 39 typedef unsigned char __u8; 40 typedef unsigned short __u16; 41 typedef unsigned int __u32; 42 typedef unsigned long long __u64; 43 44 typedef __u32 __address; 45 typedef __u32 __native; 46 47 typedef char *char_ptr; 48 49 void puts(const char *str); 50 void printf(const char *fmt, ...); 40 extern void write(const char *str, const int len); 51 41 52 42 #endif
Note:
See TracChangeset
for help on using the changeset viewer.