mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
powerpc/boot: Define typedef ihandle as u32
This makes ihandle 64bit friendly. Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
034e55e6c2
commit
6413010936
@ -2,7 +2,7 @@
|
|||||||
#define _PPC_BOOT_OF_H_
|
#define _PPC_BOOT_OF_H_
|
||||||
|
|
||||||
typedef void *phandle;
|
typedef void *phandle;
|
||||||
typedef void *ihandle;
|
typedef u32 ihandle;
|
||||||
|
|
||||||
void of_init(void *promptr);
|
void of_init(void *promptr);
|
||||||
int of_call_prom(const char *service, int nargs, int nret, ...);
|
int of_call_prom(const char *service, int nargs, int nret, ...);
|
||||||
|
@ -106,7 +106,7 @@ static int string_match(const char *s1, const char *s2)
|
|||||||
*/
|
*/
|
||||||
static int need_map = -1;
|
static int need_map = -1;
|
||||||
static ihandle chosen_mmu;
|
static ihandle chosen_mmu;
|
||||||
static phandle memory;
|
static ihandle memory;
|
||||||
|
|
||||||
static int check_of_version(void)
|
static int check_of_version(void)
|
||||||
{
|
{
|
||||||
@ -135,10 +135,10 @@ static int check_of_version(void)
|
|||||||
printf("no mmu\n");
|
printf("no mmu\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
memory = (ihandle) of_call_prom("open", 1, 1, "/memory");
|
memory = of_call_prom("open", 1, 1, "/memory");
|
||||||
if (memory == (ihandle) -1) {
|
if (memory == PROM_ERROR) {
|
||||||
memory = (ihandle) of_call_prom("open", 1, 1, "/memory@0");
|
memory = of_call_prom("open", 1, 1, "/memory@0");
|
||||||
if (memory == (ihandle) -1) {
|
if (memory == PROM_ERROR) {
|
||||||
printf("no memory node\n");
|
printf("no memory node\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user