-/* $OpenBSD: autoconf.c,v 1.3 2017/06/04 14:10:42 patrick Exp $ */
+/* $OpenBSD: autoconf.c,v 1.4 2017/06/29 05:40:35 deraadt Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
*
void
unmap_startup(void)
{
+#if 0
extern void *_start, *endboot;
vaddr_t p = (vaddr_t)&_start;
pmap_kremove(p, PAGE_SIZE);
p += PAGE_SIZE;
} while (p < (vaddr_t)&endboot);
+#endif
}
void
-# $OpenBSD: Makefile.arm64,v 1.16 2017/06/25 14:02:23 deraadt Exp $
+# $OpenBSD: Makefile.arm64,v 1.17 2017/06/29 05:40:37 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_HEAD= locore0.o gap.o
+SYSTEM_HEAD= locore0.o
SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} param.o ioconf.o
SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ld.script
SYSTEM_LD_HEAD= @rm -f $@
ioconf.o: ioconf.c
${NORMAL_C}
-ld.script: ${_archdir}/conf/kern.ldscript
+ld.script: ${_archdir}/conf/kern.ldscript makegap.sh
cat ${_archdir}/conf/kern.ldscript | \
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' > ld.script
-
gapdummy.o:
echo 'const char gapdummy;' > gapdummy.c
${CC} -c ${CFLAGS} ${CPPFLAGS} gapdummy.c -o $@