2004-07-11 13:44:23 +00:00
|
|
|
/*
|
|
|
|
* GRUB -- GRand Unified Bootloader
|
2008-02-03 18:56:08 +00:00
|
|
|
* Copyright (C) 2000,2005,2007,2008 Free Software Foundation, Inc.
|
2004-07-11 13:44:23 +00:00
|
|
|
*
|
2007-07-21 23:32:33 +00:00
|
|
|
* GRUB is free software: you can redistribute it and/or modify
|
2004-07-11 13:44:23 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2007-07-21 23:32:33 +00:00
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
2004-07-11 13:44:23 +00:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2007-07-21 23:32:33 +00:00
|
|
|
* GRUB is distributed in the hope that it will be useful,
|
2004-07-11 13:44:23 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2007-07-21 23:32:33 +00:00
|
|
|
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
2004-07-11 13:44:23 +00:00
|
|
|
*/
|
|
|
|
|
2005-07-16 22:06:33 +00:00
|
|
|
.file "pxeboot.S"
|
|
|
|
.text
|
2004-07-11 13:44:23 +00:00
|
|
|
|
2005-07-16 22:06:33 +00:00
|
|
|
/* Start with the prehistoric environment... */
|
|
|
|
.code16
|
|
|
|
|
|
|
|
/* Let's go */
|
2004-07-11 13:44:23 +00:00
|
|
|
.globl _start; _start:
|
|
|
|
|
2008-02-03 18:56:08 +00:00
|
|
|
/* Root drive will default to boot drive */
|
|
|
|
movb $0xFF, %dh
|
|
|
|
|
2005-07-16 22:06:33 +00:00
|
|
|
/* Jump to the real world */
|
|
|
|
ljmp $0, $0x8200
|
|
|
|
|
|
|
|
/* This region is a junk. Do you say that this is wasteful?
|
|
|
|
But I like that the memory layout of the body is consistent
|
|
|
|
among different kernels rather than scamping just for 1.5KB. */
|
|
|
|
. = _start + 0x8200 - 0x7C00 - 0x200 - 1
|
|
|
|
.byte 0
|