From 5f6549b7d46118ba416faa170ff088d98c9144f0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 10 Jul 2024 01:13:08 +0200 Subject: MHR-36: See below. - Implement MSR functions has_msr, get_msr, set_msr. - Moved SMP interrupt to interrupt 34 in AMD64. - Fix syntax error in STB.hxx. Signed-off-by: Amlal El Mahrouss --- Boot/BootKit/STB.hxx | 4 +++- Boot/Sources/HEL/AMD64/BootMain.cxx | 3 +-- Boot/amd64-efi.make | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'Boot') diff --git a/Boot/BootKit/STB.hxx b/Boot/BootKit/STB.hxx index b94572d7..6e9b8067 100644 --- a/Boot/BootKit/STB.hxx +++ b/Boot/BootKit/STB.hxx @@ -18,8 +18,10 @@ #define STBI_ASSERT(x) MUST_PASS(x) #define STBI_MALLOC(x) Kernel::ke_new_ke_heap(x, true, true) -#define STBI_REALLOC(p, x) Kernel::ke_update_ke_heap(p, x); +#define STBI_REALLOC(p, x) Kernel::ke_realloc_ke_heap(p, x); #define STBI_FREE(x) Kernel::ke_delete_ke_heap(x) #define STB_IMAGE_IMPLEMENTATION 1 +#include + #include diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 928bc5de..ce4074b2 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -16,10 +16,9 @@ #include #include #include -#include #include -#include ke_realloc_ke_heap +#include #include /// make the compiler shut up. diff --git a/Boot/amd64-efi.make b/Boot/amd64-efi.make index 1ce6e295..294bfb9e 100644 --- a/Boot/amd64-efi.make +++ b/Boot/amd64-efi.make @@ -29,7 +29,7 @@ IMG=epm-master-1.img IMG_2=epm-slave.img IMG_3=epm-master-2.img -EMU_FLAGS=-net none -m 4G -M q35 -d int \ +EMU_FLAGS=-net none -smp 2 -m 4G -M q35 -serial stdio \ -bios $(BIOS) -device piix3-ide,id=ide \ -drive id=disk,file=$(IMG),format=raw,if=none \ -device ide-hd,drive=disk,bus=ide.0 -drive \ -- cgit v1.2.3