diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-26 20:01:37 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-26 20:01:37 +0100 |
| commit | ddb6c818256ad817ba8b5e93e7868571739ae49c (patch) | |
| tree | e5105de6ec9ff2e90528033f51e950fd4dac2f30 /Private/NewBoot/Source | |
| parent | ef334847f61125e610e719f8dc1580d7f07e6c1d (diff) | |
Kernel:HAL: getting IDT to work...
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/Source')
| -rw-r--r-- | Private/NewBoot/Source/BootMain.cxx | 6 | ||||
| -rw-r--r-- | Private/NewBoot/Source/makefile | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Private/NewBoot/Source/BootMain.cxx b/Private/NewBoot/Source/BootMain.cxx index 170a7215..165919ef 100644 --- a/Private/NewBoot/Source/BootMain.cxx +++ b/Private/NewBoot/Source/BootMain.cxx @@ -24,7 +24,7 @@ #define kBootReadSize \ (sizeof(DosHeader) + sizeof(ExecHeader) + sizeof(ExecOptionalHeader)) -EXTERN_C EFI_API void Main(HEL::HandoverInformationHeader* HIH); +EXTERN_C EFI_API void RuntimeMain(HEL::HandoverInformationHeader* HIH); EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, EfiSystemTable* SystemTable) { @@ -138,7 +138,9 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, handoverHdrPtr->f_Version = 0x1011; handoverHdrPtr->f_Bootloader = 0x11; // Installer - Main(handoverHdrPtr); + writer.Write(L"HCoreLdr: Jumping to HCore...\r\n"); + + RuntimeMain(handoverHdrPtr); } else { handoverHdrPtr->f_Magic = 0xFF55DD; diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile index 28efe7e5..7a8a555f 100644 --- a/Private/NewBoot/Source/makefile +++ b/Private/NewBoot/Source/makefile @@ -27,7 +27,7 @@ bootloader-amd64: .PHONY: run-efi-amd64 run-efi-amd64: - qemu-system-x86_64 -net none -smp 2 -m 4G -M q35 -bios OVMF.fd -drive file=fat:rw:CDROM,index=1,format=raw -d int + qemu-system-x86_64 -net none -smp 2 -m 8G -M q35 -bios OVMF.fd -drive file=fat:rw:CDROM,index=1,format=raw -d int .PHONY: download-edk download-edk: |
