summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2003-06-08 03:11:16 +0000
committernyan <nyan@FreeBSD.org>2003-06-08 03:11:16 +0000
commitdaa0f782b2df24e4a768ad33bb593e6df2dd9fed (patch)
tree3e7e4b5b852e40d957f890a95f028ef391c83f3e /sys/boot
parent9e0997a0806382106393fdf4d7490ce6badf3963 (diff)
downloadFreeBSD-src-daa0f782b2df24e4a768ad33bb593e6df2dd9fed.zip
FreeBSD-src-daa0f782b2df24e4a768ad33bb593e6df2dd9fed.tar.gz
Set arch-pc98 env to true for pc98.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/ficl/Makefile3
-rw-r--r--sys/boot/ficl/loader.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 08561ec..6302da6 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -13,6 +13,9 @@ CFLAGS+= -mno-fp-regs
.if ${MACHINE_ARCH} == "i386"
CFLAGS+= -mpreferred-stack-boundary=2
.endif
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.endif
.if HAVE_PNP
CFLAGS+= -DHAVE_PNP
.endif
diff --git a/sys/boot/ficl/loader.c b/sys/boot/ficl/loader.c
index cf25d0c..9893150 100644
--- a/sys/boot/ficl/loader.c
+++ b/sys/boot/ficl/loader.c
@@ -656,7 +656,9 @@ void ficlCompilePlatform(FICL_SYSTEM *pSys)
dictAppendWord(dp, "ccall", ficlCcall, FW_DEFAULT);
#endif
-#if defined(__i386__)
+#if defined(PC98)
+ ficlSetEnv(pSys, "arch-pc98", FICL_TRUE);
+#elif defined(__i386__)
ficlSetEnv(pSys, "arch-i386", FICL_TRUE);
ficlSetEnv(pSys, "arch-alpha", FICL_FALSE);
ficlSetEnv(pSys, "arch-ia64", FICL_FALSE);
OpenPOWER on IntegriCloud