From c712d7f6f801b073920c7b914ee1b95358113893 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sun, 8 Nov 2009 16:51:30 +0100 Subject: Introduced V86 mode. It really fits in nicely :) --- Source/Library/Userland/Syscall/Syscall.wtf.cpp | 4 ++++ Source/Library/Userland/Syscall/Syscall.wtf.h | 1 + 2 files changed, 5 insertions(+) (limited to 'Source/Library') 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); -- cgit v1.2.3