Changeset 15819e37 in mainline for kernel/arch/ia64/src/drivers/ega.c
- Timestamp:
- 2007-02-04T21:04:36Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d307e7
- Parents:
- 5573942
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/drivers/ega.c
r5573942 r15819e37 46 46 #include <console/console.h> 47 47 #include <sysinfo/sysinfo.h> 48 #include <arch/ simics/ega.h>48 #include <arch/drivers/ega.h> 49 49 50 50 /* … … 67 67 void ega_init(void) 68 68 { 69 70 69 videoram = (uint8_t *) (VIDEORAM); 70 71 /* 72 * Clear the screen. 73 */ 74 _memsetw((uintptr_t) videoram, SCREEN, 0x0720); 71 75 72 76 chardev_initialize("ega_out", &ega_console, &ega_ops); … … 87 91 { 88 92 videoram[ega_cursor * 2] = ch; 89 videoram[ega_cursor * 2 +1] = 7;93 videoram[ega_cursor * 2 + 1] = 7; 90 94 } 91 95 … … 95 99 static void ega_check_cursor(void) 96 100 { 97 int i;98 101 if (ega_cursor < SCREEN) 99 102 return; 100 103 101 104 memcpy((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2); 102 for(i=0;i<ROW*2;i+=2) 103 { 104 videoram[(SCREEN-ROW)*2+i+0]=0x20; 105 videoram[(SCREEN-ROW)*2+i+1]=0x07; 106 } 105 _memsetw((uintptr_t) (videoram + (SCREEN - ROW) * 2), ROW, 0x0720); 107 106 ega_cursor = ega_cursor - ROW; 108 107 } … … 137 136 } 138 137 139 140 138 /** @} 141 139 */
Note:
See TracChangeset
for help on using the changeset viewer.