summaryrefslogtreecommitdiffstats
path: root/libgloss/microblaze/linux-syscalls.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-23 09:11:18 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-07-23 09:11:18 +0000
commit2635a8d6df076a46e884725d6b29bf82c848d820 (patch)
treec28d72fc80e0d06eb59175d770a2724094869cfb /libgloss/microblaze/linux-syscalls.h
parentb143d094ee5afafaf232316b23e5c0261d6f448a (diff)
downloadcygnal-2635a8d6df076a46e884725d6b29bf82c848d820.tar.gz
cygnal-2635a8d6df076a46e884725d6b29bf82c848d820.tar.bz2
cygnal-2635a8d6df076a46e884725d6b29bf82c848d820.zip
* microblaze/_exception_handler.S: Adjust to be weak.
* microblaze/Makefile.in: Add LINUX_BSP. * microblaze/elf-gloss-linux.ld: New file. * microblaze/elf-gloss-linux.specs: Likewise. * microblaze/linux-crt0.S: Likewise. * microblaze/linux-inbyte.c: Likewise. * microblaze/linux-outbyte.c: Likewise. * microblaze/linux-syscalls-wrap.c: Likewise. * microblaze/linux-syscalls.S: Likewise. * microblaze/linux-syscalls.h: Likewise.
Diffstat (limited to 'libgloss/microblaze/linux-syscalls.h')
-rw-r--r--libgloss/microblaze/linux-syscalls.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libgloss/microblaze/linux-syscalls.h b/libgloss/microblaze/linux-syscalls.h
new file mode 100644
index 000000000..3bceca35f
--- /dev/null
+++ b/libgloss/microblaze/linux-syscalls.h
@@ -0,0 +1,28 @@
+/** Linux system call interface for the MicroBlaze processor.
+ * Copyright (c) 2009 Edgar E. Iglesias.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#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_waitpid 7
+#define SYS_creat 8
+#define SYS_link 9
+#define SYS_unlink 10
+#define SYS_execve 11
+#define SYS_chdir 12
+#define SYS_time 13
+
+#define SYS_lseek 19
+#define SYS_getpid 20
+#define SYS_kill 37
+#define SYS_brk 45
+#define SYS_fstat 108
+
+#define SYS_rt_sigaction 174