mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Don't make assumptions about device address size
Prefer phys_addr_t for physical addresses. Resort to uintptr_t where a conversion to pointer occurs, since the physical address may be larger (e.g., sparc32). v2: * Use phys_addr_t. Signed-off-by: Andreas Färber <andreas.faerber@web.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@933 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Andreas Färber
parent
70bbfcf6ce
commit
8356ea4eb9
@@ -1,7 +1,7 @@
|
||||
#include "adb_bus.h"
|
||||
|
||||
struct cuda_t {
|
||||
uint32_t base;
|
||||
phys_addr_t base;
|
||||
adb_bus_t *adb_bus;
|
||||
};
|
||||
typedef struct cuda_t cuda_t;
|
||||
@@ -14,4 +14,4 @@ enum {
|
||||
CHARDEV_LAST,
|
||||
};
|
||||
|
||||
cuda_t *cuda_init (const char *path, uint32_t base);
|
||||
cuda_t *cuda_init (const char *path, phys_addr_t base);
|
||||
|
||||
Reference in New Issue
Block a user