Kernel: Add a NetworkTask and a received network packet queue.

It will be easier to deal with incoming packets in a separate task.
This commit is contained in:
Andreas Kling 2019-03-11 12:43:45 +01:00
parent 47b096feb4
commit 35098cbde1
Notes: sideshowbarker 2024-07-19 15:05:10 +09:00
10 changed files with 90 additions and 11 deletions

View file

@ -24,6 +24,7 @@
#include "DevPtsFS.h"
#include "BXVGADevice.h"
#include "E1000NetworkAdapter.h"
#include <Kernel/NetworkTask.h>
#define SPAWN_LAUNCHER
//#define SPAWN_GUITEST2
@ -186,6 +187,7 @@ VFS* vfs;
Scheduler::yield();
}
});
Process::create_kernel_process("NetworkTask", NetworkTask_main);
Scheduler::pick_next();