remove all trailing whitespace
This commit is contained in:
parent
d2d4966571
commit
b39f9d20a9
222 changed files with 3286 additions and 3286 deletions
|
@ -20,11 +20,11 @@
|
|||
#define GRUB_ARCH_EFI_EMU_HEADER 1
|
||||
|
||||
grub_err_t
|
||||
grub_arch_efiemu_relocate_symbols32 (grub_efiemu_segment_t segs,
|
||||
grub_arch_efiemu_relocate_symbols32 (grub_efiemu_segment_t segs,
|
||||
struct grub_efiemu_elf_sym *elfsyms,
|
||||
void *ehdr);
|
||||
grub_err_t
|
||||
grub_arch_efiemu_relocate_symbols64 (grub_efiemu_segment_t segs,
|
||||
grub_arch_efiemu_relocate_symbols64 (grub_efiemu_segment_t segs,
|
||||
struct grub_efiemu_elf_sym *elfsyms,
|
||||
void *ehdr);
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ struct grub_e820_mmap
|
|||
|
||||
/* 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 */
|
||||
|
@ -135,21 +135,21 @@ struct linux_kernel_params
|
|||
grub_uint8_t video_cursor_y;
|
||||
|
||||
grub_uint16_t ext_mem; /* 2 */
|
||||
|
||||
|
||||
grub_uint16_t video_page; /* 4 */
|
||||
grub_uint8_t video_mode; /* 6 */
|
||||
grub_uint8_t video_width; /* 7 */
|
||||
|
||||
|
||||
grub_uint8_t padding1[0xa - 0x8];
|
||||
|
||||
|
||||
grub_uint16_t video_ega_bx; /* a */
|
||||
|
||||
|
||||
grub_uint8_t padding2[0xe - 0xc];
|
||||
|
||||
|
||||
grub_uint8_t video_height; /* e */
|
||||
grub_uint8_t have_vga; /* f */
|
||||
grub_uint16_t font_size; /* 10 */
|
||||
|
||||
|
||||
grub_uint16_t lfb_width; /* 12 */
|
||||
grub_uint16_t lfb_height; /* 14 */
|
||||
grub_uint16_t lfb_depth; /* 16 */
|
||||
|
@ -183,16 +183,16 @@ struct linux_kernel_params
|
|||
grub_uint16_t apm_flags; /* 4c */
|
||||
grub_uint32_t apm_code_len; /* 4e */
|
||||
grub_uint16_t apm_data_len; /* 52 */
|
||||
|
||||
|
||||
grub_uint8_t padding4[0x60 - 0x54];
|
||||
|
||||
|
||||
grub_uint32_t ist_signature; /* 60 */
|
||||
grub_uint32_t ist_command; /* 64 */
|
||||
grub_uint32_t ist_event; /* 68 */
|
||||
grub_uint32_t ist_perf_level; /* 6c */
|
||||
|
||||
grub_uint8_t padding5[0x80 - 0x70];
|
||||
|
||||
|
||||
grub_uint8_t hd0_drive_info[0x10]; /* 80 */
|
||||
grub_uint8_t hd1_drive_info[0x10]; /* 90 */
|
||||
grub_uint16_t rom_config_len; /* a0 */
|
||||
|
@ -232,15 +232,15 @@ struct linux_kernel_params
|
|||
grub_uint32_t efi_mmap_hi; /* 1dc */
|
||||
} v0206;
|
||||
};
|
||||
|
||||
|
||||
grub_uint32_t alt_mem; /* 1e0 */
|
||||
|
||||
|
||||
grub_uint8_t padding8[0x1e8 - 0x1e4];
|
||||
|
||||
|
||||
grub_uint32_t mmap_size; /* 1e8 */
|
||||
|
||||
grub_uint8_t padding9[0x1f1 - 0x1ec];
|
||||
|
||||
|
||||
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 */
|
||||
|
|
|
@ -72,7 +72,7 @@ struct grub_biosdisk_drp
|
|||
grub_uint8_t device_path[8];
|
||||
grub_uint8_t reserved2;
|
||||
grub_uint8_t checksum;
|
||||
|
||||
|
||||
/* XXX: This is necessary, because the BIOS of Thinkpad X20
|
||||
writes a garbage to the tail of drive parameters,
|
||||
regardless of a size specified in a caller. */
|
||||
|
|
|
@ -90,7 +90,7 @@ struct grub_machine_mmap_entry
|
|||
#define GRUB_MACHINE_MEMORY_ACPI 3
|
||||
#define GRUB_MACHINE_MEMORY_NVS 4
|
||||
#define GRUB_MACHINE_MEMORY_MAX_TYPE 4
|
||||
/* This one is special: it's used internally but is never reported
|
||||
/* This one is special: it's used internally but is never reported
|
||||
by firmware. */
|
||||
#define GRUB_MACHINE_MEMORY_HOLE 5
|
||||
|
||||
|
@ -107,19 +107,19 @@ grub_uint64_t grub_mmap_get_lower (void);
|
|||
#define GRUB_MMAP_MALLOC_LOW 1
|
||||
|
||||
#ifdef GRUB_MACHINE_PCBIOS
|
||||
grub_err_t grub_machine_mmap_register (grub_uint64_t start, grub_uint64_t size,
|
||||
grub_err_t grub_machine_mmap_register (grub_uint64_t start, grub_uint64_t size,
|
||||
int type, int handle);
|
||||
grub_err_t grub_machine_mmap_unregister (int handle);
|
||||
#else
|
||||
static inline grub_err_t
|
||||
grub_machine_mmap_register (grub_uint64_t start __attribute__ ((unused)),
|
||||
grub_uint64_t size __attribute__ ((unused)),
|
||||
int type __attribute__ ((unused)),
|
||||
static inline grub_err_t
|
||||
grub_machine_mmap_register (grub_uint64_t start __attribute__ ((unused)),
|
||||
grub_uint64_t size __attribute__ ((unused)),
|
||||
int type __attribute__ ((unused)),
|
||||
int handle __attribute__ ((unused)))
|
||||
{
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
static inline grub_err_t
|
||||
static inline grub_err_t
|
||||
grub_machine_mmap_unregister (int handle __attribute__ ((unused)))
|
||||
{
|
||||
return GRUB_ERR_NONE;
|
||||
|
|
|
@ -143,9 +143,9 @@ struct grub_vbe_mode_info_block
|
|||
grub_uint8_t lin_rsvd_field_position;
|
||||
grub_uint32_t max_pixel_clock;
|
||||
|
||||
/* Reserved field to make structure to be 256 bytes long, VESA BIOS
|
||||
Extension 3.0 Specification says to reserve 189 bytes here but
|
||||
that doesn't make structure to be 256 bytes. So additional one is
|
||||
/* Reserved field to make structure to be 256 bytes long, VESA BIOS
|
||||
Extension 3.0 Specification says to reserve 189 bytes here but
|
||||
that doesn't make structure to be 256 bytes. So additional one is
|
||||
added here. */
|
||||
grub_uint8_t reserved4[189 + 1];
|
||||
} __attribute__ ((packed));
|
||||
|
|
|
@ -41,7 +41,7 @@ grub_get_tsc (void)
|
|||
"pop %%rbx\n"
|
||||
#else
|
||||
"pop %%ebx\n"
|
||||
#endif
|
||||
#endif
|
||||
:::"%rax", "%rcx", "%rdx");
|
||||
#else
|
||||
__asm__ __volatile__ ("xorl %%eax, %%eax\n\t"
|
||||
|
|
|
@ -6,22 +6,22 @@ typedef grub_uint32_t grub_xnu_ptr_t;
|
|||
|
||||
struct grub_xnu_boot_params
|
||||
{
|
||||
grub_uint16_t verminor;
|
||||
grub_uint16_t vermajor;
|
||||
grub_uint16_t verminor;
|
||||
grub_uint16_t vermajor;
|
||||
/* Command line passed to xnu. */
|
||||
grub_uint8_t cmdline[1024];
|
||||
grub_uint8_t cmdline[1024];
|
||||
|
||||
/* Later are the same as EFI's get_memory_map (). */
|
||||
grub_xnu_ptr_t efi_mmap;
|
||||
grub_uint32_t efi_mmap_size;
|
||||
grub_uint32_t efi_mem_desc_size;
|
||||
grub_uint32_t efi_mem_desc_version;
|
||||
grub_xnu_ptr_t efi_mmap;
|
||||
grub_uint32_t efi_mmap_size;
|
||||
grub_uint32_t efi_mem_desc_size;
|
||||
grub_uint32_t efi_mem_desc_version;
|
||||
|
||||
/* Later are video parameters. */
|
||||
grub_xnu_ptr_t lfb_base;
|
||||
#define GRUB_XNU_VIDEO_SPLASH 1
|
||||
#define GRUB_XNU_VIDEO_TEXT_IN_VIDEO 2
|
||||
grub_uint32_t lfb_mode;
|
||||
grub_uint32_t lfb_mode;
|
||||
grub_uint32_t lfb_line_len;
|
||||
grub_uint32_t lfb_width;
|
||||
grub_uint32_t lfb_height;
|
||||
|
@ -30,12 +30,12 @@ struct grub_xnu_boot_params
|
|||
/* Pointer to device tree and its len. */
|
||||
grub_xnu_ptr_t devtree;
|
||||
grub_uint32_t devtreelen;
|
||||
|
||||
|
||||
/* First used address by kernel or boot structures. */
|
||||
grub_xnu_ptr_t heap_start;
|
||||
/* Last used address by kernel or boot structures minus previous value. */
|
||||
/* Last used address by kernel or boot structures minus previous value. */
|
||||
grub_uint32_t heap_size;
|
||||
|
||||
|
||||
/* First memory page containing runtime code or data. */
|
||||
grub_uint32_t efi_runtime_first_page;
|
||||
/* First memory page containing runtime code or data minus previous value. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue