Changeset adb2ebf8 in mainline
- Timestamp:
- 2005-12-10T16:07:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7f6f25
- Parents:
- 91c78c9
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/ski/ski.c
r91c78c9 radb2ebf8 34 34 static bool kb_disable; 35 35 36 static void ski_ write(chardev_t *d, const char ch);36 static void ski_putchar(chardev_t *d, const char ch); 37 37 static __s32 ski_getchar(void); 38 38 … … 45 45 * @param ch Character to be printed. 46 46 */ 47 void ski_ write(chardev_t *d, const char ch)47 void ski_putchar(chardev_t *d, const char ch) 48 48 { 49 49 __asm__ ( … … 57 57 58 58 if (ch == '\n') 59 ski_ write(d, '\r');59 ski_putchar(d, '\r'); 60 60 } 61 61 … … 117 117 .resume = ski_kb_enable, 118 118 .suspend = ski_kb_disable, 119 .write = ski_ write119 .write = ski_putchar 120 120 }; 121 121 -
arch/ppc32/src/console.c
r91c78c9 radb2ebf8 27 27 */ 28 28 29 #include < putchar.h>29 #include <arch/console.h> 30 30 #include <genarch/ofw/ofw.h> 31 31 #include <console/chardev.h> … … 36 36 * @param ch Character to be printed. 37 37 */ 38 static void ofw_ write(chardev_t *d, const char ch)38 static void ofw_ppc32_putchar(chardev_t *d, const char ch) 39 39 { 40 40 ofw_putchar(ch); 41 41 } 42 42 43 chardev_t ofw_console;44 static chardev_operations_t ofw_ ops = {45 .write = ofw_ write43 static chardev_t ofw_ppc32_console; 44 static chardev_operations_t ofw_ppc32_console_ops = { 45 .write = ofw_ppc32_putchar 46 46 }; 47 47 48 48 /** Initialize console to use ofw output */ 49 void console_init(void)49 void ofw_ppc32_console_init(void) 50 50 { 51 chardev_initialize("ofw_out", &ofw_ console, &ofw_ops);52 stdout = &ofw_ console;51 chardev_initialize("ofw_out", &ofw_ppc32_console, &ofw_ppc32_console_ops); 52 stdout = &ofw_ppc32_console; 53 53 } -
arch/ppc32/src/ppc32.c
r91c78c9 radb2ebf8 28 28 29 29 #include <arch.h> 30 #include <arch/console.h> 30 31 31 32 void arch_pre_mm_init(void) 32 33 { 34 ofw_ppc32_console_init(); 33 35 } 34 36 -
arch/sparc64/src/console.c
r91c78c9 radb2ebf8 27 27 */ 28 28 29 #include < putchar.h>29 #include <arch/console.h> 30 30 #include <genarch/ofw/ofw.h> 31 #include <console/chardev.h> 32 #include <console/console.h> 33 34 static void ofw_sparc64_putchar(chardev_t *d, const char ch); 35 36 static chardev_t ofw_sparc64_console; 37 static chardev_operations_t ofw_sparc64_console_ops = { 38 .write = ofw_sparc64_putchar 39 }; 40 41 void ofw_sparc64_console_init(void) 42 { 43 chardev_initialize("ofw_sparc64_console", &ofw_sparc64_console, &ofw_sparc64_console_ops); 44 stdout = &ofw_sparc64_console; 45 } 31 46 32 47 /** Print one character. … … 34 49 * @param ch Character to be printed. 35 50 */ 36 void putchar(const char ch)51 void ofw_sparc64_putchar(chardev_t *d, const char ch) 37 52 { 38 53 if (ch == '\n') -
arch/sparc64/src/sparc64.c
r91c78c9 radb2ebf8 32 32 #include <memstr.h> 33 33 #include <arch/trap_table.h> 34 #include <arch/console.h> 34 35 35 36 void arch_pre_mm_init(void) 36 37 { 38 ofw_sparc64_console_init(); 37 39 } 38 40 -
generic/include/console/chardev.h
r91c78c9 radb2ebf8 37 37 #define CHARDEV_BUFLEN 512 38 38 39 struct chardev;40 41 39 /* Character device operations interface. */ 42 40 struct chardev_operations { 43 void (* suspend)(struct chardev *);/**< Suspend pushing characters. */ 44 void (* resume)(struct chardev *); /**< Resume pushing characters. */ 45 /** Write character to stream */ 46 void (* write)(struct chardev *, char c); 41 void (* suspend)(chardev_t *); /**< Suspend pushing characters. */ 42 void (* resume)(chardev_t *); /**< Resume pushing characters. */ 43 void (* write)(chardev_t *, char c); /**< Write character to stream. */ 47 44 }; 48 45 -
generic/include/interrupt.h
r91c78c9 radb2ebf8 33 33 34 34 #ifndef IVT_ITEMS 35 # define IVT_ITEMS 135 # define IVT_ITEMS 0 36 36 #endif 37 37 -
generic/src/interrupt/interrupt.c
r91c78c9 radb2ebf8 113 113 static cmd_info_t exc_info = { 114 114 .name = "pexc", 115 .description = "Print exception table ",115 .description = "Print exception table.", 116 116 .func = exc_print_cmd, 117 117 .help = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.