| ||
| 80x86 PC BIOS GRUB Boot Loader File: 80x86/sys_src/p1/pc_bios/bootgrub/0index.asm | ||
| 24: ;Standard include files 25: 26: %include "asm.inc" 27: %include "kernel/log.inc" 28: %include "kernel/a20.inc" 29: %include "kernel/pasm.inc" 30: %include "ff/header.inc" 31: %include "ff/frl.inc" 32: 33: ;GRUB boot loader include files 34: 35: %include "options.inc" |
| 47: ORG 0x00000010 48: 49: BITS 32 50: CPU 386 51: 52: BOOTLOADER_START: 53: section .bss 54: BSS_START: 55: section .text |
| 61: MULTIBOOT_HEADER: 62: dd 0x1BADB002 ;Magic number 63: dd (1 << 16) ;Flags 64: dd -(0x1BADB002 + (1 << 16)) ;Checksum 65: 66: dd MULTIBOOT_HEADER - 0x00000010 + 0x00100000 ;Header address 67: dd $$ - 0x00000010 + 0x00100000 ;Load address 68: dd BOOTLOADER_END - 0x00000010 + 0x00100000 ;Load end address 69: dd BSS_END - 0x00000010 + 0x00100000 ;BSS end address 70: dd START - 0x00000010 + 0x00100000 ;Entry address |
| 78: %include "part1/init.asm" 79: %include "part1/data.asm" 80: 81: BITS 16 |
| 145: align 4096 146: BOOTLOADER_END: 147: section .bss 148: alignb 4 149: 150: resb 1024 151: alignb 4096 152: STACK_TOP: 153: BSS_END: |