[OpenBIOS] [PATCH] ppc: add ROM node to device tree
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Fri May 22 10:58:19 CEST 2015
On 20/05/15 22:45, Cormac O'Brien wrote:
> This patch adds a ROM node to the PPC device tree as is required by Mac OS 9.
>
> Based on a patch by John Arbuckle <programmingkidx at gmail.com>
>
> Signed-off-by: Cormac O'Brien <i.am.cormac.obrien at gmail.com>
>
> ---
> arch/ppc/qemu/tree.fs | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/ppc/qemu/tree.fs b/arch/ppc/qemu/tree.fs
> index 1ed8383..47f800d 100644
> --- a/arch/ppc/qemu/tree.fs
> +++ b/arch/ppc/qemu/tree.fs
> @@ -42,6 +42,16 @@ new-device
> : close ;
> finish-device
>
> +new-device
> + " rom" device-name
> + h# ff800000 encode-int 0 encode-int encode+ " reg" property
> + 1 encode-int " #address-cells" property
> + h# ff800000 encode-int
> + h# 800000 encode-int encode+
> + h# ff800000 encode-int encode+
> + " ranges" property
> +finish-device
> +
> \ -------------------------------------------------------------
> \ /packages
> \ -------------------------------------------------------------
Yeah, I think I prefer this commit message as it's a lot more concise.
ATB,
Mark.
More information about the OpenBIOS
mailing list