2004-07-11 13:44:23 +00:00
|
|
|
/*
|
|
|
|
* GRUB -- GRand Unified Bootloader
|
2010-01-26 16:39:37 +00:00
|
|
|
* Copyright (C) 2000,2005,2007,2008,2009,2010 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
|
|
|
*/
|
|
|
|
|
2010-01-26 16:39:37 +00:00
|
|
|
#include <grub/machine/boot.h>
|
|
|
|
|
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
|
2009-06-10 21:04:23 +00:00
|
|
|
|
2005-07-16 22:06:33 +00:00
|
|
|
/* Let's go */
|
2009-06-10 21:04:23 +00:00
|
|
|
.globl start, _start;
|
2009-06-04 19:35:31 +00:00
|
|
|
_start:
|
2009-06-10 21:04:23 +00:00
|
|
|
start:
|
2004-07-11 13:44:23 +00:00
|
|
|
|
2009-06-15 23:25:38 +00:00
|
|
|
/* Use drive number 0x7F for PXE */
|
2010-01-26 16:39:37 +00:00
|
|
|
movb $GRUB_BOOT_MACHINE_PXE_DL, %dl
|
2009-06-10 21:04:23 +00:00
|
|
|
|
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. */
|
2015-02-21 16:19:01 +00:00
|
|
|
.org 0x8200 - 0x7C00 - 0x200 - 1
|
2005-07-16 22:06:33 +00:00
|
|
|
.byte 0
|