From 318bdaa3569716054bd0e4d5076674dceb0901cb Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 17 Apr 2015 20:13:51 +0000 Subject: [PATCH] Latent support for ARM_HAS_LPAE. --- sys/modules/arch/arm/arm-lpae/Makefile | 5 +++++ sys/modules/arch/arm/arm-lpae/bsd.arm-lpae.mk | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 sys/modules/arch/arm/arm-lpae/Makefile create mode 100644 sys/modules/arch/arm/arm-lpae/bsd.arm-lpae.mk diff --git a/sys/modules/arch/arm/arm-lpae/Makefile b/sys/modules/arch/arm/arm-lpae/Makefile new file mode 100644 index 000000000000..f083dabb3526 --- /dev/null +++ b/sys/modules/arch/arm/arm-lpae/Makefile @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2015/04/17 20:13:51 matt Exp $ + +BSD_MK_COMPAT_FILE=${.CURDIR}/bsd.arm-lpae.mk + +.include "../../compatsubdir.mk" diff --git a/sys/modules/arch/arm/arm-lpae/bsd.arm-lpae.mk b/sys/modules/arch/arm/arm-lpae/bsd.arm-lpae.mk new file mode 100644 index 000000000000..a267c5a55d99 --- /dev/null +++ b/sys/modules/arch/arm/arm-lpae/bsd.arm-lpae.mk @@ -0,0 +1,11 @@ +# $NetBSD: bsd.arm-lpae.mk,v 1.1 2015/04/17 20:13:51 matt Exp $ + +.ifndef _BSD_ARM_LPAE_MK_ +_BSD_ARM_LPAE_MK_=1 + +KMODULEARCHDIR:= arm-lpae + +# gcc emits bad code with these options +CPPFLAGS+= -DARM_HAS_LPAE + +.endif # _BSD_ARM_LPAE_MK_