diff options
author | Gabe Black <gabeblack@google.com> | 2013-05-18 21:41:59 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-07-10 20:11:32 +0200 |
commit | fb370130f6618d53f506566737f7394ee1417c55 (patch) | |
tree | b0d3ce6afe2c7a50c1f4278a9331bd4e25a5670b /src/arch/x86 | |
parent | 63dd2cb62a780158571c4cf5465ce7953a0e38fc (diff) | |
download | coreboot-fb370130f6618d53f506566737f7394ee1417c55.tar.xz |
ARM: Fix the way the space for the page tables is allocated.
The page tables need to be aligned to a 16KB boundary and are 16KB in size.
The CBMEM allocator only guarantees 512 byte alignment, so to make sure
things are where they're supposed to be, the code was allocating extra space
and then adjusting the pointer upwards. Unfortunately, it was adding the size
of the table to the pointer first, then aligning it. Since it allocated twice
the space of the table, this had the effect of moving past the first table
size region of bytes, and then aligning upwards, pushing the end of the table
out of the space allocated for it.
You can get away with this if you push things you don't care about off the
end, and it happened to be the case that we were allocating a color map we
weren't using at the start of the next part of cbmem.
Change-Id: I6b196fc573801b02f27f2e667acbf06163266651
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3651
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/arch/x86')
0 files changed, 0 insertions, 0 deletions