working on kernel tasklets

This commit is contained in:
2026-07-22 17:34:00 -05:00
parent 974e23987e
commit 21c66f13fb
7 changed files with 82 additions and 48 deletions

View File

@@ -200,4 +200,12 @@ process_t* get_task_by_pid(uint32_t pid) {
cur = cur->sched_next;
}
return cur;
}
void sched_create_ktask(void *addr) {
kprintf("sched_create_ktask called\n");
process_t* task = kalloc(sizeof(process_t));
void* cr3 = create_new_pd();
init_task(task, (uint32_t)addr, (uint32_t)cr3, 0, 0);
add_task(task);
}