From b05fb556cffe2ca924845d02a517c748db7b12a9 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Tue, 12 Oct 1993 06:59:36 +0000 Subject: [PATCH] Use KERNBASE for locating stuff in kernel virtual memory, not hard coded constants. --- sys/dev/syscons/syscons.c | 6 +++--- sys/i386/isa/syscons.c | 6 +++--- sys/isa/syscons.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index ac3f6784a64d..4c60968d5c50 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -87,9 +87,9 @@ #define SWITCH_WAIT_ACQ 0x00080 /* virtual video memory addresses */ -#define MONO_BUF 0xFE0B0000 -#define CGA_BUF 0xFE0B8000 -#define VGA_BUF 0xFE0A0000 +#define MONO_BUF (KERNBASE + 0xB0000) +#define CGA_BUF (KERNBASE + 0xB8000) +#define VGA_BUF (KERNBASE + 0xA0000) #define VIDEOMEM 0x000A0000 #define MEMSIZE 0x00020000 diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index ac3f6784a64d..4c60968d5c50 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -87,9 +87,9 @@ #define SWITCH_WAIT_ACQ 0x00080 /* virtual video memory addresses */ -#define MONO_BUF 0xFE0B0000 -#define CGA_BUF 0xFE0B8000 -#define VGA_BUF 0xFE0A0000 +#define MONO_BUF (KERNBASE + 0xB0000) +#define CGA_BUF (KERNBASE + 0xB8000) +#define VGA_BUF (KERNBASE + 0xA0000) #define VIDEOMEM 0x000A0000 #define MEMSIZE 0x00020000 diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index ac3f6784a64d..4c60968d5c50 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -87,9 +87,9 @@ #define SWITCH_WAIT_ACQ 0x00080 /* virtual video memory addresses */ -#define MONO_BUF 0xFE0B0000 -#define CGA_BUF 0xFE0B8000 -#define VGA_BUF 0xFE0A0000 +#define MONO_BUF (KERNBASE + 0xB0000) +#define CGA_BUF (KERNBASE + 0xB8000) +#define VGA_BUF (KERNBASE + 0xA0000) #define VIDEOMEM 0x000A0000 #define MEMSIZE 0x00020000