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>
This commit is contained in:
parent
15c9c78057
commit
d2e423fc8d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue