diff options
author | Jia Liu <proljc@gmail.com> | 2012-07-20 15:50:51 +0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-07-27 21:13:05 +0000 |
commit | a8720299f1aa5dcf7b83e78644b0f6502958e973 (patch) | |
tree | 05a776b90c0dade90d11ca2400efd1abbf029862 /linux-user/openrisc/syscall.h | |
parent | fc04355bb86c77ef9dae28ecda44d6e15221d48b (diff) | |
download | qemu-a8720299f1aa5dcf7b83e78644b0f6502958e973.zip qemu-a8720299f1aa5dcf7b83e78644b0f6502958e973.tar.gz qemu-a8720299f1aa5dcf7b83e78644b0f6502958e973.tar.bz2 |
target-or32: Add linux syscall, signal and termbits
Add OpenRISC linux syscall, signal and termbits.
Signed-off-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/openrisc/syscall.h')
-rw-r--r-- | linux-user/openrisc/syscall.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/linux-user/openrisc/syscall.h b/linux-user/openrisc/syscall.h new file mode 100644 index 0000000..bdbb577 --- /dev/null +++ b/linux-user/openrisc/syscall.h @@ -0,0 +1,24 @@ +struct target_pt_regs { + union { + struct { + /* Named registers */ + uint32_t sr; /* Stored in place of r0 */ + target_ulong sp; /* r1 */ + }; + struct { + /* Old style */ + target_ulong offset[2]; + target_ulong gprs[30]; + }; + struct { + /* New style */ + target_ulong gpr[32]; + }; + }; + target_ulong pc; + target_ulong orig_gpr11; /* For restarting system calls */ + uint32_t syscallno; /* Syscall number (used by strace) */ + target_ulong dummy; /* Cheap alignment fix */ +}; + +#define UNAME_MACHINE "openrisc" |