feat added init function

This commit is contained in:
2021-08-13 21:07:40 +02:00
parent 8187265735
commit 6b0f6ddfb7
5 changed files with 59 additions and 0 deletions

20
include/myke/util/init.h Normal file
View File

@@ -0,0 +1,20 @@
//
// Created by rick on 13-08-21.
//
#ifndef NEW_KERNEL_INIT_H
#define NEW_KERNEL_INIT_H
#include <sys/types.h>
#include <myke/driver.h>
struct init {
const char *name;
void (*init)();
};
#define INIT_FUNCTION(order) GENERIC_DRIVER(init, order)
void init_execute_all();
#endif //NEW_KERNEL_INIT_H