/* * void DoSIGSEGV() */ .text .align 4 .globl DoSIGSEGV DoSIGSEGV: mov $0x9, %eax movl 0(%eax), %eax ret /* * void DoSIGBUS() */ .text .align 4 .globl DoSIGBUS DoSIGBUS: // @todo: Don't know how to generate a SIGBUS on IA32 ret /* * void DoSIGILL() */ .text .align 4 .globl DoSIGILL DoSIGILL: ud2 ret /* * void DoSIGFPE() */ .text .align 4 .globl DoSIGFPE DoSIGFPE: mov $0x0, %eax idiv %eax ret /* * void DoSIGTRAP() */ .text .align 4 .globl DoSIGTRAP DoSIGTRAP: int $3 ret