Commit 08fc60898b2dba14f81fd8b7e5143c4d672a2c2c
1 parent
08239198
more siginfo constants
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@130 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
18 additions
and
0 deletions
syscall-i386.h
| ... | ... | @@ -445,6 +445,18 @@ typedef struct target_siginfo { |
| 445 | 445 | } target_siginfo_t; |
| 446 | 446 | |
| 447 | 447 | /* |
| 448 | + * si_code values | |
| 449 | + * Digital reserves positive values for kernel-generated signals. | |
| 450 | + */ | |
| 451 | +#define TARGET_SI_USER 0 /* sent by kill, sigsend, raise */ | |
| 452 | +#define TARGET_SI_KERNEL 0x80 /* sent by the kernel from somewhere */ | |
| 453 | +#define TARGET_SI_QUEUE -1 /* sent by sigqueue */ | |
| 454 | +#define TARGET_SI_TIMER -2 /* sent by timer expiration */ | |
| 455 | +#define TARGET_SI_MESGQ -3 /* sent by real time mesq state change */ | |
| 456 | +#define TARGET_SI_ASYNCIO -4 /* sent by AIO completion */ | |
| 457 | +#define TARGET_SI_SIGIO -5 /* sent by queued SIGIO */ | |
| 458 | + | |
| 459 | +/* | |
| 448 | 460 | * SIGILL si_codes |
| 449 | 461 | */ |
| 450 | 462 | #define TARGET_ILL_ILLOPN (2) /* illegal operand */ |
| ... | ... | @@ -462,6 +474,12 @@ typedef struct target_siginfo { |
| 462 | 474 | #define TARGET_FPE_FLTSUB (8) /* subscript out of range */ |
| 463 | 475 | #define TARGET_NSIGFPE 8 |
| 464 | 476 | |
| 477 | +/* | |
| 478 | + * SIGSEGV si_codes | |
| 479 | + */ | |
| 480 | +#define TARGET_SEGV_MAPERR (1) /* address not mapped to object */ | |
| 481 | +#define TARGET_SEGV_ACCERR (2) /* invalid permissions for mapped object */ | |
| 482 | + | |
| 465 | 483 | /* default linux values for the selectors */ |
| 466 | 484 | #define __USER_CS (0x23) |
| 467 | 485 | #define __USER_DS (0x2B) | ... | ... |