Changeset 7f1c620 in mainline for arch/ia32/src/drivers/ega.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/drivers/ega.c

    r991779c5 r7f1c620  
    5454
    5555SPINLOCK_INITIALIZE(egalock);
    56 static __u32 ega_cursor;
    57 static __u8 *videoram;
     56static uint32_t ega_cursor;
     57static uint8_t *videoram;
    5858
    5959static void ega_putchar(chardev_t *d, const char ch);
     
    6868void ega_init(void)
    6969{
    70         __u8 hi, lo;
     70        uint8_t hi, lo;
    7171       
    72         videoram = (__u8 *) hw_map(VIDEORAM, SCREEN * 2);
     72        videoram = (uint8_t *) hw_map(VIDEORAM, SCREEN * 2);
    7373        outb(0x3d4, 0xe);
    7474        hi = inb(0x3d5);
     
    105105
    106106        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);
    108108        ega_cursor = ega_cursor - ROW;
    109109}
Note: See TracChangeset for help on using the changeset viewer.