update setup_func so that it uses SECTOR_BITS for the performance (is this better really?).

This commit is contained in:
okuji 2000-04-29 16:30:13 +00:00
parent 310b41da89
commit 2b8c514095
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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);