mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 00:29:23 +00:00
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
* stage2/bios.c (get_diskinfo): Clear out the structure DRP before calling get_diskinfo_int13_extensions, because the Ralf Brown's Interrupt List says that Dell machines using PhoenixBIOS 4.0 Release 6.0 fail, if DRP.FLAGS is not zero. Setting the entire structure to zero may be overkill, but it should be safe. * stage2/char_io.c [STAGE1_5] (grub_memset): Defined.
This commit is contained in:
1 parent
79ae0cd9e8
commit
4cd09c4b6a
3 files changed
+14
-1
No files matched your search
@@ -1,3 +1,13 @@
|
|||||||
|
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
||||||
|
|
||||||
|
* stage2/bios.c (get_diskinfo): Clear out the structure DRP
|
||||||
|
before calling get_diskinfo_int13_extensions, because the Ralf
|
||||||
|
Brown's Interrupt List says that Dell machines using PhoenixBIOS
|
||||||
|
4.0 Release 6.0 fail, if DRP.FLAGS is not zero. Setting the
|
||||||
|
entire structure to zero may be overkill, but it should be safe.
|
||||||
|
|
||||||
|
* stage2/char_io.c [STAGE1_5] (grub_memset): Defined.
|
||||||
|
|
||||||
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
||||||
|
|
||||||
From John Goerzen <jgoerzen@complete.org>:
|
From John Goerzen <jgoerzen@complete.org>:
|
||||||
|
|||||||
@@ -166,6 +166,9 @@ get_diskinfo (int drive, struct geometry *geometry)
|
|||||||
unsigned char dummy[16];
|
unsigned char dummy[16];
|
||||||
} __attribute__ ((packed)) drp;
|
} __attribute__ ((packed)) drp;
|
||||||
|
|
||||||
|
/* It is safe to clear out DRP. */
|
||||||
|
grub_memset (&drp, 0, sizeof (drp));
|
||||||
|
|
||||||
drp.size = sizeof (drp);
|
drp.size = sizeof (drp);
|
||||||
err = get_diskinfo_int13_extensions (drive, &drp);
|
err = get_diskinfo_int13_extensions (drive, &drp);
|
||||||
if (! err)
|
if (! err)
|
||||||
|
|||||||
+1
-1
@@ -1450,7 +1450,6 @@ grub_memmove (void *to, const void *from, int len)
|
|||||||
return errnum ? NULL : to;
|
return errnum ? NULL : to;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef STAGE1_5
|
|
||||||
void *
|
void *
|
||||||
grub_memset (void *start, int c, int len)
|
grub_memset (void *start, int c, int len)
|
||||||
{
|
{
|
||||||
@@ -1465,6 +1464,7 @@ grub_memset (void *start, int c, int len)
|
|||||||
return errnum ? NULL : start;
|
return errnum ? NULL : start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef STAGE1_5
|
||||||
char *
|
char *
|
||||||
grub_strcpy (char *dest, const char *src)
|
grub_strcpy (char *dest, const char *src)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user