toaruos/modules/test.c

20 lines
292 B
C
Raw Normal View History

2021-05-31 04:47:02 +03:00
#include <kernel/printf.h>
#include <kernel/module.h>
2021-05-31 04:47:02 +03:00
static int init(int argc, char * argv[]) {
printf("Hello, modules.\n");
2021-10-04 14:34:42 +03:00
*(volatile int*)0x60000000 = 42;
2021-05-31 04:47:02 +03:00
return 0;
}
static int fini(void) {
return 0;
}
struct Module metadata = {
2021-05-31 04:47:02 +03:00
.name = "test",
.init = init,
.fini = fini,
};