Add base code

This commit is contained in:
2024-11-02 19:07:52 +01:00
parent 9c1b7d0321
commit 6587c8498f
10 changed files with 184 additions and 0 deletions

17
os/main.c Normal file
View File

@@ -0,0 +1,17 @@
#include "process.h"
#include "scheduler.h"
#include "alloc.h"
extern int task1(void);
extern int task2(void);
int main(void) {
init_allocator();
ProcessTable *ptable;
create_process_table(&ptable);
create_process(ptable, task1);
create_process(ptable, task2);
run(ptable);
}