diff options
author | Freya Murphy <freya@freyacat.org> | 2025-03-27 17:56:39 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-03-27 17:56:39 -0400 |
commit | 44694ba9492b03042e3cda7eae717b854905e25e (patch) | |
tree | e9621397e9491f1ae364af15aa8f2ff056955592 /kernel/cio.c | |
parent | track changes (diff) | |
download | comus-44694ba9492b03042e3cda7eae717b854905e25e.tar.gz comus-44694ba9492b03042e3cda7eae717b854905e25e.tar.bz2 comus-44694ba9492b03042e3cda7eae717b854905e25e.zip |
track changes
Diffstat (limited to 'kernel/cio.c')
-rw-r--r-- | kernel/cio.c | 5 |
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 |