bump-allocated PID but kheap needs fix to kmalloc more than PAGE_SIZE
This commit is contained in:
25
src/kmain.c
25
src/kmain.c
@@ -82,6 +82,21 @@ struct boot_context boot_ctx;
|
||||
extern struct process_t* processes_list;
|
||||
extern struct process_t* current_process;
|
||||
|
||||
void pedicel_main(void* arg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void two_main(void* arg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void three_main(void* arg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// This is our entry point
|
||||
void kmain()
|
||||
{
|
||||
@@ -118,13 +133,9 @@ void kmain()
|
||||
|
||||
vmm_init();
|
||||
|
||||
struct process_t* pedicel = process_create();
|
||||
struct process_t* two = process_create();
|
||||
struct process_t* three = process_create();
|
||||
|
||||
process_add(&processes_list, pedicel);
|
||||
process_add(&processes_list, two);
|
||||
process_add(&processes_list, three);
|
||||
struct process_t* pedicel = process_create("pedicel", (void*)pedicel_main, 0);
|
||||
struct process_t* two = process_create("two", (void*)two_main, 0);
|
||||
struct process_t* three = process_create("three", (void*)three_main, 0);
|
||||
process_display_list(processes_list);
|
||||
|
||||
scheduler_init();
|
||||
|
||||
Reference in New Issue
Block a user