commit | 3742cfa202e386d57e8bffb699231d0050678fca | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Mar 15 14:25:42 2025 +0000 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 03 11:41:55 2025 -0600 |
tree | 2c2c62b064691532cc3f4721072d7ff3ab04533e | |
parent | ad00ddea1414958c6011ba821d268753f692fe37 [diff] |
x86: Add functions to convert between mtrr size and mask Rather than repeating the same code in several places, add some functions which can do the conversion. Use the cpu_phys_address_size() function to obtain the physical-address size, since it is more reliable with kvm, where the host CPU may have a different value from the emulation CPU. Signed-off-by: Simon Glass <sjg@chromium.org>