blob: 71bedd1bc4cfa4a7b878a3f41cdcae46e01cb896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
; DEPRECATED . use multiboot.s instead!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;; Miguel's FoolOS Helper Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; this will be compiled to an object file and linked with the kernel
; to simplify the entrance!
;
;
global kernel_start
[bits 32]
[extern kernel_main]
kernel_start:
push 0x1
cmp eax,1
je multiproc
push 0x0
multiproc:
push esp
call kernel_main ; jumps in the world of C
|