All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Juan Quintela <quintela@trasno.org>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 2/2] multiboot: Limit number of multiboot modules
Date: Wed, 21 Oct 2009 11:29:28 +0200	[thread overview]
Message-ID: <4ADED478.5090108@redhat.com> (raw)
In-Reply-To: <m3aazl8y4m.fsf@neno.mitica>

Am 21.10.2009 01:05, schrieb Juan Quintela:
> Adam Lackorzynski <adam@os.inf.tu-dresden.de> wrote:
> 
> Hi
> 
>> +enum {
>> +    /* Multiboot info */
>> +    MBI_FLAGS       = 0,
>> +    MBI_MEM_LOWER   = 4,
>> +    MBI_MEM_UPPER   = 8,
>> +    MBI_BOOT_DEVICE = 12,
>> +    MBI_CMDLINE     = 16,
>> +    MBI_MODS_COUNT  = 20,
>> +    MBI_MODS_ADDR   = 24,
>> +    MBI_MMAP_ADDR   = 48,
>> +
>> +    MBI_SIZE        = 88,
>> +
>> +    /* Multiboot modules */
>> +    MB_MOD_START    = 0,
>> +    MB_MOD_END      = 4,
>> +    MB_MOD_CMDLINE  = 8,
>> +
>> +    MB_MOD_SIZE     = 16,
>> +
>> +    /* Region offsets */
>> +    ADDR_E820_MAP = MULTIBOOT_STRUCT_ADDR + 0,
>> +    ADDR_MBI      = ADDR_E820_MAP + 0x500,
>> +
>> +    /* Multiboot flags */
>> +    MULTIBOOT_FLAGS_MEMORY      = 1 << 0,
>> +    MULTIBOOT_FLAGS_BOOT_DEVICE = 1 << 1,
>> +    MULTIBOOT_FLAGS_CMDLINE     = 1 << 2,
>> +    MULTIBOOT_FLAGS_MODULES     = 1 << 3,
>> +    MULTIBOOT_FLAGS_MMAP        = 1 << 6,
>> +};
> 
> Why do you use a single enum, without name, and repeating the values?
> I think that using more than one enum is better here.

Right, this looks a bit strange even though it's correct. Otherwise the
new patch looks okay and I'd suggest to submit it for inclusion.

Kevin

  parent reply	other threads:[~2009-10-21  9:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-11 13:48 [Qemu-devel] [PATCH 1/2] multiboot: Fix cmdline of modules adam
2009-10-11 13:48 ` [Qemu-devel] [PATCH 2/2] multiboot: Limit number of multiboot modules adam
2009-10-12 10:43   ` Kevin Wolf
2009-10-12 16:40     ` Adam Lackorzynski
2009-10-14 16:11     ` Adam Lackorzynski
2009-10-19  8:30       ` Kevin Wolf
2009-10-20 18:22         ` Adam Lackorzynski
     [not found]           ` <m3aazl8y4m.fsf@neno.mitica>
2009-10-21  9:29             ` Kevin Wolf [this message]
2009-10-12 10:28 ` [Qemu-devel] [PATCH 1/2] multiboot: Fix cmdline of modules Kevin Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ADED478.5090108@redhat.com \
    --to=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@trasno.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.