From 68bc340408d18a67218b6e0e6b379f4664ec3320 Mon Sep 17 00:00:00 2001 From: kettenis Date: Wed, 27 Dec 2017 13:57:40 +0000 Subject: [PATCH] Turns out linker scripts in lld are still subtly broken and aligning sections doesn't work when the -r option is used. Disable the unmapping code again until lld gets fixed. --- sys/arch/arm64/arm64/autoconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/arm64/autoconf.c b/sys/arch/arm64/arm64/autoconf.c index a062f039569..9feef11aa7c 100644 --- a/sys/arch/arm64/arm64/autoconf.c +++ b/sys/arch/arm64/arm64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.5 2017/12/24 23:24:45 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.6 2017/12/27 13:57:40 kettenis Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. * @@ -34,6 +34,7 @@ enum devclass bootdev_class = DV_DULL; void unmap_startup(void) { +#if 0 extern void *_start, *endboot; vaddr_t p = (vaddr_t)&_start; @@ -41,6 +42,7 @@ unmap_startup(void) pmap_kremove(p, PAGE_SIZE); p += PAGE_SIZE; } while (p < (vaddr_t)&endboot); +#endif } void -- 2.20.1