diff options
Diffstat (limited to 'bsps/sh/shsim')
-rw-r--r-- | bsps/sh/shsim/headers.am | 10 | ||||
-rw-r--r-- | bsps/sh/shsim/include/bsp.h | 65 | ||||
-rw-r--r-- | bsps/sh/shsim/include/bsp/syscall.h | 32 | ||||
-rw-r--r-- | bsps/sh/shsim/include/tm27.h | 1 |
4 files changed, 108 insertions, 0 deletions
diff --git a/bsps/sh/shsim/headers.am b/bsps/sh/shsim/headers.am new file mode 100644 index 0000000000..d221f41a07 --- /dev/null +++ b/bsps/sh/shsim/headers.am @@ -0,0 +1,10 @@ +## This file was generated by "./boostrap -H". + +include_HEADERS = +include_HEADERS += ../../../../../../bsps/sh/shsim/include/bsp.h +include_HEADERS += include/bspopts.h +include_HEADERS += ../../../../../../bsps/sh/shsim/include/tm27.h + +include_bspdir = $(includedir)/bsp +include_bsp_HEADERS = +include_bsp_HEADERS += ../../../../../../bsps/sh/shsim/include/bsp/syscall.h diff --git a/bsps/sh/shsim/include/bsp.h b/bsps/sh/shsim/include/bsp.h new file mode 100644 index 0000000000..7b8236b09a --- /dev/null +++ b/bsps/sh/shsim/include/bsp.h @@ -0,0 +1,65 @@ +/* + * SH-gdb simulator BSP + * + * This include file contains all board IO definitions. + */ + +/* + * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) + * + * COPYRIGHT (c) 2001, Ralf Corsepius, Ulm, Germany + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * COPYRIGHT (c) 2001. + * On-Line Applications Research Corporation (OAR). + * + * 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 LIBBSP_SH_SHSIM_BSP_H +#define LIBBSP_SH_SHSIM_BSP_H + +#ifndef ASM + +#include <rtems.h> + +#include <bspopts.h> +#include <bsp/default-initial-extension.h> + +/* + * FIXME: One of these would be enough. + */ +#include <rtems/devnull.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Constants */ + +void *clock_driver_sim_idle_body(uintptr_t); +#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body + +/* + * Defined in the linker script 'linkcmds' + */ +extern void *CPU_Interrupt_stack_low; +extern void *CPU_Interrupt_stack_high; + +/* + * BSP methods that cross file boundaries. + */ +int _sys_exit (int n); +void bsp_hw_init(void); + +#ifdef __cplusplus +} +#endif + +#endif /* !ASM */ +#endif diff --git a/bsps/sh/shsim/include/bsp/syscall.h b/bsps/sh/shsim/include/bsp/syscall.h new file mode 100644 index 0000000000..e5cde7217b --- /dev/null +++ b/bsps/sh/shsim/include/bsp/syscall.h @@ -0,0 +1,32 @@ +#define SYS_exit 1 +#define SYS_fork 2 + +#define SYS_read 3 +#define SYS_write 4 +#define SYS_open 5 +#define SYS_close 6 +#define SYS_wait4 7 +#define SYS_creat 8 +#define SYS_link 9 +#define SYS_unlink 10 +#define SYS_execv 11 +#define SYS_chdir 12 +#define SYS_mknod 14 +#define SYS_chmod 15 +#define SYS_chown 16 +#define SYS_lseek 19 +#define SYS_getpid 20 +#define SYS_isatty 21 +#define SYS_fstat 22 +#define SYS_time 23 + +#define SYS_ARG 24 +#define SYS_stat 38 + +#define SYS_pipe 42 +#define SYS_execve 59 + +#define SYS_utime 201 /* not really a system call */ +#define SYS_wait 202 /* nor is this */ + +int __trap34(int, int, void*, int ); diff --git a/bsps/sh/shsim/include/tm27.h b/bsps/sh/shsim/include/tm27.h new file mode 100644 index 0000000000..0dfa7bf628 --- /dev/null +++ b/bsps/sh/shsim/include/tm27.h @@ -0,0 +1 @@ +#include <rtems/tm27-default.h> |