summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-09 14:03:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-10 09:09:19 +0200
commitd652c3bafd98cb574f17127815d3024362aed891 (patch)
tree6726fabb7872284277f5c3dda1a984f46e6c238d /freebsd/sys/sys/pcpu.h
parentUpdate files to match FreeBSD layout (diff)
downloadrtems-libbsd-d652c3bafd98cb574f17127815d3024362aed891.tar.bz2
Avoid per-CPU NETISR(9)
SMP support should be enabled once the new stack is ready for this.
Diffstat (limited to '')
-rw-r--r--freebsd/sys/sys/pcpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/freebsd/sys/sys/pcpu.h b/freebsd/sys/sys/pcpu.h
index 48a3bccb..e0eb23f4 100644
--- a/freebsd/sys/sys/pcpu.h
+++ b/freebsd/sys/sys/pcpu.h
@@ -38,9 +38,7 @@
#endif
#include <sys/queue.h>
-#ifndef __rtems__
#include <sys/vmmeter.h>
-#endif
#include <rtems/bsd/sys/resource.h>
#include <machine/pcpu.h>
@@ -75,8 +73,12 @@ extern uintptr_t dpcpu_off[];
/*
* Accessors with a given base.
*/
+#ifndef __rtems__
#define _DPCPU_PTR(b, n) \
(__typeof(DPCPU_NAME(n))*)((b) + (uintptr_t)&DPCPU_NAME(n))
+#else /* __rtems__ */
+#define _DPCPU_PTR(b, n) NULL
+#endif /* __rtems__ */
#define _DPCPU_GET(b, n) (*_DPCPU_PTR(b, n))
#define _DPCPU_SET(b, n, v) (*_DPCPU_PTR(b, n) = v)