From 8a99173f685e0cb303660901b690b03603ae5c3f Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Tue, 1 Sep 2015 20:17:04 +0000 Subject: [PATCH] Set -mno-red-zone for x86_64 hw too. The TSS stuff doesn't work as hoped, and need to dig through some manuals to see if that can be fixed. --- build-rr.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-rr.sh b/build-rr.sh index b28ff2b..d9f7d6f 100755 --- a/build-rr.sh +++ b/build-rr.sh @@ -213,9 +213,9 @@ EOF -V '${MACHINE_GNU_PLATFORM:S/--netbsd/-rumprun-netbsd/}') echo "RUMPRUN_TUPLE=${TOOLTUPLE}" >> ${RUMPTOOLS}/mk.conf - # XXX: For 64-bit Xen builds, all modules must be built with + # For 64-bit x86, all modules must be built with # -mno-red-zone. - if [ "${PLATFORM}" = "xen" -a "${MACHINE_ARCH}" = "x86_64" ]; then + if [ "${MACHINE_ARCH}" = "x86_64" ]; then echo "CFLAGS+=-mno-red-zone" >> ${RUMPTOOLS}/mk.conf echo "CXXFLAGS+=-mno-red-zone" >> ${RUMPTOOLS}/mk.conf fi @@ -312,9 +312,9 @@ makeconfigmk () echo "CONFIG_CXX=no" >> ${1} fi - # XXX: For 64-bit Xen builds, all modules must be built with + # For 64-bit x86, all modules must be built with # -mno-red-zone. - if [ "${PLATFORM}" = "xen" -a "${MACHINE_ARCH}" = "x86_64" ]; then + if [ "${MACHINE_ARCH}" = "x86_64" ]; then echo "BUILDRUMP_TOOL_CFLAGS+=-mno-red-zone" \ >> $(pwd)/${RUMPTOOLS}/toolchain-conf.mk echo "BUILDRUMP_TOOL_CXXFLAGS+=-mno-red-zone" \ -- 2.39.5