summaryrefslogtreecommitdiffstats
path: root/sys/modules/apm
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2005-04-17 10:41:59 +0000
committernyan <nyan@FreeBSD.org>2005-04-17 10:41:59 +0000
commitdcf4b7818ed7c707a6bdacc683c4c3a0f8db94a9 (patch)
tree5249fc862910fdd2c011ee49f6f6aea6ebc55a5f /sys/modules/apm
parentc6c29c44272da4cb936b6d117d5ca6b8d32f5134 (diff)
downloadFreeBSD-src-dcf4b7818ed7c707a6bdacc683c4c3a0f8db94a9.zip
FreeBSD-src-dcf4b7818ed7c707a6bdacc683c4c3a0f8db94a9.tar.gz
Fix the apm module on pc98.
Pointed out by: Kuwamura Shinya <kuwa at lares dot dti dot ne dot jp> MFC after: 1 day
Diffstat (limited to 'sys/modules/apm')
-rw-r--r--sys/modules/apm/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/modules/apm/Makefile b/sys/modules/apm/Makefile
index 6d82b90..c350353 100644
--- a/sys/modules/apm/Makefile
+++ b/sys/modules/apm/Makefile
@@ -1,12 +1,23 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../i386/bios
+.if ${MACHINE} == "pc98"
+.PATH: ${.CURDIR}/../../pc98/apm
+.endif
KMOD= apm
-SRCS= apm.c apm.h \
- device_if.h bus_if.h
+SRCS= apm.c apm.h
+.if ${MACHINE} == "pc98"
+SRCS+= apm_bioscall.s
+.endif
+SRCS+= device_if.h bus_if.h
EXPORT_SYMS= apm_display \
apm_softc
+.if ${MACHINE} == "pc98"
+apm_bioscall.o: apm_bioscall.s
+ ${CC} -x assembler-with-cpp -DLOCORE ${CFLAGS} -c ${.IMPSRC}
+.endif
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud