Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356250
b: refs/heads/master
c: ee92d81
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Jan 30, 2013
1 parent 7622a9c commit f7d0cde
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e691cf824f76adefb4498fe39c300aba2c2575a
refs/heads/master: ee92d815027a76ef92f3ec7b155b0c8aa345f239
2 changes: 2 additions & 0 deletions trunk/arch/x86/boot/compressed/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ static unsigned long get_cmd_line_ptr(void)
{
unsigned long cmd_line_ptr = real_mode->hdr.cmd_line_ptr;

cmd_line_ptr |= (u64)real_mode->ext_cmd_line_ptr << 32;

return cmd_line_ptr;
}
int cmdline_find_option(const char *option, char *buffer, int bufsize)
Expand Down
10 changes: 9 additions & 1 deletion trunk/arch/x86/boot/header.S
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,14 @@ xloadflags:
#else
# define XLF0 0
#endif

#if defined(CONFIG_RELOCATABLE) && defined(CONFIG_X86_64)
/* kernel/boot_param/ramdisk could be loaded above 4g */
# define XLF1 XLF_CAN_BE_LOADED_ABOVE_4G
#else
# define XLF1 0
#endif

#ifdef CONFIG_EFI_STUB
# ifdef CONFIG_X86_64
# define XLF23 XLF_EFI_HANDOVER_64 /* 64-bit EFI handover ok */
Expand All @@ -383,7 +391,7 @@ xloadflags:
#else
# define XLF23 0
#endif
.word XLF0 | XLF23
.word XLF0 | XLF1 | XLF23

cmdline_size: .long COMMAND_LINE_SIZE-1 #length of the command line,
#added with boot protocol
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/head64.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ static unsigned long get_cmd_line_ptr(void)
{
unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr;

cmd_line_ptr |= (u64)boot_params.ext_cmd_line_ptr << 32;

return cmd_line_ptr;
}

Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,16 @@ static u64 __init get_ramdisk_image(void)
{
u64 ramdisk_image = boot_params.hdr.ramdisk_image;

ramdisk_image |= (u64)boot_params.ext_ramdisk_image << 32;

return ramdisk_image;
}
static u64 __init get_ramdisk_size(void)
{
u64 ramdisk_size = boot_params.hdr.ramdisk_size;

ramdisk_size |= (u64)boot_params.ext_ramdisk_size << 32;

return ramdisk_size;
}

Expand Down

0 comments on commit f7d0cde

Please sign in to comment.