diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-10-10 23:03:20 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-10-10 23:03:20 +0300 |
| commit | d2ff961a2a08229e1f2245e8dba9b2275016133c (patch) | |
| tree | cffab8f0586b05a059715b2fa9676b8310bd297e /arch/riscv/kernel | |
| parent | b30ee14270a44e48167934b9b3923b4280bdc855 (diff) | |
| download | kmi-d2ff961a2a08229e1f2245e8dba9b2275016133c.tar.gz kmi-d2ff961a2a08229e1f2245e8dba9b2275016133c.zip | |
Prepare proper jump to kernel
Diffstat (limited to 'arch/riscv/kernel')
| -rw-r--r-- | arch/riscv/kernel/main.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/riscv/kernel/main.c b/arch/riscv/kernel/main.c index 510ea42..3575ceb 100644 --- a/arch/riscv/kernel/main.c +++ b/arch/riscv/kernel/main.c @@ -1,8 +1,14 @@ -#include <apos/main.h> #include <apos/debug.h> +#include <apos/init.h> -void __main main(void *uart) +void __main main(struct init_data_t d) { - dbg_init(uart, NS16550A); - dbg("Hello from (hopefully) virtual memory!\n"); + /* TODO: approximate order of business: + * setup debugging in vmem + * free unnecessary init + * setup interrupts (should this be done in init?) + * load init from initrd + * setup init environment (thread control blocks etc.) + * jumpstart init (free stack init setup) + */ } |
