All of lore.kernel.org
 help / color / mirror / Atom feed
* grub_dl_unload_all()
@ 2008-01-23 19:58 Robert Millan
  2008-01-24  8:57 ` grub_dl_unload_all() Yoshinori K. Okuji
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Millan @ 2008-01-23 19:58 UTC (permalink / raw)
  To: grub-devel


Is GRUB supposed to always call grub_dl_unload_all() when preparing to
jump into a loaded multiboot image?

My problem:

  - On i386-pc, multiboot2 loader calls grub_multiboot2_real_boot(), which
    in turn calls grub_dl_unload_all(), thereby unloading all modules (and
    I assume, calling all _fini() routines).

  - On powerpc-ieee1275, multiboot2 loader calls the entry right away, without
    unloading modules. In fact, it CANNOT unload them because it may have just
    overwritten them when loading the image to the arbitrary address it has
    requested.

  - On i386-ieee1275, the sanest choice was to follow powerpc-ieee1275 and
    claim the region that our payload image requests (see
    loader/powerpc/ieee1275/multiboot2.c).  However, this implies inability
    to unload all modules.

How important is it to unload all modules?  What do you suggest?  Do we fix
everything to unload all modules (is that even possible?)?  Do we unload all
modules on i386-pc "because we can" and not do this on ieee1275 platforms?

-- 
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 /.)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-24 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 19:58 grub_dl_unload_all() Robert Millan
2008-01-24  8:57 ` grub_dl_unload_all() Yoshinori K. Okuji
2008-01-24 11:47   ` grub_dl_unload_all() Robert Millan
2008-01-24 11:59     ` grub_dl_unload_all() Marco Gerards
2008-01-24 12:26       ` grub_dl_unload_all() Robert Millan
2008-01-24 12:48         ` grub_dl_unload_all() Robert Millan

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.