summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/syscons/daemon/daemon_saver.c10
-rw-r--r--sys/dev/syscons/snake/snake_saver.c4
-rw-r--r--sys/dev/syscons/star/star_saver.c4
-rw-r--r--sys/modules/syscons/daemon/Makefile4
-rw-r--r--sys/modules/syscons/daemon/daemon_saver.c10
-rw-r--r--sys/modules/syscons/snake/Makefile4
-rw-r--r--sys/modules/syscons/snake/snake_saver.c4
-rw-r--r--sys/modules/syscons/star/Makefile4
-rw-r--r--sys/modules/syscons/star/star_saver.c4
9 files changed, 48 insertions, 0 deletions
diff --git a/sys/dev/syscons/daemon/daemon_saver.c b/sys/dev/syscons/daemon/daemon_saver.c
index b056b48..5d5c539 100644
--- a/sys/dev/syscons/daemon/daemon_saver.c
+++ b/sys/dev/syscons/daemon/daemon_saver.c
@@ -43,6 +43,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
#define DAEMON_MAX_WIDTH 32
#define DAEMON_MAX_HEIGHT 19
@@ -200,9 +204,15 @@ draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
int x;
for (x = xoff; x < len; x++) {
+#ifdef PC98
+ sc_vtb_putc(&sc->cur_scp->scr,
+ ypos*sc->cur_scp->xsize + xpos + x,
+ sc->scr_map[s[x]], (FG_GREEN | BG_BLACK) << 8);
+#else
sc_vtb_putc(&sc->cur_scp->scr,
ypos*sc->cur_scp->xsize + xpos + x,
sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
+#endif
}
}
diff --git a/sys/dev/syscons/snake/snake_saver.c b/sys/dev/syscons/snake/snake_saver.c
index e4277e3..a9a067a 100644
--- a/sys/dev/syscons/snake/snake_saver.c
+++ b/sys/dev/syscons/snake/snake_saver.c
@@ -43,6 +43,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
static char *message;
static int *messagep;
static int messagelen;
diff --git a/sys/dev/syscons/star/star_saver.c b/sys/dev/syscons/star/star_saver.c
index 27e9921..0008852 100644
--- a/sys/dev/syscons/star/star_saver.c
+++ b/sys/dev/syscons/star/star_saver.c
@@ -41,6 +41,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
#define NUM_STARS 50
static int blanked;
diff --git a/sys/modules/syscons/daemon/Makefile b/sys/modules/syscons/daemon/Makefile
index 9f77446..8e9a471 100644
--- a/sys/modules/syscons/daemon/Makefile
+++ b/sys/modules/syscons/daemon/Makefile
@@ -6,4 +6,8 @@ SRCS= daemon_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
+
.include "${.CURDIR}/../../../conf/kmod.mk"
diff --git a/sys/modules/syscons/daemon/daemon_saver.c b/sys/modules/syscons/daemon/daemon_saver.c
index b056b48..5d5c539 100644
--- a/sys/modules/syscons/daemon/daemon_saver.c
+++ b/sys/modules/syscons/daemon/daemon_saver.c
@@ -43,6 +43,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
#define DAEMON_MAX_WIDTH 32
#define DAEMON_MAX_HEIGHT 19
@@ -200,9 +204,15 @@ draw_string(sc_softc_t *sc, int xpos, int ypos, int xoff, char *s, int len)
int x;
for (x = xoff; x < len; x++) {
+#ifdef PC98
+ sc_vtb_putc(&sc->cur_scp->scr,
+ ypos*sc->cur_scp->xsize + xpos + x,
+ sc->scr_map[s[x]], (FG_GREEN | BG_BLACK) << 8);
+#else
sc_vtb_putc(&sc->cur_scp->scr,
ypos*sc->cur_scp->xsize + xpos + x,
sc->scr_map[s[x]], (FG_LIGHTGREEN | BG_BLACK) << 8);
+#endif
}
}
diff --git a/sys/modules/syscons/snake/Makefile b/sys/modules/syscons/snake/Makefile
index 4b62a4c..986479a 100644
--- a/sys/modules/syscons/snake/Makefile
+++ b/sys/modules/syscons/snake/Makefile
@@ -6,4 +6,8 @@ SRCS= snake_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
+
.include "${.CURDIR}/../../../conf/kmod.mk"
diff --git a/sys/modules/syscons/snake/snake_saver.c b/sys/modules/syscons/snake/snake_saver.c
index e4277e3..a9a067a 100644
--- a/sys/modules/syscons/snake/snake_saver.c
+++ b/sys/modules/syscons/snake/snake_saver.c
@@ -43,6 +43,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
static char *message;
static int *messagep;
static int messagelen;
diff --git a/sys/modules/syscons/star/Makefile b/sys/modules/syscons/star/Makefile
index 65ecbfa..985b7ab 100644
--- a/sys/modules/syscons/star/Makefile
+++ b/sys/modules/syscons/star/Makefile
@@ -6,4 +6,8 @@ SRCS= star_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
+
.include "${.CURDIR}/../../../conf/kmod.mk"
diff --git a/sys/modules/syscons/star/star_saver.c b/sys/modules/syscons/star/star_saver.c
index 27e9921..0008852 100644
--- a/sys/modules/syscons/star/star_saver.c
+++ b/sys/modules/syscons/star/star_saver.c
@@ -41,6 +41,10 @@
#include <dev/fb/splashreg.h>
#include <dev/syscons/syscons.h>
+#ifdef PC98
+#include <pc98/pc98/pc98_machdep.h>
+#endif
+
#define NUM_STARS 50
static int blanked;
OpenPOWER on IntegriCloud