summaryrefslogtreecommitdiff
path: root/Source/Library
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-08 16:51:30 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-08 16:51:30 +0100
commitc712d7f6f801b073920c7b914ee1b95358113893 (patch)
treeb065a2344ddfa66a1e623347b2a8373cc07d02db /Source/Library
parentec6a6922d074da4b64976282333e308deb39aeec (diff)
downloadMelon-c712d7f6f801b073920c7b914ee1b95358113893.tar.gz
Melon-c712d7f6f801b073920c7b914ee1b95358113893.zip
Introduced V86 mode. It really fits in nicely :)
Diffstat (limited to 'Source/Library')
-rw-r--r--Source/Library/Userland/Syscall/Syscall.wtf.cpp4
-rw-r--r--Source/Library/Userland/Syscall/Syscall.wtf.h1
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);