summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/asm_start.h7
-rw-r--r--asm/asm_start.s2
2 files changed, 7 insertions, 2 deletions
diff --git a/asm/asm_start.h b/asm/asm_start.h
index 3315d50..8390b8a 100644
--- a/asm/asm_start.h
+++ b/asm/asm_start.h
@@ -27,6 +27,11 @@
* * http://wiki.osdev.org/Bare_Bones
*/
+extern uint32_t kernel_start[];
+extern uint32_t kernel_end[];
+
+
+
/** This will be called by a multiboot compilant boot-loader (i.e. grub2).
* Calls kernel_main() passing through eax and ebx:
* * eax - magic number
@@ -37,3 +42,5 @@ void _start();
/** 16-bit entry point for application processors */
void _start_smp();
+static uint32_t get_kernel_start(){return kernel_start;}
+static uint32_t get_kernel_end(){return kernel_end;}
diff --git a/asm/asm_start.s b/asm/asm_start.s
index 6ed43ca..7758354 100644
--- a/asm/asm_start.s
+++ b/asm/asm_start.s
@@ -1,7 +1,5 @@
.global _start
.global _start_smp
-.global stack_top
-.global stack_bottom
# Fill Multiboot Haeder, init stack and call kernel_main passing two params:
# eax - magic number