Hi, again here (as expected). I ported almost successfully my OS to GRUB, but I get this error:
Code:
error: no multiboot header found
I already searched the error in Google, but I find no solution. (that can help me)
Here is bootg.asm:
Code:
bits 32
%include "gdt.inc"
%include "idt.inc"
global start
extern kernelmain
start:
mov esp, _sys_stack
jmp stublet
ALIGN 4
mboot:
MULTIBOOT_PAGE_ALIGN equ 1<<0
MULTIBOOT_MEMORY_INFO equ 1<<1
MULTIBOOT_AOUT_KLUDGE equ 1<<16
MULTIBOOT_HEADER_MAGIC equ 0x1BADB002
MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO | MULTIBOOT_AOUT_KLUDGE
MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
EXTERN code, bss, end
dd MULTIBOOT_HEADER_MAGIC
dd MULTIBOOT_HEADER_FLAGS
dd MULTIBOOT_CHECKSUM
call InstallGDT
call kernelmain
stublet:
jmp $
SECTION .bss
resb 8192
_sys_stack:
The linker script is the same that can be finded in
Bare bones