summaryrefslogtreecommitdiff
path: root/kernel/cio.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-27 17:56:39 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-27 17:56:39 -0400
commit44694ba9492b03042e3cda7eae717b854905e25e (patch)
treee9621397e9491f1ae364af15aa8f2ff056955592 /kernel/cio.c
parenttrack changes (diff)
downloadcomus-44694ba9492b03042e3cda7eae717b854905e25e.tar.gz
comus-44694ba9492b03042e3cda7eae717b854905e25e.tar.bz2
comus-44694ba9492b03042e3cda7eae717b854905e25e.zip
track changes
Diffstat (limited to 'kernel/cio.c')
-rw-r--r--kernel/cio.c5
1 files changed, 3 insertions, 2 deletions
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