Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39810 )
Change subject: memranges: Change align attribute to be log2 of required alignment
......................................................................
Patch Set 7:
(3 comments)
https://review.coreboot.org/c/coreboot/+/39810/2/src/include/memrange.h
File src/include/memrange.h:
https://review.coreboot.org/c/coreboot/+/39810/2/src/include/memrange.h@29
PS2, Line 29: size_t align;
Valid point. I think it makes sense to switch to unsigned char.
Done
https://review.coreboot.org/c/coreboot/+/39810/2/src/include/memrange.h@116
PS2, Line 116: log2(4 * KiB)
It isn't immediately obvious, though. […]
Done
https://review.coreboot.org/c/coreboot/+/39810/5/src/lib/memrange.c
File src/lib/memrange.c:
https://review.coreboot.org/c/coreboot/+/39810/5/src/lib/memrange.c@236
PS5, Line 236: 1ULL << ranges->align
Worth adding a helper that spits this out instead of open coding?
Done
--
To view, visit
https://review.coreboot.org/c/coreboot/+/39810
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie4d3868cdff55b2c7908b9b3ccd5f30a5288e62f
Gerrit-Change-Number: 39810
Gerrit-PatchSet: 7
Gerrit-Owner: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Fri, 27 Mar 2020 19:02:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Furquan Shaikh
furquan@google.com
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Kyösti Mälkki
kyosti.malkki@gmail.com
Comment-In-Reply-To: Aaron Durbin
adurbin@chromium.org
Gerrit-MessageType: comment