aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/boot.md11
-rw-r--r--docs/doxygen.conf4
2 files changed, 13 insertions, 2 deletions
diff --git a/docs/boot.md b/docs/boot.md
new file mode 100644
index 0000000..2131d93
--- /dev/null
+++ b/docs/boot.md
@@ -0,0 +1,11 @@
+I need to figure out how to write MarkDown files, but the general procedure of a
+boot is that we
+
+1) Assume we start of in real memory mode, i.e. no MMU active.
+
+2) arch/whatever/init/init.c kickstarts us into virtual memory with a direct
+mapping, with offset VM_DMAP aliasing to physical address 0.
+
+3) The kernel proper is moved to its correct location in this direct mapping.
+
+4) The kernel proper is jumped to, after which the kernel does whatever.
diff --git a/docs/doxygen.conf b/docs/doxygen.conf
index d113ff4..32f764f 100644
--- a/docs/doxygen.conf
+++ b/docs/doxygen.conf
@@ -2214,7 +2214,7 @@ ENABLE_PREPROCESSING = YES
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-MACRO_EXPANSION = NO
+MACRO_EXPANSION = YES
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
# the macro expansion is limited to the macros specified with the PREDEFINED and
@@ -2254,7 +2254,7 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-PREDEFINED = DEBUG
+PREDEFINED = DEBUG __GNUC__ riscv64 riscv32
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The