toaruos/modules/test.c
2021-10-04 20:34:42 +09:00

20 lines
292 B
C

#include <kernel/printf.h>
#include <kernel/module.h>
static int init(int argc, char * argv[]) {
printf("Hello, modules.\n");
*(volatile int*)0x60000000 = 42;
return 0;
}
static int fini(void) {
return 0;
}
struct Module metadata = {
.name = "test",
.init = init,
.fini = fini,
};