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
-1
@@ -2751,7 +2751,7 @@ setup_func (char *arg, int flags)
|
||||
/* OK, check if the Stage 1.5 exists. */
|
||||
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_strcpy (config_file, stage2);
|
||||
|
||||
Reference in new issue
Block a user