From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] a.out kernel loader
Date: Sun, 27 Jan 2008 20:41:35 +0100 [thread overview]
Message-ID: <20080127194135.GA7041@thorin> (raw)
In-Reply-To: <ca0f59980801271053s49b8dfbes356e6e496687759b@mail.gmail.com>
On Mon, Jan 28, 2008 at 02:53:14AM +0800, Bean wrote:
> Hi,
>
> This patch add support for a.out kernel, which includes the 4th loader
> of BSD system. For example, to start FreeBSD:
Cool!
How FreeBSD-specific is this? Will the same module apply to other a.out
binaries ? (I ask since you gave it a generic name)
> +++ b/loader/i386/pc/aout.c
How i386-specific is it? Can it possibly work for non-i386 objects in the
future?
> +/* a_mid */
> +#define MID_ZERO 0 /* unknown - implementation dependent */
> +#define MID_SUN010 1 /* sun 68010/68020 binary */
> +#define MID_SUN020 2 /* sun 68020-only binary */
> +#define MID_I386 134 /* i386 BSD binary */
> +#define MID_SPARC 138 /* sparc */
> +#define MID_HP200 200 /* hp200 (68010) BSD binary */
> +#define MID_HP300 300 /* hp300 (68020+68881) BSD binary */
> +#define MID_HPUX 0x20C /* hp200/300 HP-UX binary */
> +#define MID_HPUX800 0x20B /* hp800 HP-UX binary */
These aren't used through the code. Did you copy them from a standard
header or so?
> +static grub_err_t
> +grub_aout_boot (void)
> +{
> + grub_multiboot_real_boot (entry, 0);
Ugh :-)
Is there really anything desired from grub_multiboot_real_boot? (other than
grub_dl_unload_all and grub_stop_floppy)
I wonder if it makes sense to split grub_dl_unload_all/grub_stop_floppy out
of grub_multiboot_real_boot to make a generic "real_boot" function that
lives in kernel and is used by grub_multiboot_real_boot and directly by
modules like this one.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
next prev parent reply other threads:[~2008-01-27 19:43 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-27 18:53 [PATCH] a.out kernel loader Bean
2008-01-27 19:41 ` Robert Millan [this message]
2008-01-27 19:55 ` Bean
2008-01-27 20:06 ` Robert Millan
2008-01-27 20:10 ` Bean
2008-01-28 9:11 ` Robert Millan
2008-01-28 11:48 ` Bean
2008-01-28 14:37 ` walt
2008-01-28 14:42 ` Bean
2008-01-28 22:04 ` walt
2008-01-29 6:53 ` Bean
2008-01-30 12:24 ` walt
2008-01-30 12:42 ` Bean
2008-02-01 1:46 ` walt
2008-02-01 3:12 ` Bean
2008-01-29 7:11 ` jakllsch
2008-01-29 7:20 ` Bean
2008-01-29 18:11 ` jakllsch
2008-01-29 18:26 ` Bean
2008-01-29 8:56 ` Robert Millan
2008-01-29 8:48 ` Marco Gerards
2008-01-29 9:02 ` Bean
2008-01-29 9:14 ` Marco Gerards
2008-01-29 13:56 ` Bean
2008-01-29 14:21 ` Robert Millan
2008-01-29 14:37 ` Marco Gerards
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=20080127194135.GA7041@thorin \
--to=rmh@aybabtu.com \
--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.