mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
basic signal handling
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@41 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1b6b029e40
commit
66fb9763af
9 changed files with 1060 additions and 101 deletions
|
@ -81,10 +81,6 @@ int cpu_x86_inl(int addr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* default linux values for the selectors */
|
||||
#define __USER_CS (0x23)
|
||||
#define __USER_DS (0x2B)
|
||||
|
||||
void write_dt(void *ptr, unsigned long addr, unsigned long limit,
|
||||
int seg32_bit)
|
||||
{
|
||||
|
@ -135,6 +131,7 @@ void cpu_loop(struct CPUX86State *env)
|
|||
(long)pc, err);
|
||||
abort();
|
||||
}
|
||||
process_pending_signals(env);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,6 +196,7 @@ int main(int argc, char **argv)
|
|||
|
||||
target_set_brk((char *)info->brk);
|
||||
syscall_init();
|
||||
signal_init();
|
||||
|
||||
env = cpu_x86_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue