summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2016-01-24 22:17:05 +0000
committerian <ian@FreeBSD.org>2016-01-24 22:17:05 +0000
commit55146b62a12461f40c96f1aea09d60a020b63c22 (patch)
treed60a119c01bf9e5c641095fc3dac78e489832a1e /sys/arm
parent495cfa3822731e7518c9829f6cc09dc1f92515b6 (diff)
downloadFreeBSD-src-55146b62a12461f40c96f1aea09d60a020b63c22.zip
FreeBSD-src-55146b62a12461f40c96f1aea09d60a020b63c22.tar.gz
MFC r289477:
Fix a strange macro re-definition compile error. If the VM_MAXUSER_ADDRESS value is defined as a config option the definition is emitted into opt_global.h which is force-included into everything. In addition, the symbol is emitted by the genassym mechanism, but that by its nature reduces the value to a 0xnnnnnnnn number. When compiling a .S file you end up with two different definitions of the macro (they evaluate to the same number, but the text is different, upsetting the compiler).
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/mv/std-pj4b.mv6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arm/mv/std-pj4b.mv b/sys/arm/mv/std-pj4b.mv
index 1053ff0..cc14abc 100644
--- a/sys/arm/mv/std-pj4b.mv
+++ b/sys/arm/mv/std-pj4b.mv
@@ -5,4 +5,8 @@ cpu CPU_MV_PJ4B
machine arm armv6
makeoptions CONF_CFLAGS="-march=armv7a -Wa,-march=armv7a"
-options VM_MAXUSER_ADDRESS="(KERNBASE-(1024*1024*1024))"
+# This was originally defined as "(KERNBASE-(1024*1024*1024))" but that
+# (in opt_global.h) clashed with the value emitted by genassym which
+# reduces the original macro text to its numeric value. The only way
+# to avoid that is to define it here as the numeric value genassym emits.
+options VM_MAXUSER_ADDRESS="0x80000000"
OpenPOWER on IntegriCloud