Attention is currently required from: Arthur Heymans. Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/59661
to review the following change.
Change subject: oprom/yabel/io.c: Fix building for ENV_X86_64 ......................................................................
oprom/yabel/io.c: Fix building for ENV_X86_64
Unknown if yabel works for X86_64 but now it builds.
Change-Id: Iacdb9fde91a992b5010120f5824383ca4aebdd1a Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/device/oprom/yabel/io.c 1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/59661/1
diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c index 051a601..07d2fd1 100644 --- a/src/device/oprom/yabel/io.c +++ b/src/device/oprom/yabel/io.c @@ -32,6 +32,7 @@ * IBM Corporation - initial implementation *****************************************************************************/
+#include <stdint.h> #include <types.h> #include "compat/rtas.h" #include "compat/time.h" @@ -103,7 +104,7 @@ { unsigned int ret; /* since we are using inb instructions, we need the port number as 16bit value */ - u16 port = (u16)(u32) addr; + u16 port = (u16)(uintptr_t) addr;
switch (sz) { case 1: @@ -125,7 +126,7 @@ static int write_io(void *addr, unsigned int value, size_t sz) { - u16 port = (u16)(u32) addr; + u16 port = (u16)(uintptr_t) addr; switch (sz) { /* since we are using inb instructions, we need the port number as 16bit value */ case 1: