[OpenBIOS] [PATCH] ppc: Fix is_apple() for PReP
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Fri Mar 22 17:42:52 CET 2013
On 24/02/13 21:02, Andreas Färber wrote:
> It was returning true for ARCH_PREP although not an Apple device.
> Limit it to Old World and New World Macs.
>
> Signed-off-by: Andreas Färber<andreas.faerber at web.de>
> ---
> arch/ppc/qemu/init.c | 2 +-
> 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
>
> diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
> index a8fc320..8efbeeb 100644
> --- a/arch/ppc/qemu/init.c
> +++ b/arch/ppc/qemu/init.c
> @@ -76,7 +76,7 @@ enum {
>
> int is_apple(void)
> {
> - return 1;
> + return is_oldworld() || is_newworld();
> }
>
> int is_oldworld(void)
This looks reasonably sensible to me - are you planning to commit?
ATB,
Mark.
More information about the OpenBIOS
mailing list