summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/or1k/rtems/score/types.h
diff options
context:
space:
mode:
authorHesham ALMatary <heshamelmatary@gmail.com>2014-08-12 10:57:42 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-12 13:40:45 -0500
commit94d45f6ffe22c640566ddc4432adcb97ab6c907f (patch)
treeb942d29910c969239427a139bc6f5ff50efe6edc /cpukit/score/cpu/or1k/rtems/score/types.h
parentbsp/lpc24xx: Add LPC40XX variants (diff)
downloadrtems-94d45f6ffe22c640566ddc4432adcb97ab6c907f.tar.bz2
Add support for OpenRISC - Fixed issues
This work is based on the old or32 port (that has been removed back in 2005) authored by Chris Ziomkowski. The patch includes the basic functions every port should implement like: context switch, exception handling, OpenRISC ABI and machine definitions and configurations.
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/or1k/rtems/score/types.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/cpukit/score/cpu/or1k/rtems/score/types.h b/cpukit/score/cpu/or1k/rtems/score/types.h
new file mode 100644
index 0000000000..843a10f89a
--- /dev/null
+++ b/cpukit/score/cpu/or1k/rtems/score/types.h
@@ -0,0 +1,51 @@
+/**
+ * @file
+ *
+ * @brief OR1K Architecture Types API
+ */
+
+/*
+ * This include file contains type definitions pertaining to the
+ * arm processor family.
+ *
+ * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmatary@gmail.com>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ *
+ */
+
+ #ifndef _RTEMS_SCORE_TYPES_H
+#define _RTEMS_SCORE_TYPES_H
+
+#include <rtems/score/basedefs.h>
+
+#ifndef ASM
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @addtogroup ScoreCPU
+ */
+/**@{**/
+
+/*
+ * This section defines the basic types for this processor.
+ */
+
+typedef uint16_t Priority_bit_map_Word;
+typedef void or1k_isr;
+typedef void ( *or1k_isr_entry )( void );
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !ASM */
+
+#endif