commit | 7e5fe6576d4bbd1f4b894083ef542455d9017e1b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Mar 15 14:25:46 2025 +0000 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 03 11:41:55 2025 -0600 |
tree | 1698498e4d017dfcc631c3175bc2e40bb429707d | |
parent | 0b755a9854b521882d922451569230cae1636905 [diff] |
x86: Allow adding non-aligned size for MTRR At present mtrr_add_request() requires that the size is a power of two. This is too limiting for machines with 4GB (or more) of RAM, since they often must take account of a memory hole at 3GB. Update the function to automatically deal with an unaligned size, using more MTRRs as required. The algorithm is taken from coreboot commit 60bce10750 Signed-off-by: Simon Glass <sjg@chromium.org>