diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-23 22:59:08 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-23 22:59:08 +0100 |
commit | e561ab1b0b0c3e37d729ce6620f375ac8fefc0b6 (patch) | |
tree | 630600533980f9873370d35f0e286504dbcaa9a8 /Kernel/i386.cpp | |
parent | 7f1757b16c82f7398e2386d84d9bae877d5fc39b (diff) | |
download | serenity-e561ab1b0b0c3e37d729ce6620f375ac8fefc0b6.zip |
Kernel+LibC: Add a simple create_thread() syscall.
It takes two parameters, a function pointer for the entry function,
and a void* argument to be passed to that function on the new thread.
Diffstat (limited to 'Kernel/i386.cpp')
-rw-r--r-- | Kernel/i386.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/i386.cpp b/Kernel/i386.cpp index 44103f0b82..3133b9ae4e 100644 --- a/Kernel/i386.cpp +++ b/Kernel/i386.cpp @@ -273,9 +273,10 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs) auto response = MM.handle_page_fault(PageFault(regs.exception_code, LinearAddress(faultAddress))); if (response == PageFaultResponse::ShouldCrash) { - kprintf("%s(%u) unrecoverable page fault, %s laddr=%p\n", + kprintf("%s(%u:%u) unrecoverable page fault, %s laddr=%p\n", current->process().name().characters(), current->pid(), + current->tid(), regs.exception_code & 2 ? "write" : "read", faultAddress); dump(regs); |