diff options
-rw-r--r-- | sys/boot/ficl/Makefile | 3 | ||||
-rw-r--r-- | sys/boot/ficl/loader.c | 4 |
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); |