From: Uwe Hermann <uwe@hermann-uwe.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Using GRUB2 with CoreBoot (formerly known as LinuxBIOS) 1/4: Find tables
Date: Wed, 16 Jan 2008 20:39:09 +0100 [thread overview]
Message-ID: <20080116193909.GA15445@greenwood> (raw)
In-Reply-To: <20080116134002.GA26468@thorin>
On Wed, Jan 16, 2008 at 02:40:02PM +0100, Robert Millan wrote:
> + auto int check_signature (grub_linuxbios_table_header_t);
> + int check_signature (grub_linuxbios_table_header_t table_header)
> + {
> + if (! grub_memcmp (table_header->signature, "LBIO", 4))
> + return 1;
> +
> + return 0;
> + }
> +
> + /* Assuming sizeof(*table_header) alignment. */
Maybe a more verbose comment here?
> + for (table_header = 0x500; table_header < 0x1000; table_header++)
> + if (check_signature (table_header))
> + goto signature_found;
> +
> + for (table_header = 0xf0000; table_header < 0x100000; table_header++)
> + if (check_signature (table_header))
> + goto signature_found;
> +
> + grub_fatal ("Could not find CoreBoot table\n");
"coreboot" please.
Uwe.
--
http://www.hermann-uwe.de | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
next prev parent reply other threads:[~2008-01-16 19:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 17:44 Using GRUB2 with CoreBoot (formerly known as LinuxBIOS) 1/4: Find tables Patrick Georgi
2008-01-12 18:18 ` Robert Millan
2008-01-15 18:05 ` Robert Millan
2008-01-15 18:47 ` Patrick Georgi
2008-01-16 13:40 ` Robert Millan
2008-01-16 19:39 ` Uwe Hermann [this message]
2008-01-16 21:19 ` Robert Millan
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=20080116193909.GA15445@greenwood \
--to=uwe@hermann-uwe.de \
--cc=grub-devel@gnu.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.