summaryrefslogtreecommitdiff
path: root/uLan/ports/os/rtems/arch/sys_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'uLan/ports/os/rtems/arch/sys_arch.h')
-rw-r--r--uLan/ports/os/rtems/arch/sys_arch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/uLan/ports/os/rtems/arch/sys_arch.h b/uLan/ports/os/rtems/arch/sys_arch.h
index a80244d..6ec578b 100644
--- a/uLan/ports/os/rtems/arch/sys_arch.h
+++ b/uLan/ports/os/rtems/arch/sys_arch.h
@@ -68,7 +68,16 @@ typedef port_mailbox_t sys_mbox_t;
typedef port_sem_t sys_sem_t;
typedef rtems_id sys_thread_t;
typedef port_mutex_t sys_mutex_t;
+#ifdef __rtems__
+#include <rtems/score/threaddispatch.h>
+#ifdef RTEMS_SMP
+typedef Per_CPU_Control *sys_prot_t;
+#else
typedef rtems_interrupt_level sys_prot_t;
+#endif
+#else
+typedef rtems_interrupt_level sys_prot_t;
+#endif
void
sys_arch_delay(unsigned int x);