]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
Use __thread for rump kernel curlwp.
authorAntti Kantee <pooka@iki.fi>
Mon, 4 May 2015 08:47:31 +0000 (08:47 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 4 May 2015 08:47:31 +0000 (08:47 +0000)
The implication is that TLS must be supported.  It is supported (or at
least should be) on everything else except 32bit Xen due to the lack of
the ability to test the change.

_build-common.sh

index adf452874129b951a069968070c48c88e58b0131..4825b32d3896c8db986a26ab406976154f76138f 100755 (executable)
@@ -35,7 +35,8 @@ set -e
 # build tools
 ${BUILDRUMP}/buildrump.sh ${BUILD_QUIET} ${STDJ} -k \
     -V MKPIC=no -s ${RUMPSRC} -T rumptools -o rumpobj \
-    -V RUMP_KERNEL_IS_LIBC=1 -V BUILDRUMP_SYSROOT=yes "$@" tools
+    -V RUMP_KERNEL_IS_LIBC=1 -V BUILDRUMP_SYSROOT=yes \
+    -V RUMP_CURLWP=__thread "$@" tools
 
 [ -n "${BUILDXENMETAL_MKCONF}" ] \
     && echo "${BUILDXENMETAL_MKCONF}" >> rumptools/mk.conf
@@ -47,8 +48,8 @@ MACHINE=$(${RUMPMAKE} -f /dev/null -V '${MACHINE}')
 # build rump kernel
 ${BUILDRUMP}/buildrump.sh ${BUILD_QUIET} ${STDJ} -k \
     -V MKPIC=no -s ${RUMPSRC} -T rumptools -o rumpobj \
-    -V RUMP_KERNEL_IS_LIBC=1 -V BUILDRUMP_SYSROOT=yes "$@" \
-    build kernelheaders install
+    -V RUMP_KERNEL_IS_LIBC=1 -V BUILDRUMP_SYSROOT=yes \
+    -V RUMP_CURLWP=__thread "$@" build kernelheaders install
 
 LIBS="$(stdlibs ${RUMPSRC}) $(pwd)/../../lib/librumprun_tester"
 if [ "$(${RUMPMAKE} -f rumptools/mk.conf -V '${_BUILDRUMP_CXX}')" = 'yes' ]