[haiku-development] Re: [PATCH 1/1] Add Multiboot Support to the Stage2 loader.

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 10 Sep 2008 01:37:15 +0200 CEST

> On Tue, Sep 9, 2008 at 6:07 PM, François Revol <revol@xxxxxxx> wrote:
> > Actually it could be useful for places when one wants to have more
> > control over boot, like emulators which can bootstrap kernels like
> > qemu... it can also pass args. It could allow automatic testing of
> > the
> > same image with different boot options.
> >
>
> See, That's what I was thinking with my attempt to add arguments-
> I gave up only because I couldn't figure out an appropriate place to
> put it (and its required string parsing functions, of course)-
> start.c seemed to have too much of a minimalist air about it, but it
> felt like the best place.
> If anyone would like, I'd be glad to add cmdline support!

Well zbeos should have minimal str*(), are you sure it's needed ?
Once start.c has set up bss and called ctors it should be safe to call
them I think.
You can always just assign a global from start.c and use it later on.

François.

Other related posts: