aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-11-14 20:23:02 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-11-14 20:23:02 +0000
commit47d46d92c221c8a81f9182b93559bebb618c137a (patch)
treefacb20a04756e19b653bcb1e38f135b0e153eab6 /sys/sys/pcpu.h
parent5f67450d3ad3e3a3b3452fd91a7511d9e75fa74f (diff)
downloadsrc-47d46d92c221c8a81f9182b93559bebb618c137a.tar.gz
src-47d46d92c221c8a81f9182b93559bebb618c137a.zip
Add macros to define static instances of VNET_DEFINE and DPCPU_DEFINE.
Notes
Notes: svn path=/head/; revision=215316
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r--sys/sys/pcpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index ad1cf33e05b2..d18a1509dd12 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -76,6 +76,8 @@ extern uintptr_t dpcpu_off[];
#define DPCPU_NAME(n) pcpu_entry_##n
#define DPCPU_DECLARE(t, n) extern t DPCPU_NAME(n)
#define DPCPU_DEFINE(t, n) t DPCPU_NAME(n) __section(DPCPU_SETNAME) __used
+#define STATIC_DPCPU_DEFINE(t, n) \
+ DPCPU_DEFINE(static t, n)
/*
* Accessors with a given base.