⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux.h

📁 最新的grub2源代码
💻 H
字号:
/* *  GRUB  --  GRand Unified Bootloader *  Copyright (C) 1999,2000,2001,2002,2003,2004  Free Software Foundation, Inc. * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  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 *  along with this program; if not, write to the Free Software *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef GRUB_LINUX_MACHINE_HEADER#define GRUB_LINUX_MACHINE_HEADER	1#define GRUB_LINUX_MAGIC_SIGNATURE	0x53726448      /* "HdrS" */#define GRUB_LINUX_DEFAULT_SETUP_SECTS	4#define GRUB_LINUX_FLAG_CAN_USE_HEAP	0x80#define GRUB_LINUX_INITRD_MAX_ADDRESS	0x37FFFFFF#define GRUB_LINUX_MAX_SETUP_SECTS	64#define GRUB_LINUX_BOOT_LOADER_TYPE	0x72#define GRUB_LINUX_HEAP_END_OFFSET	(0x9000 - 0x200)#define GRUB_LINUX_BZIMAGE_ADDR		0x100000#define GRUB_LINUX_ZIMAGE_ADDR		0x10000#define GRUB_LINUX_OLD_REAL_MODE_ADDR	0x90000#define GRUB_LINUX_SETUP_STACK		0x9000#define GRUB_LINUX_FLAG_BIG_KERNEL	0x1/* Linux's video mode selection support. Actually I hate it!  */#define GRUB_LINUX_VID_MODE_NORMAL	0xFFFF#define GRUB_LINUX_VID_MODE_EXTENDED	0xFFFE#define GRUB_LINUX_VID_MODE_ASK		0xFFFD#define GRUB_LINUX_CL_OFFSET		0x9000#define GRUB_LINUX_CL_END_OFFSET	0x90FF#define GRUB_LINUX_SETUP_MOVE_SIZE	0x9100#define GRUB_LINUX_CL_MAGIC		0xA33F#ifndef ASM_FILE/* For the Linux/i386 boot protocol version 2.03.  */struct linux_kernel_header{   grub_uint8_t code1[0x0020];  grub_uint16_t cl_magic;		/* Magic number 0xA33F */  grub_uint16_t cl_offset;		/* The offset of command line */  grub_uint8_t code2[0x01F1 - 0x0020 - 2 - 2];  grub_uint8_t setup_sects;		/* The size of the setup in sectors */  grub_uint16_t root_flags;		/* If the root is mounted readonly */  grub_uint16_t syssize;		/* obsolete */  grub_uint16_t swap_dev;		/* obsolete */  grub_uint16_t ram_size;		/* obsolete */  grub_uint16_t vid_mode;		/* Video mode control */  grub_uint16_t root_dev;		/* Default root device number */  grub_uint16_t boot_flag;		/* 0xAA55 magic number */  grub_uint16_t jump;			/* Jump instruction */  grub_uint32_t header;			/* Magic signature "HdrS" */  grub_uint16_t version;		/* Boot protocol version supported */  grub_uint32_t realmode_swtch;		/* Boot loader hook */  grub_uint16_t start_sys;		/* The load-low segment (obsolete) */  grub_uint16_t kernel_version;		/* Points to kernel version string */  grub_uint8_t type_of_loader;		/* Boot loader identifier */  grub_uint8_t loadflags;		/* Boot protocol option flags */  grub_uint16_t setup_move_size;	/* Move to high memory size */  grub_uint32_t code32_start;		/* Boot loader hook */  grub_uint32_t ramdisk_image;		/* initrd load address */  grub_uint32_t ramdisk_size;		/* initrd size */  grub_uint32_t bootsect_kludge;	/* obsolete */  grub_uint16_t heap_end_ptr;		/* Free memory after setup end */  grub_uint16_t pad1;			/* Unused */  char *cmd_line_ptr;			/* Points to the kernel command line */  grub_uint32_t initrd_addr_max;        /* Highest address for initrd */} __attribute__ ((packed));#endif /* ! ASM_FILE */#endif /* ! GRUB_LINUX_MACHINE_HEADER */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -