Changeset 27dc170 in mainline
- Timestamp:
- 2005-05-11T17:08:53Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93ca46f
- Parents:
- d34657e
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/ega.h
rd34657e r27dc170 36 36 37 37 extern void ega_init(void); 38 extern void ega_putchar(c har ch);38 extern void ega_putchar(const char ch); 39 39 40 40 static void ega_check_cursor(void); -
arch/ia32/src/drivers/ega.c
rd34657e r27dc170 77 77 } 78 78 79 void ega_putchar(c har ch)79 void ega_putchar(const char ch) 80 80 { 81 81 pri_t pri; … … 111 111 } 112 112 113 void putchar(c har ch)113 void putchar(const char ch) 114 114 { 115 115 ega_putchar(ch); -
arch/ia64/src/putchar.c
rd34657e r27dc170 31 31 #include <arch/ski/ski.h> 32 32 33 void putchar(c har ch)33 void putchar(const char ch) 34 34 { 35 35 __asm__ ( -
arch/mips/src/putchar.c
rd34657e r27dc170 33 33 #define VIDEORAM 0xA000000 34 34 35 void putchar(c har ch)35 void putchar(const char ch) 36 36 { 37 37 __u32 status = cp0_status_read(); -
include/print.h
rd34657e r27dc170 36 36 #define INT32 4 37 37 38 static void print_str(c har *str);39 static void print_fixed_hex( __native num,int width);40 static void print_number(__native num,int base);38 static void print_str(const char *str); 39 static void print_fixed_hex(const __native num, const int width); 40 static void print_number(const __native num, const int base); 41 41 42 extern void putchar(c har c);43 extern void printf(c har *fmt, ...);42 extern void putchar(const char c); 43 extern void printf(const char *fmt, ...); 44 44 45 45 #endif -
include/putchar.h
rd34657e r27dc170 30 30 #define __PUTCHAR_H__ 31 31 32 extern void putchar(c har ch);32 extern void putchar(const char ch); 33 33 34 34 #endif -
src/debug/print.c
rd34657e r27dc170 45 45 * 46 46 */ 47 void print_str(c har *str)47 void print_str(const char *str) 48 48 { 49 49 int i = 0; … … 66 66 * 67 67 */ 68 void print_fixed_hex( __native num,int width)68 void print_fixed_hex(const __native num, const int width) 69 69 { 70 70 int i; … … 85 85 * 86 86 */ 87 void print_number(__native num, int base) 88 { 87 void print_number(const __native num, const int base) 88 { 89 int val = num; 89 90 char d[sizeof(__native)*8+1]; /* this is good enough even for base == 2 */ 90 91 int i = sizeof(__native)*8-1; 91 92 92 93 do { 93 d[i--] = digits[ num% base];94 } while ( num/= base);94 d[i--] = digits[val % base]; 95 } while (val /= base); 95 96 96 97 d[sizeof(__native)*8] = 0; … … 133 134 * 134 135 */ 135 void printf(c har *fmt, ...)136 void printf(const char *fmt, ...) 136 137 { 137 138 int irqpri, i = 0;
Note:
See TracChangeset
for help on using the changeset viewer.