[gPXE-devel] [PATCH v3][lkrn] add ramdisk support

Wu Fengguang fengguang.wu at intel.com
Thu Jun 3 03:32:55 EDT 2010


On Thu, Jun 03, 2010 at 03:27:00PM +0800, Stefan Hajnoczi wrote:
> On Thu, Jun 3, 2010 at 8:14 AM, Wu Fengguang <fengguang.wu at intel.com> wrote:
> > ..when install has returned, the gpxe relocation has done.
> > So we missed the chance to relocate to some place _outside of_ the
> > ramdisk region.
> >
> > Normally it's very unlikely that the small ramdisk script get
> > overwritten in gPXE relocation. So I can do this as long as you are OK
> > with it.
> 
> You are right.  We need a clean way to pass the off-limits region to relocate().
> 
> Generic code can't access lkrnprefix.S symbols but it should be
> possible to pass an (addr, size) pair or even a pointer to an array of
> (addr, size) pairs.

Yes! This is actually what I've been thinking: a little less
straightforward, however a more modular approach.

Thanks,
Fengguang


More information about the gPXE-devel mailing list