aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2018-07-30 15:05:07 +0000
committerAndrew Turner <andrew@FreeBSD.org>2018-07-30 15:05:07 +0000
commitb6ea4c5a2ac8cb014d87ef56e9f8f74450545bb5 (patch)
tree223fa0e27e6eeb7cc6e827d734664582db5a63af /sys/sys
parent0d84986542c3289325f1fb6017b76dfcdaa92f3d (diff)
downloadsrc-b6ea4c5a2ac8cb014d87ef56e9f8f74450545bb5.tar.gz
src-b6ea4c5a2ac8cb014d87ef56e9f8f74450545bb5.zip
As with DPCPU_DEFINE_STATIC make VNET_DEFINE_STATIC non-static on arm64 in
modules. It also fails in the same way, we are unable to relocate static variables as the compiler uses PC-relative loads with nothing for the kernel linker to relocate. Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=336909
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/pcpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index 9057cab20698..d2084b77b3df 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -97,7 +97,9 @@ extern uintptr_t dpcpu_off[];
* wrong location.
*
* This is a workaround until a better solution can be found.
-*/
+ *
+ * VNET_DEFINE_STATIC also has the same workaround.
+ */
#define DPCPU_DEFINE_STATIC(t, n) \
t DPCPU_NAME(n) __section(DPCPU_SETNAME) __used
#else