* 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:
Vladimir 'phcoder' Serbinenko 2011-12-15 19:39:41 +01:00
parent c476e6df16
commit 5ef5c51147
3 changed files with 14 additions and 3 deletions

View file

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