Process linked list
This commit is contained in:
10
src/kmain.c
10
src/kmain.c
@@ -14,6 +14,7 @@
|
||||
#include "mem/paging/paging.h"
|
||||
#include "mem/paging/vmm.h"
|
||||
#include "mem/heap/kheap.h"
|
||||
#include "sched/process.h"
|
||||
|
||||
// Limine version used
|
||||
__attribute__((used, section(".limine_requests")))
|
||||
@@ -76,6 +77,9 @@ const char* splash = "pepperOS version "PEPPEROS_VERSION_MAJOR"."PEPPEROS_VERSIO
|
||||
|
||||
struct boot_context boot_ctx;
|
||||
|
||||
extern struct process_t* processes_list;
|
||||
extern struct process_t* current_process;
|
||||
|
||||
// This is our entry point
|
||||
void kmain()
|
||||
{
|
||||
@@ -122,7 +126,11 @@ void kmain()
|
||||
{
|
||||
printf("testing, attention please %d\n", i);
|
||||
}
|
||||
// term_scroll();
|
||||
|
||||
struct process_t* pedicel = process_create();
|
||||
|
||||
process_add(&processes_list, pedicel);
|
||||
process_display_list(processes_list);
|
||||
|
||||
hcf();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user