Changeset 7f1c620 in mainline for arch/ia32/src/drivers/ega.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/drivers/ega.c
r991779c5 r7f1c620 54 54 55 55 SPINLOCK_INITIALIZE(egalock); 56 static __u32ega_cursor;57 static __u8*videoram;56 static uint32_t ega_cursor; 57 static uint8_t *videoram; 58 58 59 59 static void ega_putchar(chardev_t *d, const char ch); … … 68 68 void ega_init(void) 69 69 { 70 __u8hi, lo;70 uint8_t hi, lo; 71 71 72 videoram = ( __u8*) hw_map(VIDEORAM, SCREEN * 2);72 videoram = (uint8_t *) hw_map(VIDEORAM, SCREEN * 2); 73 73 outb(0x3d4, 0xe); 74 74 hi = inb(0x3d5); … … 105 105 106 106 memcpy((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2); 107 memsetw(( __address) (videoram + (SCREEN - ROW) * 2), ROW, 0x0720);107 memsetw((uintptr_t) (videoram + (SCREEN - ROW) * 2), ROW, 0x0720); 108 108 ega_cursor = ega_cursor - ROW; 109 109 }
Note:
See TracChangeset
for help on using the changeset viewer.