summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/v850/gdbv850sim/include
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/v850/gdbv850sim/include')
-rw-r--r--c/src/lib/libbsp/v850/gdbv850sim/include/bsp.h37
-rw-r--r--c/src/lib/libbsp/v850/gdbv850sim/include/bspopts.h.in31
-rw-r--r--c/src/lib/libbsp/v850/gdbv850sim/include/syscall.h47
3 files changed, 115 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/v850/gdbv850sim/include/bsp.h b/c/src/lib/libbsp/v850/gdbv850sim/include/bsp.h
new file mode 100644
index 0000000000..807203f40a
--- /dev/null
+++ b/c/src/lib/libbsp/v850/gdbv850sim/include/bsp.h
@@ -0,0 +1,37 @@
+/*
+ * This include file contains some definitions specific to the
+ * GDB simulator in gdb.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2012.
+ * 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.com/license/LICENSE.
+ */
+
+#ifndef _BSP_H
+#define _BSP_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <bspopts.h>
+
+#include <rtems.h>
+#include <rtems/iosupp.h>
+#include <rtems/console.h>
+#include <rtems/clockdrv.h>
+
+/* support for simulated clock tick */
+Thread clock_driver_sim_idle_body(uintptr_t);
+#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/c/src/lib/libbsp/v850/gdbv850sim/include/bspopts.h.in b/c/src/lib/libbsp/v850/gdbv850sim/include/bspopts.h.in
new file mode 100644
index 0000000000..40e048c697
--- /dev/null
+++ b/c/src/lib/libbsp/v850/gdbv850sim/include/bspopts.h.in
@@ -0,0 +1,31 @@
+/* include/bspopts.h.in. Generated from configure.ac by autoheader. */
+
+/* If defined, then the BSP Framework will put a non-zero pattern into the
+ RTEMS Workspace and C program heap. This should assist in finding code that
+ assumes memory starts set to zero. */
+#undef BSP_DIRTY_MEMORY
+
+/* If defined, print a message and wait until pressed before resetting board
+ when application exits. */
+#undef BSP_PRESS_KEY_FOR_RESET
+
+/* If defined, reset the board when the application exits. */
+#undef BSP_RESET_BOARD_AT_EXIT
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
diff --git a/c/src/lib/libbsp/v850/gdbv850sim/include/syscall.h b/c/src/lib/libbsp/v850/gdbv850sim/include/syscall.h
new file mode 100644
index 0000000000..d8eebdd3f9
--- /dev/null
+++ b/c/src/lib/libbsp/v850/gdbv850sim/include/syscall.h
@@ -0,0 +1,47 @@
+/* from libgloss/v850 */
+#ifndef _SYS_SYSCALL_H_
+#define _SYS_SYSCALL_H_
+
+#ifndef ASM
+extern int __trap0 (int function, int p1, int p2, int p3);
+
+#define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3))
+#endif
+
+#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_times 43
+#define SYS_gettimeofday 116
+#define SYS_rename 134
+
+#define SYS_utime 201 /* not really a system call */
+#define SYS_wait 202 /* nor is this */
+
+#endif