kernel constants updated
This commit is contained in:
parent
5855d253f4
commit
270bd79ca7
1 changed files with 16 additions and 1 deletions
|
@ -19,10 +19,12 @@
|
||||||
#ifndef GRUB_KERNEL_CPU_HEADER
|
#ifndef GRUB_KERNEL_CPU_HEADER
|
||||||
#define GRUB_KERNEL_CPU_HEADER 1
|
#define GRUB_KERNEL_CPU_HEADER 1
|
||||||
|
|
||||||
#define GRUB_MOD_ALIGN 0x1000
|
#define GRUB_MOD_ALIGN 0x1
|
||||||
/* Non-zero value is only needed for PowerMacs. */
|
/* Non-zero value is only needed for PowerMacs. */
|
||||||
#define GRUB_MOD_GAP 0x0
|
#define GRUB_MOD_GAP 0x0
|
||||||
|
|
||||||
|
#define GRUB_KERNEL_MACHINE_LINK_ALIGN 32
|
||||||
|
|
||||||
#define GRUB_KERNEL_CPU_RAW_SIZE 0x100
|
#define GRUB_KERNEL_CPU_RAW_SIZE 0x100
|
||||||
#define GRUB_KERNEL_CPU_COMPRESSED_SIZE 0x8
|
#define GRUB_KERNEL_CPU_COMPRESSED_SIZE 0x8
|
||||||
#define GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE 0xc
|
#define GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE 0xc
|
||||||
|
@ -39,8 +41,21 @@
|
||||||
#define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE
|
#define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE
|
||||||
#define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE GRUB_KERNEL_CPU_COMPRESSED_SIZE
|
#define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE GRUB_KERNEL_CPU_COMPRESSED_SIZE
|
||||||
|
|
||||||
|
#define GRUB_PLATFORM_IMAGE_FORMATS "raw, elf"
|
||||||
|
#define GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT "raw"
|
||||||
|
|
||||||
|
#define GRUB_PLATFORM_IMAGE_DEFAULT GRUB_PLATFORM_IMAGE_RAW
|
||||||
|
|
||||||
#ifndef ASM_FILE
|
#ifndef ASM_FILE
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
GRUB_PLATFORM_IMAGE_RAW,
|
||||||
|
GRUB_PLATFORM_IMAGE_ELF
|
||||||
|
}
|
||||||
|
grub_platform_image_format_t;
|
||||||
|
#define GRUB_PLATFORM_IMAGE_RAW GRUB_PLATFORM_IMAGE_RAW
|
||||||
|
#define GRUB_PLATFORM_IMAGE_ELF GRUB_PLATFORM_IMAGE_ELF
|
||||||
|
|
||||||
/* The prefix which points to the directory where GRUB modules and its
|
/* The prefix which points to the directory where GRUB modules and its
|
||||||
configuration file are located. */
|
configuration file are located. */
|
||||||
extern char grub_prefix[];
|
extern char grub_prefix[];
|
||||||
|
|
Loading…
Reference in a new issue