add dummys

This commit is contained in:
2025-11-20 17:07:34 +01:00
parent 68cae0fde5
commit ba8b90f7f1
2 changed files with 11 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ void Thread::kickoff(uintptr_t param1, uintptr_t param2, uintptr_t param3) {
thread->action();
}
void Thread::kickoffUsermode (Thread *object){
(void) object;
}
Thread::Thread() : queue_link(nullptr), id(idCounter++), kill_flag(false) {
void *tos = reinterpret_cast<void *>(reserved_stack_space + STACK_SIZE);
prepareContext(tos, context, kickoff, reinterpret_cast<uintptr_t>(this), 0,

View File

@@ -35,6 +35,11 @@ class Thread {
*/
alignas(16) char reserved_stack_space[STACK_SIZE];
struct{
void* user;
void* isr;
} StackPointer;
protected:
/*! \brief Context of the thread, used for saving and restoring the register
* values when context switching.
@@ -59,6 +64,8 @@ class Thread {
*/
static void kickoff(uintptr_t param1, uintptr_t param2, uintptr_t param3);
static void kickoffUsermode (Thread *object);
public:
/*! \brief Unique thread id */
const size_t id;