aboutsummaryrefslogtreecommitdiff
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-23 01:06:05 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-23 01:06:05 +0000
commit66fb9763af9cd743158957e8c9c2559d922b1c22 (patch)
tree34a6524fbd51076c6ecbd5fd5d548f9b11302a12 /linux-user/qemu.h
parent1b6b029e40c4297ce9c27e0f8b8ae177085c990a (diff)
basic signal handling
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@41 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r--linux-user/qemu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index ae86176c35..77e9ecadd9 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -3,6 +3,12 @@
#include "thunk.h"
+#ifdef TARGET_I386
+
+/* default linux values for the selectors */
+#define __USER_CS (0x23)
+#define __USER_DS (0x2B)
+
struct target_pt_regs {
long ebx;
long ecx;
@@ -21,6 +27,8 @@ struct target_pt_regs {
int xss;
};
+#endif
+
/* This struct is used to hold certain information about the image.
* Basically, it replicates in user space what would be certain
* task_struct fields in the kernel
@@ -53,5 +61,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
struct CPUX86State;
void cpu_loop(struct CPUX86State *env);
+void process_pending_signals(void *cpu_env);
+void signal_init(void);
#endif