diff options
Diffstat (limited to 'Source/Library/Userland/Syscall')
-rw-r--r-- | Source/Library/Userland/Syscall/Syscall.wtf.cpp | 4 | ||||
-rw-r--r-- | Source/Library/Userland/Syscall/Syscall.wtf.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Source/Library/Userland/Syscall/Syscall.wtf.cpp b/Source/Library/Userland/Syscall/Syscall.wtf.cpp index b8d9526..7334d6b 100644 --- a/Source/Library/Userland/Syscall/Syscall.wtf.cpp +++ b/Source/Library/Userland/Syscall/Syscall.wtf.cpp @@ -11,6 +11,10 @@ void threadFinishedSyscall(u32int v) { asm volatile("int $66" : : "a"(v)); } +void breakPoint() { + asm volatile("int $3"); +} + void putch(char c) { u32int x = c; syscall(0xFFFFFF01, x); diff --git a/Source/Library/Userland/Syscall/Syscall.wtf.h b/Source/Library/Userland/Syscall/Syscall.wtf.h index 5234579..7bbaefc 100644 --- a/Source/Library/Userland/Syscall/Syscall.wtf.h +++ b/Source/Library/Userland/Syscall/Syscall.wtf.h @@ -9,6 +9,7 @@ void sleep(u32int); void write_hex(u32int); void threadFinishedSyscall(u32int); +void breakPoint(); u32int syscall(u32int n, u32int a, u32int b = 0, u32int c = 0, u32int d = 0, u32int e = 0); |