-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2d873d
commit 22fe384
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
; lux - a lightweight unix-like operating system | ||
; Omar Elghoul, 2024 | ||
|
||
[bits 64] | ||
|
||
; Signal Trampoline Code | ||
; this simply invokes the sigreturn() system call to allow the kernel to | ||
; restore the state of the thread before the signal was raised | ||
|
||
SYSCALL_SIGRETURN equ 49 | ||
|
||
section .data | ||
|
||
global sigstub | ||
align 16 | ||
sigstub: | ||
mov rax, SYSCALL_SIGRETURN | ||
syscall | ||
|
||
sigstubEnd: | ||
|
||
global sigstubSize | ||
align 16 | ||
sigstubSize: dq sigstubEnd - sigstub |