summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-15 00:50:54 -0600
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:30 +0200
commit613185023f0e84c410a2c088dd030ca696834763 (patch)
tree4f9d19d853a09a6009bd936fd6ae7c24ab5009d0 /include
parenta46714ffc31c46930965596e2da9ecfac648c1d3 (diff)
sandbox: Align RAM buffer to the machine page size
At present the sandbox RAM buffer is not aligned to any particular address boundary. This makes the internal pointers somewhat random with respect to the associated RAM buffer addresses. Align the buffer to the page size of the machine to help with this. Note that there is a header at the start of the allocated pointer. To avoid returning a pointer which is not aligned to a page boundary, we waste almost an entire page of memory for each allocation. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions