Revert "some stuff"
This reverts commit baae867f9b2cfdf7d7d7eb6cfc41a5164d5fbcda.
This commit is contained in:
parent
14f7c25f7c
commit
bc241ba5b0
|
@ -31,7 +31,6 @@
|
||||||
|
|
||||||
%include "boot/loader/multiboot.inc"
|
%include "boot/loader/multiboot.inc"
|
||||||
|
|
||||||
;; Normal entry point, but a little bit unused since we never use it because...
|
|
||||||
_start:
|
_start:
|
||||||
mov ax, cs ; correcting cs after the horrible far jump
|
mov ax, cs ; correcting cs after the horrible far jump
|
||||||
mov ds, ax ; hm... And ds too
|
mov ds, ax ; hm... And ds too
|
||||||
|
@ -40,7 +39,6 @@ _start:
|
||||||
xor dl, dl
|
xor dl, dl
|
||||||
jmp 0x0000:main ; pas sûr
|
jmp 0x0000:main ; pas sûr
|
||||||
|
|
||||||
;; Magnificent multiboot header for GRUB ------------------------------------ ;;
|
|
||||||
MB_header:
|
MB_header:
|
||||||
align 4
|
align 4
|
||||||
dd MB_HEADER_MAGIC
|
dd MB_HEADER_MAGIC
|
||||||
|
@ -52,7 +50,6 @@ MB_header:
|
||||||
dd 00 ; (bss) not necessary
|
dd 00 ; (bss) not necessary
|
||||||
dd MB_start ; entry address GRUB will start at
|
dd MB_start ; entry address GRUB will start at
|
||||||
|
|
||||||
;; Multiboot entry point for Grub ------------------------------------------- ;;
|
|
||||||
MB_start:
|
MB_start:
|
||||||
mov esp, KERNEL_STACK ; Setup the stack
|
mov esp, KERNEL_STACK ; Setup the stack
|
||||||
push 0 ; Reset EFLAGS
|
push 0 ; Reset EFLAGS
|
||||||
|
@ -60,17 +57,16 @@ MB_start:
|
||||||
push eax ; 2nd argument is magic number
|
push eax ; 2nd argument is magic number
|
||||||
push ebx ; 1st argument multiboot info pointer
|
push ebx ; 1st argument multiboot info pointer
|
||||||
call main
|
call main
|
||||||
add esp, 8 ; Cleanup arguments "A la MIPS"
|
add esp, 8 ; Cleanup 8 bytes pushed as arguments
|
||||||
jmp Die ; Aufwiedersehen
|
jmp Die
|
||||||
|
|
||||||
;; THE HOLE ----------------------------------------------------------------- ;;
|
;; BEGIN OF THE HOLE -------------------------------------------------------- ;;
|
||||||
Die:
|
Die:
|
||||||
cli
|
cli
|
||||||
hlt ; die nooooow
|
hlt ; die nooooow
|
||||||
;jmp 0xF000:0xFFF0
|
;jmp 0xF000:0xFFF0
|
||||||
jmp $
|
jmp $
|
||||||
|
;; END OF THE HOLE ---------------------------------------------------------- ;;
|
||||||
|
|
||||||
;; THE CODE ------------------------------------------------------------------;;
|
|
||||||
main:
|
main:
|
||||||
|
|
||||||
jmp Die
|
jmp Die
|
||||||
|
|
Loading…
Reference in New Issue