From 2b8c514095ac18bb2ba1a124b1e4d5e9314a30a2 Mon Sep 17 00:00:00 2001 From: okuji Date: Sat, 29 Apr 2000 16:30:13 +0000 Subject: [PATCH] update setup_func so that it uses SECTOR_BITS for the performance (is this better really?). --- ChangeLog | 5 +++++ stage2/builtins.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2680096e2..ca2412b51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-29 OKUJI Yoshinori + + * stage2/builtins.c (setup_func): Use SECTOR_BITS instead of + SECTOR_SIZE to compute BLOCKSIZE. + 2000-04-26 OKUJI Yoshinori * netboot/depca.c: Copied from Etherboot-4.6.0. diff --git a/stage2/builtins.c b/stage2/builtins.c index 785072b35..c56e30742 100644 --- a/stage2/builtins.c +++ b/stage2/builtins.c @@ -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);