diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2021-11-25 09:39:53 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2022-01-17 13:43:34 +0000 |
commit | d2e423fc8d56b692c1f754da0fda686e726779a3 (patch) | |
tree | 305bb74b54a6502130fd73e9784a513e5c08a166 /src/device/oprom/yabel/io.c | |
parent | 15c9c78057f35c05af4ebf348b1f737baf3ef5c8 (diff) |
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>
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59661
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/device/oprom/yabel/io.c')
-rw-r--r-- | src/device/oprom/yabel/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c index 051a601569..2a4e6f86fd 100644 --- a/src/device/oprom/yabel/io.c +++ b/src/device/oprom/yabel/io.c @@ -103,7 +103,7 @@ read_io(void *addr, size_t sz) { 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 +125,7 @@ read_io(void *addr, size_t sz) 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: |