diff options
author | dim <dim@FreeBSD.org> | 2010-11-14 20:23:02 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-11-14 20:23:02 +0000 |
commit | 7dff36caf76f0b4c09712e32d78cf6ee8f2132c1 (patch) | |
tree | facb20a04756e19b653bcb1e38f135b0e153eab6 /sys/sys/pcpu.h | |
parent | 756e9f53779b25e86ec78fa8ea80b869110fb7e5 (diff) | |
download | FreeBSD-src-7dff36caf76f0b4c09712e32d78cf6ee8f2132c1.zip FreeBSD-src-7dff36caf76f0b4c09712e32d78cf6ee8f2132c1.tar.gz |
Add macros to define static instances of VNET_DEFINE and DPCPU_DEFINE.
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r-- | sys/sys/pcpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h index ad1cf33..d18a150 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. |