1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

A userspace process can now GPF and the OS goes on!

This is really rickety, but it kinda sorta works for my test GPF!
This commit is contained in:
Andreas Kling 2018-10-17 23:49:32 +02:00
parent 77299cf54d
commit 56c1f9db8e
8 changed files with 96 additions and 42 deletions

View file

@ -69,7 +69,7 @@ static void user_main()
// Crash ourselves!
char* x = reinterpret_cast<char*>(0xbeefbabe);
//*x = 1;
//HANG;
HANG;
for (;;) {
// nothing?
Userspace::sleep(1 * TICKS_PER_SECOND);