Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 194 → Rev 195

/SPARTAN/trunk/arch/ia32/src/drivers/ega.c
33,6 → 33,7
#include <synch/spinlock.h>
#include <arch/types.h>
#include <arch/asm.h>
#include <memstr.h>
 
/*
* The EGA driver.
72,7 → 73,7
if (ega_cursor < SCREEN)
return;
 
memcopy(PA2KA(VIDEORAM) + ROW*2, PA2KA(VIDEORAM), (SCREEN - ROW)*2);
memcopy((void *)PA2KA(VIDEORAM),(void *)PA2KA(VIDEORAM) + ROW*2, (SCREEN - ROW)*2); //swaped
memsetw(PA2KA(VIDEORAM) + (SCREEN - ROW)*2, ROW, 0x0720);
ega_cursor = ega_cursor - ROW;
}