mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
ppc: Add RTAS rtas-version property
The CHRP 1.0 spec defines it as 1, which matches the IBM JS20. Macs appear to have it as 0x41 though. v2: * Authentically set it to 0x41 for Apple machines. Signed-off-by: Andreas Färber <andreas.faerber@web.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@937 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Andreas Färber
parent
8d8e29fce6
commit
b0158732da
@@ -764,6 +764,7 @@ arch_of_init( void )
|
|||||||
while (size < (unsigned long)of_rtas_end - (unsigned long)of_rtas_start)
|
while (size < (unsigned long)of_rtas_end - (unsigned long)of_rtas_start)
|
||||||
size *= 2;
|
size *= 2;
|
||||||
set_property(ph, "rtas-size", (char*)&size, sizeof(size));
|
set_property(ph, "rtas-size", (char*)&size, sizeof(size));
|
||||||
|
set_int_property(ph, "rtas-version", is_apple() ? 0x41 : 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user