summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/stand/libsa/Makefile
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-06-29 21:33:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-06-29 21:33:55 +0000
commit07f81d1ec7f9a00d77ebeac722af8e828796359c (patch)
treea619bef47d79b4f92b7d53580ef398ec276f58da /sys/arch/sparc/stand/libsa/Makefile
parente4860bc94976949e5141b134229c8c6973b499f7 (diff)
In the boot blocks, stop assuming we have a 1:1 mapping of low physical
memory, but instead gather memory layout information and work with the MMU (or the PROM) to make sure we can actually load the kernel image in a proper contiguous physical memory area. In order to do this, we look at the kernel image twice; during the first pass, the kernel footprint is computed, and then after making sure it can be loaded, the second pass loads the actual image. Since such a logic doesn't work on media which can not seek backwards, such as tapes, we check for the boot device being a tape and, in that case, assume a fixed (generous) image size and don't load the kernel symbol table (to avoid seeking backwards); since tape boot is supposed to be only used to boot bsd.rd, this is something we can live with. While there, lower the address the boot blocks are loaded in memory, because the last crank did not work with some early sun4c OpenPROM, which only map about 3.5MB of memory. Memory games logic from NetBSD, tape handling by me.
Diffstat (limited to 'sys/arch/sparc/stand/libsa/Makefile')
-rw-r--r--sys/arch/sparc/stand/libsa/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/stand/libsa/Makefile b/sys/arch/sparc/stand/libsa/Makefile
index 88714bf37de..44356215b10 100644
--- a/sys/arch/sparc/stand/libsa/Makefile
+++ b/sys/arch/sparc/stand/libsa/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.4 2005/12/30 02:03:49 millert Exp $
+# $OpenBSD: Makefile,v 1.5 2010/06/29 21:33:54 miod Exp $
LIB= sa
.PATH: ${.CURDIR}/../../../../lib/libsa
-CFLAGS= -O2 -D__INTERNAL_LIBSA_CREAD \
+CFLAGS= -O2 -D_STANDALONE -D__INTERNAL_LIBSA_CREAD \
-I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \
-I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
-I${.CURDIR}/../../../../lib/libsa