restructure thread constructor and pagetable
This commit is contained in:
@@ -92,15 +92,15 @@ extern "C" int main() {
|
||||
uintptr_t appstart = (0x4000+offset)<<12;
|
||||
DBG << "app " << i << " size " << appsize << " at " << appstart << endl;
|
||||
|
||||
Thread* thread_ptr= new Thread(false, (void*)appstart, (appsize/4096)+1); //TODO fix edgecase on size=4096
|
||||
g.vault().thread_list[thread_ptr->id] = thread_ptr;
|
||||
Thread* thread_ptr= new Thread(false, (void*)0x4000000, (void*)appstart, (appsize/4096)+1); //TODO fix edgecase on size=4096
|
||||
g.vault().thread_list[thread_ptr->id] = thread_ptr;
|
||||
|
||||
g.vault().scheduler.ready(thread_ptr); //TODO fix edgecase on size=4096
|
||||
offset += 1+(appsize/4096);
|
||||
|
||||
}
|
||||
|
||||
Thread* thread_ptr = new Thread(false, (void*)0x4001000, 2);
|
||||
Thread* thread_ptr = new Thread(false, (void*)0x4000000, (void*)0x4001000, 2);
|
||||
g.vault().scheduler.ready(thread_ptr);
|
||||
g.vault().thread_list[thread_ptr->id] = thread_ptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user