diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-12 06:37:36 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-13 08:05:39 +0100 |
commit | 8b5778e69e7fc8393f7e192067116da09aec71df (patch) | |
tree | cff7165b703d5f6dd612acc1a4b073e5bcc4c521 /cpukit/score/cpu/sparc/access_le.c | |
parent | bsps/arm: Move libcpu content to bsps (diff) | |
download | rtems-8b5778e69e7fc8393f7e192067116da09aec71df.tar.bz2 |
sparc: Move libcpu content to cpukit
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'cpukit/score/cpu/sparc/access_le.c')
-rw-r--r-- | cpukit/score/cpu/sparc/access_le.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sparc/access_le.c b/cpukit/score/cpu/sparc/access_le.c new file mode 100644 index 0000000000..d3a0e93adb --- /dev/null +++ b/cpukit/score/cpu/sparc/access_le.c @@ -0,0 +1,33 @@ +/* + * Little-endian access routines for SPARC + * + * COPYRIGHT (c) 2011 + * Aeroflex Gaisler. + * + * 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. + */ + +#include <libcpu/byteorder.h> +#include <libcpu/access.h> + +uint16_t _ld_le16(uint16_t *addr) +{ + return ld_le16(addr); +} + +void _st_le16(uint16_t *addr, uint16_t val) +{ + st_le16(addr, val); +} + +uint32_t _ld_le32(uint32_t *addr) +{ + return ld_le32(addr); +} + +void _st_le32(uint32_t *addr, uint32_t val) +{ + st_le32(addr, val); +} |