starting to work on pty drivers, fork(), and scheduler redesign

This commit is contained in:
2026-07-07 00:13:24 -05:00
parent 6d7a23d747
commit 177a0b8fe9
29 changed files with 859 additions and 111 deletions

View File

@@ -129,7 +129,9 @@ void load_root_program(const char* path) {
*(--u_esp) = 0; // argv = NULL
*(--u_esp) = 0; // argc = 0
create_task(e_hdr->e_entry, (uint32_t)cr3, 1, (uint32_t)u_esp);
process_t* process = kalloc(sizeof(process_t));
init_task(process, e_hdr->e_entry, (uint32_t)cr3, 1, (uint32_t)u_esp);
add_task(process);
enable_interrupts();
load_pd((void*)kernel_cr3);
@@ -173,6 +175,6 @@ void kmain(uint32_t magic, multiboot_info* mbi) {
init_scheduler();
enable_interrupts();
kprintf("loading rocksh...\n");
load_root_program("/rocksh.elf");
kprintf("loading test program\n");
load_root_program("/test.elf");
}