fix a bug in fat. fix bsd boot in the grub shell.

This commit is contained in:
okuji committed 1999-08-31 03:17:30 +00:00
1 parent 83b3d5eee0
commit 69be37a233
3 files changed
+28 -1

No files matched your search

+15
View File
@@ -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
View File
@@ -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)
{