summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-11-04 17:50:34 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-11-04 17:50:34 +0000
commit5acb4d0bc674cf218a50c78766910c0656fcd83d (patch)
treeb499f53feb18f480398971bdba6dd99ffce3bd9d
parent2005-11-04 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-5acb4d0bc674cf218a50c78766910c0656fcd83d.tar.bz2
New.
-rw-r--r--c/src/lib/libcpu/i386/byteorder.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/i386/byteorder.h b/c/src/lib/libcpu/i386/byteorder.h
new file mode 100644
index 0000000000..06a3e22bb9
--- /dev/null
+++ b/c/src/lib/libcpu/i386/byteorder.h
@@ -0,0 +1,22 @@
+/*
+ * The license and distribution terms for this file may be
+ * found in found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef _LIBCPU_BYTEORDER_H
+#define _LIBCPU_BYTEORDER_H
+
+static inline void st_le32(volatile uint32_t *addr, uint32_t value)
+{
+ *(addr)=value ;
+}
+
+static inline uint32_t ld_le32(volatile uint32_t *addr)
+{
+ return(*addr);
+}
+
+#endif