restructure thread constructor and pagetable

This commit is contained in:
2026-02-25 07:39:32 +01:00
parent 76f782c5ae
commit 22ab2fb2a5
8 changed files with 179 additions and 161 deletions

View File

@@ -79,7 +79,7 @@ class Thread {
static void kickoff(uintptr_t param1, uintptr_t param2, uintptr_t param3);
static void kickoffUsermode (Thread *object);
void map_app(void* code_paddr, uint16_t code_page_num, void* stack_vaddr, uint16_t stack_page_num);
public:
struct{
void* user;
@@ -120,7 +120,7 @@ class Thread {
*
*/
explicit Thread();
explicit Thread(bool kernel, void * startframe = nullptr, int num_pages=1);
explicit Thread (bool kernel, void* start_addr, void * codeframe=0, int code_frame_num=1);
/*! \brief Activates the first thread on this CPU.
*