Changeset 973be64e in mainline for arch/ia32/src/drivers/ega.c
- Timestamp:
- 2005-12-10T00:19:57Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fcfac420
- Parents:
- 705b4149
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/drivers/ega.c
r705b4149 r973be64e 35 35 #include <arch/asm.h> 36 36 #include <memstr.h> 37 #include <console/chardev.h> 38 #include <console/console.h> 37 39 38 40 /* … … 43 45 static spinlock_t egalock; 44 46 static __u32 ega_cursor; 47 48 static void ega_putchar(chardev_t *d, const char ch); 49 50 chardev_t ega_console; 51 static chardev_operations_t ega_ops = { 52 .write = ega_putchar 53 }; 45 54 46 55 void ega_move_cursor(void); … … 56 65 lo = inb(0x3d5); 57 66 ega_cursor = (hi<<8)|lo; 58 ega_putchar('\n'); 67 68 chardev_initialize("ega_out", &ega_console, &ega_ops); 69 stdout = &ega_console; 70 71 putchar('\n'); 59 72 } 60 73 … … 79 92 } 80 93 81 void ega_putchar(c onst char ch)94 void ega_putchar(chardev_t *d, const char ch) 82 95 { 83 96 ipl_t ipl; … … 112 125 outb(0x3d5,ega_cursor&0xff); 113 126 } 114 115 void putchar(const char ch)116 {117 ega_putchar(ch);118 }
Note:
See TracChangeset
for help on using the changeset viewer.