x86: reverse FW_CFG_MAX_ENTRY and FW_CFG_MAX_RAM
PATCH 1/1 x86: reverse FW_CFG_MAX_ENTRY and FW_CFG_MAX_RAM
FW_CFG_MAX_ENTRY should obviously be the last entry.
--- lib/x86/fwcfg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/x86/fwcfg.h +2 -2
@@ -20,8 +20,8 @@#define FW_CFG_NUMA 0x0d#define FW_CFG_BOOT_MENU 0x0e#define FW_CFG_MAX_CPUS 0x0f -#define FW_CFG_MAX_ENTRY 0x10 -#define FW_CFG_MAX_RAM 0x11 +#define FW_CFG_MAX_RAM 0x10 +#define FW_CFG_MAX_ENTRY 0x11#define FW_CFG_WRITE_CHANNEL 0x4000#define FW_CFG_ARCH_LOCAL 0x8000
Signature · 1 line
2.25.1
Quoted 12 lines · Nadav Amit
FW_CFG_MAX_ENTRYshould obviously be the last entry.Signed-off-by Nadav Amit <[email protected]>--- lib/x86/fwcfg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)lib/x86/fwcfg.h +0
-0
lib/x86/fwcfg.h line 24
Quoted 7 lines
lib/x86/fwcfg.h +2
-2@@ -20,8 +20,8 @@#define FW_CFG_NUMA 0x0d#define FW_CFG_BOOT_MENU 0x0e#define FW_CFG_MAX_CPUS 0x0f -#define FW_CFG_MAX_ENTRY 0x10 -#define FW_CFG_MAX_RAM 0x11 +#define FW_CFG_MAX_RAM 0x10 +#define FW_CFG_MAX_ENTRY 0x11
That should hopefully also fix the problem with Clang that I've just seen:
https://gitlab.com/huth/kvm-unit-tests/-/jobs/635782173#L1372
Quoted 25 lines · Thomas Huth
Quoted 12 lines · Nadav Amit
FW_CFG_MAX_ENTRYshould obviously be the last entry.Signed-off-by Nadav Amit <[email protected]>---
lib/x86/fwcfg.h| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)lib/x86/fwcfg.h +0
-0lib/x86/fwcfg.h line 24
Quoted 7 lines
lib/x86/fwcfg.h +2
-2@@ -20,8 +20,8 @@#define FW_CFG_NUMA 0x0d#define FW_CFG_BOOT_MENU 0x0e#define FW_CFG_MAX_CPUS 0x0f -#define FW_CFG_MAX_ENTRY 0x10 -#define FW_CFG_MAX_RAM 0x11 +#define FW_CFG_MAX_RAM 0x10 +#define FW_CFG_MAX_ENTRY 0x11That should hopefully also fix the problem with Clang that I've just seen:
Quoted 3 lines
https://gitlab.com/huth/kvm-unit-tests/-/jobs/635782173#L1372
Reviewed-by Thomas Huth <[email protected]>
Indeed. Sorry for that. It happened since I cut some corners due to the long cycles of rebooting and testing bare-metal machine (bad excuse).
Quoted 12 lines · Nadav Amit
FW_CFG_MAX_ENTRYshould obviously be the last entry.Signed-off-by Nadav Amit <[email protected]>--- lib/x86/fwcfg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)lib/x86/fwcfg.h +0
-0
lib/x86/fwcfg.h line 27
Quoted 10 lines
lib/x86/fwcfg.h +2
-2@@ -20,8 +20,8 @@#define FW_CFG_NUMA 0x0d#define FW_CFG_BOOT_MENU 0x0e#define FW_CFG_MAX_CPUS 0x0f -#define FW_CFG_MAX_ENTRY 0x10 -#define FW_CFG_MAX_RAM 0x11 +#define FW_CFG_MAX_RAM 0x10 +#define FW_CFG_MAX_ENTRY 0x11#define FW_CFG_WRITE_CHANNEL 0x4000#define FW_CFG_ARCH_LOCAL 0x8000