From ffa1c9bd15768cbc5f176935e0e6d72e97c3e0ba Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sun, 30 Jun 2024 05:06:48 +0200 Subject: amd64-efi.make: Fix makefile: Add necessary macros and detect windows correctly. DebugOutput.hpp: Use default destructor for TerminalDevice, rename NUMBERS to cNumbers. NewFS.cxx/ProcessScheduler.hxx: Just code improvements here. Signed-off-by: Amlal EL Mahrouss --- Boot/amd64-efi.make | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Boot') diff --git a/Boot/amd64-efi.make b/Boot/amd64-efi.make index 7439ebf3..2bbe2a2c 100644 --- a/Boot/amd64-efi.make +++ b/Boot/amd64-efi.make @@ -12,12 +12,12 @@ ADD_FILE=touch COPY=cp HTTP_GET=wget -# Select this for UNIX distributions -ifneq ($(shell uname), CYGWIN_NT-10.0-19045) -EMU=qemu-system-x86_64 +# Select this for Windows. +ifneq ($(findstring CYGWIN_NT-10.0,$(shell uname)), ) +EMU=qemu-system-x86_64w.exe else # this for NT distributions -EMU=qemu-system-x86_64w.exe +EMU=qemu-system-x86_64 endif ifeq ($(NEWS_MODEL), ) @@ -50,7 +50,7 @@ REM_FLAG=-f FLAG_ASM=-f win64 FLAG_GNU=-fshort-wchar -D__EFI_x86_64__ -mno-red-zone -D__KERNEL__ -D__NEWBOOT__ \ -DEFI_FUNCTION_WRAPPER -I./ -I../Kernel -I./ -c -nostdlib -fno-rtti -fno-exceptions \ - -std=c++20 -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -D__BOOTLOADER__ -I./ + -std=c++20 -D__HAVE_MAHROUSS_APIS__ -D__NEWOS_AMD64__ -D__MAHROUSS__ -D__BOOTLOADER__ -I./ BOOT_LOADER=newosldr.exe KERNEL=newoskrnl.exe -- cgit v1.2.3