mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Introduce physical address type
Define phys_addr_t type for all architectures. v2: * Add comment on PAE for x86, pointed out by Blue. Signed-off-by: Andreas Färber <andreas.faerber@web.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@932 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Andreas Färber
parent
e9b37f6048
commit
70bbfcf6ce
@@ -16,6 +16,9 @@
|
|||||||
/* endianess */
|
/* endianess */
|
||||||
#include "autoconf.h"
|
#include "autoconf.h"
|
||||||
|
|
||||||
|
/* physical address */
|
||||||
|
typedef uint64_t phys_addr_t;
|
||||||
|
|
||||||
/* cell based types */
|
/* cell based types */
|
||||||
|
|
||||||
typedef long long cell;
|
typedef long long cell;
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
|
|
||||||
|
/* physical address */
|
||||||
|
typedef uint64_t phys_addr_t;
|
||||||
|
|
||||||
/* cell based types */
|
/* cell based types */
|
||||||
|
|
||||||
typedef int64_t cell;
|
typedef int64_t cell;
|
||||||
|
|||||||
@@ -30,6 +30,13 @@ typedef long intptr_t;
|
|||||||
/* endianess */
|
/* endianess */
|
||||||
#include "autoconf.h"
|
#include "autoconf.h"
|
||||||
|
|
||||||
|
/* physical address */
|
||||||
|
#if defined(__powerpc64__)
|
||||||
|
typedef uint64_t phys_addr_t;
|
||||||
|
#else
|
||||||
|
typedef uint32_t phys_addr_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* cell based types */
|
/* cell based types */
|
||||||
|
|
||||||
typedef int32_t cell;
|
typedef int32_t cell;
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ typedef long intptr_t;
|
|||||||
/* endianess */
|
/* endianess */
|
||||||
#include "autoconf.h"
|
#include "autoconf.h"
|
||||||
|
|
||||||
|
/* physical address: 36 bits */
|
||||||
|
typedef uint64_t phys_addr_t;
|
||||||
|
|
||||||
/* cell based types */
|
/* cell based types */
|
||||||
|
|
||||||
typedef int32_t cell;
|
typedef int32_t cell;
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ typedef long intptr_t;
|
|||||||
/* endianess */
|
/* endianess */
|
||||||
#include "autoconf.h"
|
#include "autoconf.h"
|
||||||
|
|
||||||
|
/* physical address */
|
||||||
|
typedef uint64_t phys_addr_t;
|
||||||
|
|
||||||
/* cell based types */
|
/* cell based types */
|
||||||
typedef long long cell;
|
typedef long long cell;
|
||||||
typedef unsigned long long ucell;
|
typedef unsigned long long ucell;
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
#include "autoconf.h"
|
#include "autoconf.h"
|
||||||
|
|
||||||
|
/* physical address: XXX theoretically 36 bits for PAE */
|
||||||
|
typedef uint32_t phys_addr_t;
|
||||||
|
|
||||||
/* cell based types */
|
/* cell based types */
|
||||||
|
|
||||||
typedef int32_t cell;
|
typedef int32_t cell;
|
||||||
|
|||||||
Reference in New Issue
Block a user