20 lines
292 B
C
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,
|
|
};
|
|
|