Aaron Durbin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42829 )
Change subject: soc/amd/picasso/sb: Gate FCH AL2AHB clocks
......................................................................
Patch Set 6: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/42829/4/src/soc/amd/picasso/southbr...
File src/soc/amd/picasso/southbridge.c:
https://review.coreboot.org/c/coreboot/+/42829/4/src/soc/amd/picasso/southbr...
PS4, Line 339: al2ahb_val = read8((void *)(AL2AHB_BASE + AL2AHB_CONTROL_CLK_OFFSET));
Check the latest patch to make sure I did it right. […]
It's fine now. In short it's an issue of literals defaulting to ints in C. It's to handle lp64 (longs pointers are 64-bit) vs ilp32 (integers longs pointers are 32-bit). For forward pointing code uintptr_t is the size of a pointer for unsigned int. Therefore it will work regardless of pointer size.
UEFI likes to use UINTN for posix type uintptr_t from my recollection.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/42829
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbc144a8769f8ea440cdd560bab146bf5058cf9
Gerrit-Change-Number: 42829
Gerrit-PatchSet: 6
Gerrit-Owner: Matt Papageorge
matthewpapa07@gmail.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Marshall Dawson
marshalldawson3rd@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Mon, 06 Jul 2020 21:49:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Matt Papageorge
matthewpapa07@gmail.com
Comment-In-Reply-To: Aaron Durbin
adurbin@chromium.org
Gerrit-MessageType: comment