add dummys
This commit is contained in:
@@ -20,6 +20,10 @@ void Thread::kickoff(uintptr_t param1, uintptr_t param2, uintptr_t param3) {
|
|||||||
thread->action();
|
thread->action();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Thread::kickoffUsermode (Thread *object){
|
||||||
|
(void) object;
|
||||||
|
}
|
||||||
|
|
||||||
Thread::Thread() : queue_link(nullptr), id(idCounter++), kill_flag(false) {
|
Thread::Thread() : queue_link(nullptr), id(idCounter++), kill_flag(false) {
|
||||||
void *tos = reinterpret_cast<void *>(reserved_stack_space + STACK_SIZE);
|
void *tos = reinterpret_cast<void *>(reserved_stack_space + STACK_SIZE);
|
||||||
prepareContext(tos, context, kickoff, reinterpret_cast<uintptr_t>(this), 0,
|
prepareContext(tos, context, kickoff, reinterpret_cast<uintptr_t>(this), 0,
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ class Thread {
|
|||||||
*/
|
*/
|
||||||
alignas(16) char reserved_stack_space[STACK_SIZE];
|
alignas(16) char reserved_stack_space[STACK_SIZE];
|
||||||
|
|
||||||
|
struct{
|
||||||
|
void* user;
|
||||||
|
void* isr;
|
||||||
|
} StackPointer;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/*! \brief Context of the thread, used for saving and restoring the register
|
/*! \brief Context of the thread, used for saving and restoring the register
|
||||||
* values when context switching.
|
* values when context switching.
|
||||||
@@ -59,6 +64,8 @@ class Thread {
|
|||||||
*/
|
*/
|
||||||
static void kickoff(uintptr_t param1, uintptr_t param2, uintptr_t param3);
|
static void kickoff(uintptr_t param1, uintptr_t param2, uintptr_t param3);
|
||||||
|
|
||||||
|
static void kickoffUsermode (Thread *object);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/*! \brief Unique thread id */
|
/*! \brief Unique thread id */
|
||||||
const size_t id;
|
const size_t id;
|
||||||
|
|||||||
Reference in New Issue
Block a user