mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 01:12:06 +00:00
Add Regions concept to Task.
This commit is contained in:
parent
5b10846bed
commit
3649638259
7 changed files with 131 additions and 41 deletions
|
@ -76,6 +76,14 @@ static void user_main()
|
|||
}
|
||||
}
|
||||
|
||||
static void user_kprintf_main() NORETURN;
|
||||
static void user_kprintf_main()
|
||||
{
|
||||
DO_SYSCALL_A1(0x4000, 0);
|
||||
kprintf("This should not work!\n");
|
||||
HANG;
|
||||
}
|
||||
|
||||
system_t system;
|
||||
|
||||
void banner()
|
||||
|
@ -155,10 +163,11 @@ void init()
|
|||
|
||||
//new Task(motd_main, "motd", IPC::Handle::MotdTask, Task::Ring0);
|
||||
new Task(user_main, "user", IPC::Handle::UserTask, Task::Ring3);
|
||||
new Task(user_kprintf_main, "user_kprintf", IPC::Handle::UserTask, Task::Ring3);
|
||||
|
||||
//vfs->listDirectory("/");
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
{
|
||||
auto motdFile = vfs->open("/motd.txt");
|
||||
ASSERT(motdFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue