work on page loading

This commit is contained in:
2026-02-10 16:18:19 +01:00
parent 0521c9c1ec
commit 67291f7f19
8 changed files with 96 additions and 30 deletions

View File

@@ -17,6 +17,8 @@
#include "../object/queue.h"
#include "../types.h"
#include "../memory/pagetable.h"
/// Stack size for each thread
constexpr uint32_t STACK_SIZE = 3072;
@@ -31,6 +33,8 @@ class Thread {
bool isKernel;
void* start;
pagetable_t* subtable;
friend class Queue<Thread>;
friend class Semaphore;
/*! \brief Memory reserved for this threads stack
@@ -120,7 +124,7 @@ class Thread {
* Derived classes are meant to override this method to provide
* meaningful code to be run in this thread.
*/
virtual void action() = 0; // XXX: why is this not always pure virtual?
virtual void action(); // XXX: why is this not always pure virtual?
//
//
//