From aac6dd5d13f4dc991fd3a6d9482f87ba1ea22a53 Mon Sep 17 00:00:00 2001 From: Justin Moore Date: Fri, 15 Mar 2024 13:26:56 -0500 Subject: [PATCH] Bump `BIOSROMSZ` to 4M to accommodate OVMF (#284) OVMF is 4 megabytes by default, so in order to avoid customizing their build process we'll want to accommodate a 4M BIOS in Bochs. --- bochs/memory/memory-bochs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/memory/memory-bochs.h b/bochs/memory/memory-bochs.h index 75e4a9a3e..df3206d14 100644 --- a/bochs/memory/memory-bochs.h +++ b/bochs/memory/memory-bochs.h @@ -36,7 +36,7 @@ class BX_CPU_C; // 512K BIOS ROM @0xfff80000 -const Bit32u BIOSROMSZ = (1 << 21); // 2M BIOS ROM @0xffe00000, must be a power of 2 +const Bit32u BIOSROMSZ = (1 << 22); // 4M BIOS ROM @0xffc00000, must be a power of 2 const Bit32u EXROMSIZE = (0x20000); // ROMs 0xc0000-0xdffff (area 0xe0000-0xfffff=bios mapped) const Bit32u BIOS_MASK = BIOSROMSZ-1;