Process linked list

This commit is contained in:
2026-01-31 14:13:48 +01:00
parent 6e633b44b7
commit c46157fad0
8 changed files with 153 additions and 2 deletions

View File

@@ -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();
}