Kernel: Hardware exceptions now sends signals to userspace

This commit is contained in:
Bananymous
2023-07-30 14:17:39 +03:00
parent abe8810d47
commit 1d7795e22c
2 changed files with 32 additions and 4 deletions

View File

@@ -260,6 +260,11 @@ int execute_command(BAN::Vector<BAN::String>& args)
while (*current)
printf("%s\n", *current++);
}
else if (args.front() == "page-fault-test"sv)
{
volatile int* ptr = nullptr;
*ptr = 0;
}
else if (args.front() == "kill-test"sv)
{
pid_t pid = fork();