Changeset a0e1b48 in mainline for kernel/genarch/src/drivers/ega/ega.c
- Timestamp:
- 2009-03-12T17:53:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c79afe
- Parents:
- b6f2ebc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/ega/ega.c
rb6f2ebc ra0e1b48 61 61 static ioport8_t *ega_base; 62 62 63 #define EMPTY_CHAR 0x0720 64 65 chardev_t ega_console; 63 #define SPACE 0x20 64 #define STYLE 0x07 65 66 #define EMPTY_CHAR (STYLE << 8 | SPACE) 66 67 67 68 /* … … 124 125 { 125 126 backbuf[ega_cursor * 2] = ch; 126 127 if (!silent) 127 backbuf[ega_cursor * 2 + 1] = STYLE; 128 129 if (!silent) { 128 130 videoram[ega_cursor * 2] = ch; 129 } 130 131 static void ega_putchar(chardev_t *dev __attribute__((unused)), const char ch, bool silent) 131 videoram[ega_cursor * 2 + 1] = STYLE; 132 } 133 } 134 135 static void ega_putchar(outdev_t *dev __attribute__((unused)), const char ch, bool silent) 132 136 { 133 137 ipl_t ipl; … … 161 165 } 162 166 163 static chardev_operations_t ega_ops = { 167 static outdev_t ega_console; 168 static outdev_operations_t ega_ops = { 164 169 .write = ega_putchar 165 170 }; … … 180 185 ega_sync_cursor(); 181 186 182 chardev_initialize("ega_out", &ega_console, &ega_ops);187 outdev_initialize("ega", &ega_console, &ega_ops); 183 188 stdout = &ega_console; 184 189
Note:
See TracChangeset
for help on using the changeset viewer.