* util/grub-mkimage.c (generate_image): Decrease the higher limit
because of stack. * util/grub-setup.c (setup): Don't add redundancy past the higher load limit.
This commit is contained in:
parent
c476e6df16
commit
5ef5c51147
3 changed files with 14 additions and 3 deletions
|
@ -412,6 +412,10 @@ setup (const char *dir,
|
|||
|
||||
if (nsec > 2 * core_sectors)
|
||||
nsec = 2 * core_sectors;
|
||||
if (nsec > ((0x78000 - GRUB_KERNEL_I386_PC_LINK_ADDR)
|
||||
>> GRUB_DISK_SECTOR_BITS))
|
||||
nsec = ((0x78000 - GRUB_KERNEL_I386_PC_LINK_ADDR)
|
||||
>> GRUB_DISK_SECTOR_BITS);
|
||||
|
||||
/* Clean out the blocklists. */
|
||||
block = first_block;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue