From e3cc5f6c89ba9f37bf2c1edf588d0f75c1d63c57 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 14 Nov 2014 11:08:04 +0100 Subject: rename dirs --- boot2/kernel_entry.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 boot2/kernel_entry.asm (limited to 'boot2/kernel_entry.asm') diff --git a/boot2/kernel_entry.asm b/boot2/kernel_entry.asm new file mode 100644 index 0000000..53f63ad --- /dev/null +++ b/boot2/kernel_entry.asm @@ -0,0 +1,20 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;; Miguel's FoolOS Helper Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; +; this will be compiled to an object file and linked with the kernel +; to simplify the entrance! +; +; +[bits 32] +[extern kernel_main] + +push 0x1 + +cmp eax,1 +je multiproc +push 0x0 +multiproc: + +push esp +call kernel_main ; jumps in the world of C -- cgit v1.2.3