2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2002,2003 Free Software Foundation, Inc.
5
* This program 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 2 of the License, or
8
* (at your option) any later version.
10
* This program 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 this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
#ifndef KERNEL_MACHINE_HEADER
21
#define KERNEL_MACHINE_HEADER 1
23
/* The offset of GRUB_TOTAL_MODULE_SIZE. */
24
#define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE 0x8
26
/* The offset of GRUB_KERNEL_IMAGE_SIZE. */
27
#define GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE 0xc
29
/* The offset of GRUB_COMPRESSED_SIZE. */
30
#define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE 0x10
32
/* The offset of GRUB_INSTALL_DOS_PART. */
33
#define GRUB_KERNEL_MACHINE_INSTALL_DOS_PART 0x14
35
/* The offset of GRUB_INSTALL_BSD_PART. */
36
#define GRUB_KERNEL_MACHINE_INSTALL_BSD_PART 0x18
38
/* The offset of GRUB_PREFIX. */
39
#define GRUB_KERNEL_MACHINE_PREFIX 0x1c
41
/* The size of the first region which won't be compressed. */
42
#define GRUB_KERNEL_MACHINE_RAW_SIZE 0x4A0
46
#include <grub/types.h>
48
/* The DOS partition number of the installed partition. */
49
extern grub_int32_t grub_install_dos_part;
51
/* The BSD partition number of the installed partition. */
52
extern grub_int32_t grub_install_bsd_part;
54
/* The prefix which points to the directory where GRUB modules and its
55
configuration file are located. */
56
extern char grub_prefix[];
58
/* The boot BIOS drive number. */
59
extern grub_int32_t grub_boot_drive;
61
/* The end address of the kernel. */
62
extern grub_addr_t grub_end_addr;
64
#endif /* ! ASM_FILE */
66
#endif /* ! KERNEL_MACHINE_HEADER */