From a293927d337cf3d9eade148362a8b9d1d66370c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 30 Oct 2014 20:22:57 +0000 Subject: [PATCH] =?utf8?q?[FREELDR]=C2=A0Move=20down=20the=20requirement?= =?utf8?q?=20of=20highest=20usable=20address?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes PXE boot in QEMU, where highest usable address is 0x9c400. svn path=/trunk/; revision=65127 --- reactos/boot/freeldr/freeldr/include/arch/pc/x86common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/include/arch/pc/x86common.h b/reactos/boot/freeldr/freeldr/include/arch/pc/x86common.h index 325c1b233a6..ffccba3e544 100644 --- a/reactos/boot/freeldr/freeldr/include/arch/pc/x86common.h +++ b/reactos/boot/freeldr/freeldr/include/arch/pc/x86common.h @@ -17,14 +17,14 @@ #define FREELDR_BASE HEX(F800) #define FREELDR_PE_BASE HEX(10000) #define DISKREADBUFFER HEX(8E000) /* Buffer to store data read in from the disk via the BIOS */ -#define MEMORY_MARGIN HEX(9E000) /* Highest usable address */ +#define MEMORY_MARGIN HEX(9C000) /* Highest usable address */ /* 9F000- 9FFFF is reserved for the EBDA */ -#define DISKREADBUFFER_SIZE HEX(10000) #define BIOSCALLBUFSEGMENT (BIOSCALLBUFFER/16) /* Buffer to store temporary data for any Int386() call */ #define BIOSCALLBUFOFFSET HEX(0000) /* Buffer to store temporary data for any Int386() call */ #define BIOSCALLBUFSIZE PAGE_SIZE /* max is sizeof(VESA_SVGA_INFO) = 512 */ #define MAX_FREELDR_PE_SIZE (DISKREADBUFFER - FREELDR_PE_BASE) +#define DISKREADBUFFER_SIZE (MEMORY_MARGIN - DISKREADBUFFER) /* These addresses specify the realmode "BSS section" layout */ #define BSS_RealModeEntry (BSS_START + 0) -- 2.17.1