summaryrefslogtreecommitdiff
path: root/asm/start.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-01 12:44:10 +0200
committerMiguel <m.i@gmx.at>2018-09-01 12:44:10 +0200
commit0fff2e6dc6fae82da1c7978918a490c25cc36f04 (patch)
tree5b952a4db596c0354543e3defaeb23d255ebff0d /asm/start.h
parent51ab94a29f64de42e3dec3a3ef0ec6a94cda28a6 (diff)
rename multiboot.s to start.s
Diffstat (limited to 'asm/start.h')
-rw-r--r--asm/start.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/asm/start.h b/asm/start.h
new file mode 100644
index 0000000..ff30326
--- /dev/null
+++ b/asm/start.h
@@ -0,0 +1,21 @@
+/**
+ * @file
+ * Defines the following sections/functions, some are linked at
+ * specific addresses in the final ELF kernel binary.
+ * This is specified in the _linker.ld_ file.
+ *
+ * * 0x007000 .smp - entry point for application processors (16bit code)
+ * * 0x100000 .multiboot - the multiboot header
+ *
+ * * .text
+ * * .bootstrap_stack
+ * * _start() - main entry point for booting cpu, calls kernel_main().
+ *
+ * The addresses for .smp and .multiboot are based on the assumption:
+ * * 0x00000500 - 0x00007BFF : guaranteed free to use
+ * * 0x00100000 - 0x00EFFFFF : free for use (if it exists)
+ */
+
+/** This will be called by a multiboot compilant boot-loader (i.e. grub2) */
+void _start();
+