summaryrefslogtreecommitdiff
path: root/boot/sigvec.S
diff options
context:
space:
mode:
Diffstat (limited to 'boot/sigvec.S')
-rw-r--r--boot/sigvec.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/boot/sigvec.S b/boot/sigvec.S
new file mode 100644
index 00000000..497cefe5
--- /dev/null
+++ b/boot/sigvec.S
@@ -0,0 +1,19 @@
+.globl _sigreturn
+_sigreturn:
+ movl $0x67,%eax
+ lcall $0x7,$0x0
+ ret
+
+.globl __sigreturn
+__sigreturn:
+ addl $0xc,%esp
+ call _sigreturn
+ ret
+
+.globl _sigvec
+_sigvec:
+ movl $0x6c,%eax
+ movl $__sigreturn,%edx
+ orl $0x80000000,%edx
+ lcall $0x7,$0x0
+ ret