restructure thread constructor and pagetable
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user