mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Remove the obsolete "Userspace" stuff.
This commit is contained in:
parent
42c88b5f2d
commit
5cfeeede7c
4 changed files with 0 additions and 100 deletions
|
@ -11,7 +11,6 @@
|
|||
#include "StdLib.h"
|
||||
#include "Syscall.h"
|
||||
#include "CMOS.h"
|
||||
#include "Userspace.h"
|
||||
#include "IDEDiskDevice.h"
|
||||
#include <VirtualFileSystem/NullDevice.h>
|
||||
#include <VirtualFileSystem/ZeroDevice.h>
|
||||
|
@ -31,7 +30,6 @@
|
|||
#define KERNEL_MAP
|
||||
//#define STRESS_TEST_SPAWNING
|
||||
//#define TEST_ELF_LOADER
|
||||
//#define TEST_CRASHY_USER_PROCESSES
|
||||
|
||||
system_t system;
|
||||
|
||||
|
@ -98,22 +96,6 @@ static void loadKernelMap(const ByteBuffer& buffer)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef TEST_CRASHY_USER_PROCESSES
|
||||
static void user_main() NORETURN;
|
||||
static void user_main()
|
||||
{
|
||||
DO_SYSCALL_A3(0x3000, 2, 3, 4);
|
||||
// Crash ourselves!
|
||||
char* x = reinterpret_cast<char*>(0xbeefbabe);
|
||||
*x = 1;
|
||||
HANG;
|
||||
for (;;) {
|
||||
// nothing?
|
||||
Userspace::sleep(1 * TICKS_PER_SECOND);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void undertaker_main() NORETURN;
|
||||
static void undertaker_main()
|
||||
{
|
||||
|
@ -174,10 +156,6 @@ static void init_stage2()
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef TEST_CRASHY_USER_PROCESSES
|
||||
new Task(user_main, "user", Task::Ring3);
|
||||
#endif
|
||||
|
||||
#ifdef TEST_ELF_LOADER
|
||||
{
|
||||
auto testExecutable = vfs->open("/bin/id");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue