mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
Remove grub_dl_unload_all. It's unnecessary and causes trouble
This commit is contained in:
1 parent
1e82303f1d
commit
89e07694dc
3 files changed
-20
No files matched your search
@@ -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--;
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user