| commit | 25db4d81d7e9b554d56971bf9e562b10dc5eab00 | [log] [tgz] |
|---|---|---|
| author | Christopher Anderson <chris@nullcode.org> | Tue Aug 16 20:15:33 2016 -0700 |
| committer | Christopher Anderson <chris@nullcode.org> | Wed Aug 17 01:22:30 2016 -0700 |
| tree | 9d542b06423be8aa22d9ad4d8f2156e3e3c593ee | |
| parent | 40b82f90d99e439a97325b1627c970060650a587 [diff] |
[osboot] Ensure loaded images are page aligned UEFI's AllocatePool allocates memory but only ensures it is 8 byte aligned. Due to memory layout and size of images, this can result in an unaligned ramdisk buffer being passed to the OS which causes a silent assertion in userboot. This is solved by switching to AllocatePages which maintains that buffers are always page aligned. Change-Id: I78f5bb4481bd91581e6ba3c1eece47bae907ba95