lkml.org 
[lkml]   [2014]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] x86: only load initrd above 4g on second try
From
On Wed, Aug 27, 2014 at 10:49 AM, H. Peter Anvin <hpa@zytor.com> wrote:
> On 08/26/2014 03:05 PM, Yinghai Lu wrote:
> This does, however, suggest at least two possible solutions:
>
> 1. We can read the initramfs into a temporary buffer and memcpy() it to
> the target.
>
> 2. We might be able to align the initramfs buffer to a 512-byte section
> and then round up the size.
>
> The 512 bytes here is probably a hardware sector, I'm not sure how this
> will play on 4K-hard-sectored media, although those are few and far between.

efi_high_alloc() already round up the buffer size with EFI_PAGE_SIZE
(it is 4KiB now), and the buffer is aligned to EFI_PAGE_SIZE.

Yinghai


\
 
 \ /
  Last update: 2014-08-27 21:21    [W:0.131 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site