From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub_dl_unload_all()
Date: Thu, 24 Jan 2008 13:48:05 +0100 [thread overview]
Message-ID: <20080124124805.GI2249@thorin> (raw)
In-Reply-To: <20080124122647.GD2249@thorin>
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
On Thu, Jan 24, 2008 at 01:26:47PM +0100, Robert Millan wrote:
>
> I had preliminar (working!) code to implement this, but it's a hack. We really
> need to think this over first, as it might imply some redesign of the memory
> manager, etc.
In the meantime what do you think of doing the same powerpc does?
--
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 /.)
[-- Attachment #2: module_unload.diff --]
[-- Type: text/x-diff, Size: 1055 bytes --]
* kern/i386/loader.S (grub_multiboot2_real_boot)
[GRUB_MACHINE_IEEE1275]: Copy `grub_ieee1275_entry_fn' handler to %edx.
Avoid calling grub_dl_unload_all() or grub_stop_floppy(), since
grub_dl_unload_all() is not usable at this point.
diff -ur grub2/kern/i386/loader.S tmp/kern/i386/loader.S
--- grub2/kern/i386/loader.S 2008-01-05 13:14:05.000000000 +0100
+++ tmp/kern/i386/loader.S 2008-01-23 21:12:14.000000000 +0100
@@ -16,6 +16,7 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <grub/machine/machine.h>
/*
* Note: These functions defined in this file may be called from C.
@@ -151,9 +152,13 @@
/* Move the address of the multiboot information structure to ebx. */
movl %edx,%ebx
+#ifdef GRUB_MACHINE_IEEE1275
+ movl EXT_C(grub_ieee1275_entry_fn), %edx
+#else
/* Unload all modules and stop the floppy driver. */
call EXT_C(grub_dl_unload_all)
call EXT_C(grub_stop_floppy)
+#endif
/* Interrupts should be disabled. */
cli
prev parent reply other threads:[~2008-01-24 12:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Robert Millan [this message]
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=20080124124805.GI2249@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.