qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 1/2] hw/loader: Support ramdisk with u-boot h


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v3 1/2] hw/loader: Support ramdisk with u-boot header
Date: Fri, 19 Jul 2013 13:04:20 +0100

On 8 July 2013 23:40, Soren Brinkmann <address@hidden> wrote:
> +
> +        if (ep) {
> +            *ep = hdr->ih_ep;
> +        }

(Allowing ep to be NULL for IH_TYPE_KERNEL is new behaviour,
but it makes sense for consistency with the other pointer
argument handling.)

> +
> +        /* TODO: Check CPU type.  */
> +        if (is_linux) {
> +            if (hdr->ih_os == IH_OS_LINUX) {
> +                *is_linux = 1;
> +            } else {
> +                *is_linux = 0;
> +            }
> +        }
> +
> +        break;
> +    case IH_TYPE_RAMDISK:
> +        address = *loadaddr;

This is inconsistent -- for IH_TYPE_KERNEL we accept
a NULL loadaddr, but for IH_TYPE_RAMDISK we don't.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]