DJGPP GCC & GRUB

From: hari4063 (s4063m_at_pmf.unsa.ba)
Date: 04/14/04


Date: Wed, 14 Apr 2004 17:48:42 +0000 (UTC)

Hy,
        I try to write simple kernel. GRUB load kernel at 1MB, but I want
to enable paging and map kernel at 3GBKernel makes two modules startup.asm
and main.c. Startup.asm is writen in nasm (output is coff format).
startup.asm:
            SECTION .text
            GLOBAL entry
            entry:
                          ; some staff
                          ; aout multiboot Kludge

main.c have only one function main (called from startup.asm).
main.c is compiled with DJGPP GCC. Becuase i want paging, LD
script looks something like this:
ENTRY(entry)
        v = 0xC0000000;
        p = 0x100000;
        SECTIONS
        {
          .text virt : AT(phys)
            { code = .; _code = .; __code = .;
                *(.text)
                . = ALIGN(4096);
            }
            .data : AT(phys + (g_data - g_code))
            { .data = .; _data = .; __data = .;
     *(.data)
     . = ALIGN(4096);
            }
            .bss : AT(phys + (g_bss - g_code))
   { bss = .; _bss = .; __bss = .;
       *(.bss)
       *(COMMON)
       . = ALIGN(4096);
            }
   _end = .; __end = .;
}

GRUB is installed on FAT12 floppy. After booting, I got mesage : Loading
below 1MB is not supported? What is problem?