From 44694ba9492b03042e3cda7eae717b854905e25e Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 27 Mar 2025 17:56:39 -0400 Subject: track changes --- kernel/cio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kernel/cio.c') diff --git a/kernel/cio.c b/kernel/cio.c index 1e5cb3c..deb6b76 100644 --- a/kernel/cio.c +++ b/kernel/cio.c @@ -67,8 +67,9 @@ static void (*notify)(int); // calculate the memory address of a specific character position // within VGA memory -#define VIDEO_ADDR(x, y) \ - (unsigned short *)(VID_BASE_ADDR + 2 * ((y) * SCREEN_X_SIZE + (x))) +#define VIDEO_ADDR(x, y) \ + (unsigned short *)((VID_BASE_ADDR + 2 * ((y) * SCREEN_X_SIZE + (x))) | \ + 0x80000000) // port addresses #define VGA_CTRL_IX_ADDR 0x3d4 -- cgit v1.2.3-freya