Module: xenomai-forge
Branch: next
Commit: ba1f4b636a490e42af332e0c1f079e67b96255d5
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ba1f4b636a490e42af332e0c1f079e67b96255d5

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Feb  6 10:27:36 2014 +0100

boilerplate: provide placeholder for pshared_check()

---

 lib/boilerplate/ancillaries.c |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lib/boilerplate/ancillaries.c b/lib/boilerplate/ancillaries.c
index 9b5dc48..59d49c3 100644
--- a/lib/boilerplate/ancillaries.c
+++ b/lib/boilerplate/ancillaries.c
@@ -27,6 +27,7 @@
 #include "nocore/atomic.h"
 #include "boilerplate/lock.h"
 #include "boilerplate/time.h"
+#include "boilerplate/scope.h"
 #include "boilerplate/ancillaries.h"
 
 pthread_mutex_t __printlock;
@@ -185,6 +186,23 @@ char *generate_name(char *buf, const char *radix,
        return buf;
 }
 
+#ifdef CONFIG_XENO_PSHARED
+
+/*
+ * Client libraries may override these symbols for implementing heap
+ * pointer validation in their own context (e.g. copperplate).
+ */
+
+__attribute__ ((weak))
+int pshared_check(void *heap, void *addr)
+{
+       return 1;
+}
+
+__attribute__ ((weak)) void *__main_heap = NULL;
+
+#endif /* !CONFIG_XENO_PSHARED */
+
 #ifdef __XENO_DEBUG__
 
 int __check_cancel_type(const char *locktype)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to