Remove grub_dl_unload_all. It's unnecessary and causes trouble
This commit is contained in:
parent
1e82303f1d
commit
89e07694dc
3 changed files with 0 additions and 20 deletions
|
@ -682,20 +682,3 @@ grub_dl_unload_unneeded (void)
|
||||||
p = p->next;
|
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--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -546,8 +546,6 @@ FUNCTION(grub_chainloader_real_boot)
|
||||||
pushl %edx
|
pushl %edx
|
||||||
pushl %eax
|
pushl %eax
|
||||||
|
|
||||||
call EXT_C(grub_dl_unload_all)
|
|
||||||
|
|
||||||
/* Turn off Gate A20 */
|
/* Turn off Gate A20 */
|
||||||
xorl %eax, %eax
|
xorl %eax, %eax
|
||||||
call EXT_C(grub_gate_a20)
|
call EXT_C(grub_gate_a20)
|
||||||
|
|
|
@ -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);
|
grub_dl_t grub_dl_load_core (void *addr, grub_size_t size);
|
||||||
int EXPORT_FUNC(grub_dl_unload) (grub_dl_t mod);
|
int EXPORT_FUNC(grub_dl_unload) (grub_dl_t mod);
|
||||||
void grub_dl_unload_unneeded (void);
|
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_ref) (grub_dl_t mod);
|
||||||
int EXPORT_FUNC(grub_dl_unref) (grub_dl_t mod);
|
int EXPORT_FUNC(grub_dl_unref) (grub_dl_t mod);
|
||||||
extern grub_dl_t EXPORT_VAR(grub_dl_head);
|
extern grub_dl_t EXPORT_VAR(grub_dl_head);
|
||||||
|
|
Loading…
Reference in a new issue