Remove grub_dl_unload_all. It's unnecessary and causes trouble

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-25 21:19:45 +02:00
parent 1e82303f1d
commit 89e07694dc
3 changed files with 0 additions and 20 deletions

View file

@ -682,20 +682,3 @@ grub_dl_unload_unneeded (void)
p = p->next;
}
}
/* Unload all modules. */
void
grub_dl_unload_all (void)
{
while (grub_dl_head)
{
grub_dl_t p;
grub_dl_unload_unneeded ();
/* Force to decrement the ref count. This will purge pre-loaded
modules and manually inserted modules. */
for (p = grub_dl_head; p; p = p->next)
p->ref_count--;
}
}

View file

@ -546,8 +546,6 @@ FUNCTION(grub_chainloader_real_boot)
pushl %edx
pushl %eax
call EXT_C(grub_dl_unload_all)
/* Turn off Gate A20 */
xorl %eax, %eax
call EXT_C(grub_gate_a20)

View file

@ -101,7 +101,6 @@ grub_dl_t EXPORT_FUNC(grub_dl_load) (const char *name);
grub_dl_t grub_dl_load_core (void *addr, grub_size_t size);
int EXPORT_FUNC(grub_dl_unload) (grub_dl_t mod);
void grub_dl_unload_unneeded (void);
void grub_dl_unload_all (void);
int EXPORT_FUNC(grub_dl_ref) (grub_dl_t mod);
int EXPORT_FUNC(grub_dl_unref) (grub_dl_t mod);
extern grub_dl_t EXPORT_VAR(grub_dl_head);