Add base code
This commit is contained in:
17
os/main.c
Normal file
17
os/main.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user