mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 23:59:22 +00:00
fix a bug in fat. fix bsd boot in the grub shell.
This commit is contained in:
1 parent
83b3d5eee0
commit
69be37a233
3 files changed
+28
-1
No files matched your search
@@ -523,6 +523,17 @@ load_initrd (char *initrd)
|
||||
}
|
||||
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
/* Dummy function to fake the *BSD boot. */
|
||||
static void
|
||||
bsd_boot_entry (int flags, int bootdev, int sym_start, int sym_end,
|
||||
int mem_upper, int mem_lower)
|
||||
{
|
||||
stop ();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* All "*_boot" commands depend on the images being loaded into memory
|
||||
* correctly, the variables in this file being set up correctly, and
|
||||
@@ -538,7 +549,11 @@ bsd_boot (int type, int bootdev, char *arg)
|
||||
int clval = 0, i;
|
||||
struct bootinfo bi;
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
entry_addr = (entry_func) bsd_boot_entry;
|
||||
#else
|
||||
stop_floppy ();
|
||||
#endif
|
||||
|
||||
while (*(++arg) && *arg != ' ');
|
||||
str = arg;
|
||||
|
||||
+1
-1
@@ -124,7 +124,7 @@ fat_create_blocklist (int first_fat_entry)
|
||||
}
|
||||
|
||||
first_fat_entry
|
||||
= *((unsigned long *) (FAT_BUF + (new_mapblock - mapblock)));
|
||||
= *((unsigned short *) (FAT_BUF + (new_mapblock - mapblock)));
|
||||
|
||||
if (fat_size == 3)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user