work on page loading
This commit is contained in:
@@ -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?
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user