diff options
author | Furquan Shaikh <furquan@google.com> | 2020-03-24 14:56:38 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-30 08:44:53 +0000 |
commit | 1908340b6903a41750226db90d6dbd39eb527c99 (patch) | |
tree | f88dc4be483f866919c6df2df5ff058ec4cebbe1 /src/mainboard | |
parent | f79f8b4e33a4da257dfacce0eab582b4638791fc (diff) |
memranges: Change align attribute to be log2 of required alignment
This change updates the align attribute of memranges to be represented
as log2 of the required alignment. This makes it consistent with how
alignment is stored in struct resource as well.
Additionally, since memranges only allow power of 2 alignments, this
change allows getting rid of checks at runtime and hence failure cases
for non-power of 2 alignments.
This change also updates the type of align to be unsigned char.
BUG=b:149186922
Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Ie4d3868cdff55b2c7908b9b3ccd5f30a5288e62f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39810
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard')
0 files changed, 0 insertions, 0 deletions