2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 1999,2000,2001,2002,2003,2005,2006,2007,2008 Free Software Foundation, Inc.
5
* GRUB is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* GRUB is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20
#include <grub/symbol.h>
21
#include <grub/i386/memory.h>
30
* struct grub_pxenv *grub_pxe_scan (void);
32
FUNCTION(grub_pxe_scan)
48
cmpl $0x4E455850, %es:(%bx) /* PXEN(V+) */
50
cmpw $0x201, %es:6(%bx) /* API version */
52
lesw %es:0x28(%bx), %bx /* !PXE structure */
53
cmpl $0x45585021, %es:(%bx) /* !PXE */
68
leal (%eax, %ecx, 4), %ecx
69
leal (%ebx, %ecx, 4), %eax /* eax = ecx * 16 + ebx */
75
movl %ecx, pxe_rm_entry
84
* int grub_pxe_call (int func, void* data);
86
FUNCTION(grub_pxe_call)
99
movl pxe_rm_entry, %ebx