mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
update setup_func so that it uses SECTOR_BITS for the performance (is this better really?).
This commit is contained in:
1 parent
310b41da89
commit
2b8c514095
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2000-04-29 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
|
* stage2/builtins.c (setup_func): Use SECTOR_BITS instead of
|
||||||
|
SECTOR_SIZE to compute BLOCKSIZE.
|
||||||
|
|
||||||
2000-04-26 OKUJI Yoshinori <okuji@gnu.org>
|
2000-04-26 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
* netboot/depca.c: Copied from Etherboot-4.6.0.
|
* netboot/depca.c: Copied from Etherboot-4.6.0.
|
||||||
|
|||||||
+1
-1
@@ -2751,7 +2751,7 @@ setup_func (char *arg, int flags)
|
|||||||
/* OK, check if the Stage 1.5 exists. */
|
/* OK, check if the Stage 1.5 exists. */
|
||||||
if (grub_open (stage1_5_map[i].name))
|
if (grub_open (stage1_5_map[i].name))
|
||||||
{
|
{
|
||||||
int blocksize = (filemax + SECTOR_SIZE - 1) / SECTOR_SIZE;
|
int blocksize = (filemax + SECTOR_SIZE - 1) >> SECTOR_BITS;
|
||||||
|
|
||||||
grub_close ();
|
grub_close ();
|
||||||
grub_strcpy (config_file, stage2);
|
grub_strcpy (config_file, stage2);
|
||||||
|
|||||||
Reference in new issue
Block a user