summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-10-30 08:00:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-26 15:20:59 +0200
commitfa69a12153a690c8020311a78cb64c3b97e3d2a5 (patch)
tree0930d66460e9f47ec48ef44d40ffe2dab412e579
parentwaf: Check for no FreeBSD options being supplied. (diff)
downloadrtems-libbsd-fa69a12153a690c8020311a78cb64c3b97e3d2a5.tar.bz2
Dummy PHOLD() and PRELE()
-rw-r--r--freebsd/sys/sys/proc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h
index e31f1992..c393e71f 100644
--- a/freebsd/sys/sys/proc.h
+++ b/freebsd/sys/sys/proc.h
@@ -795,6 +795,7 @@ extern pid_t pid_max;
#define SESS_LOCKED(s) mtx_owned(&(s)->s_mtx)
#define SESS_LOCK_ASSERT(s, type) mtx_assert(&(s)->s_mtx, (type))
+#ifndef __rtems__
/* Hold process U-area in memory, normally for ptrace/procfs work. */
#define PHOLD(p) do { \
PROC_LOCK(p); \
@@ -828,6 +829,10 @@ extern pid_t pid_max;
#define PROC_ASSERT_NOT_HELD(p) do { \
KASSERT((p)->p_lock == 0, ("process held")); \
} while (0)
+#else /* __rtems__ */
+#define PHOLD(x) do { } while (0)
+#define PRELE(x) do { } while (0)
+#endif /* __rtems__ */
/* Check whether a thread is safe to be swapped out. */
#define thread_safetoswapout(td) ((td)->td_flags & TDF_CANSWAP)