From 3937bd962b093609a80710f5b596d4a467fb34c3 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 22 Nov 2013 12:02:00 +0100 Subject: [PATCH] * include/grub/i386/pc/memory.h: Decrease GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase GRUB_MEMORY_MACHINE_PROT_STACK_SIZE. The binary doesn't change (checked). It's more to better reflect actual usage. --- ChangeLog | 8 ++++++++ include/grub/i386/pc/memory.h | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9e7a4b6b..4e74e3eb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2013-11-22 Vladimir Serbinenko + + * include/grub/i386/pc/memory.h: Decrease + GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase + GRUB_MEMORY_MACHINE_PROT_STACK_SIZE. + The binary doesn't change (checked). It's more to better reflect actual + usage. + 2013-11-22 Vladimir Serbinenko * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure diff --git a/include/grub/i386/pc/memory.h b/include/grub/i386/pc/memory.h index 401c837fa..095c6525d 100644 --- a/include/grub/i386/pc/memory.h +++ b/include/grub/i386/pc/memory.h @@ -34,13 +34,13 @@ /* The scratch buffer used in real mode code. */ #define GRUB_MEMORY_MACHINE_SCRATCH_ADDR 0x68000 #define GRUB_MEMORY_MACHINE_SCRATCH_SEG (GRUB_MEMORY_MACHINE_SCRATCH_ADDR >> 4) -#define GRUB_MEMORY_MACHINE_SCRATCH_SIZE 0x10000 +#define GRUB_MEMORY_MACHINE_SCRATCH_SIZE 0x9000 /* The real mode stack. */ #define GRUB_MEMORY_MACHINE_REAL_STACK (0x2000 - 0x10) /* The size of the protect mode stack. */ -#define GRUB_MEMORY_MACHINE_PROT_STACK_SIZE 0x8000 +#define GRUB_MEMORY_MACHINE_PROT_STACK_SIZE 0xf000 /* The protected mode stack. */ #define GRUB_MEMORY_MACHINE_PROT_STACK \