aboutsummaryrefslogtreecommitdiff
path: root/include/apos/init.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-10-10 23:03:20 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-10-10 23:03:20 +0300
commitd2ff961a2a08229e1f2245e8dba9b2275016133c (patch)
treecffab8f0586b05a059715b2fa9676b8310bd297e /include/apos/init.h
parentb30ee14270a44e48167934b9b3923b4280bdc855 (diff)
downloadkmi-d2ff961a2a08229e1f2245e8dba9b2275016133c.tar.gz
kmi-d2ff961a2a08229e1f2245e8dba9b2275016133c.zip
Prepare proper jump to kernel
Diffstat (limited to 'include/apos/init.h')
-rw-r--r--include/apos/init.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/include/apos/init.h b/include/apos/init.h
index 1bf6a9e..1d687cb 100644
--- a/include/apos/init.h
+++ b/include/apos/init.h
@@ -1,9 +1,28 @@
#ifndef APOS_INIT_H
#define APOS_INIT_H
-#include <apos/attrs.h>
+#include <apos/pmem.h>
-#define __init
-#define __initdata
+struct init_data_t {
+ paddr_t init_base;
+ paddr_t init_top;
+
+ paddr_t initrd_base;
+ paddr_t initrd_top;
+
+ paddr_t fdt_base;
+ paddr_t fdt_top;
+
+ paddr_t stack_base;
+ paddr_t stack_top;
+
+ struct vm_branch_t *kernel_vm_base;
+
+ /*
+ TODO: is this necessary?
+ paddr_t pmap_base;
+ paddr_t pmap_top;
+ */
+};
#endif /* APOS_INIT_H */