diff options
author | stefan <stefan@s00.xyz> | 2023-04-04 06:01:50 +0000 |
---|---|---|
committer | stefan <stefan@s00.xyz> | 2023-04-04 06:01:50 +0000 |
commit | 25108684fe235d4296c3cbc480298df209682586 (patch) | |
tree | 59f051e13154764da2b98dfdc1ce66e363d801da /sys/kern/init.c | |
parent | 254ffbc869c2376e77ecc298dfd396f077e9d58a (diff) | |
download | sv-25108684fe235d4296c3cbc480298df209682586.tar.gz |
build system and some other stuff
Diffstat (limited to 'sys/kern/init.c')
-rw-r--r-- | sys/kern/init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/kern/init.c b/sys/kern/init.c new file mode 100644 index 0000000..a49c304 --- /dev/null +++ b/sys/kern/init.c @@ -0,0 +1,11 @@ +#include <fdt.h> +#include <kernel_earlyprintf.h> + +void +init(unsigned long hartid, struct fdt_header *fdt) +{ + kernel_earlyputs("booting...\n"); + if (fdt_uint32(fdt->magic) == FDT_HEADER_MAGIC) + kernel_earlyputs("found flattened device tree!\n"); + +} |