mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
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.
This commit is contained in:
parent
7f1757b16c
commit
e561ab1b0b
10 changed files with 45 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue