From 0966bc375af6a407d2a034eb87b10cc40f645130 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Thu, 3 Nov 2022 13:34:01 -0400 Subject: [PATCH] Replace ZealBooter-Limine magic number signature with #define vals. --- src/Kernel/KStart32.ZC | 4 ++-- src/Kernel/KernelA.HH | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Kernel/KStart32.ZC b/src/Kernel/KStart32.ZC index 5d2ae18b..4f296a0d 100755 --- a/src/Kernel/KStart32.ZC +++ b/src/Kernel/KStart32.ZC @@ -101,8 +101,8 @@ CORE0_32BIT_INIT:: //Entry point for $LK,"BootRAM",A="MN:BootRAM"$. ALIGN 16, OC_NOP // Signature to find CORE0_32BIT_INIT - DU64 0xaa23c08ed10bd4d7; - DU64 0xf6ceba7d4b74179a; + DU64 ZEALBOOTER_LIMINE_SIGNATURE_1; + DU64 ZEALBOOTER_LIMINE_SIGNATURE_2; @@02: //Patch abs addresses diff --git a/src/Kernel/KernelA.HH b/src/Kernel/KernelA.HH index b146c159..2f22b54f 100755 --- a/src/Kernel/KernelA.HH +++ b/src/Kernel/KernelA.HH @@ -542,6 +542,9 @@ class CVideoInfo U16 height; }; +#define ZEALBOOTER_LIMINE_SIGNATURE_1 0xaa23c08ed10bd4d7; // See $LK+PU,"CORE0_32BIT_INIT",A="FF:::/Kernel/KStart32.ZC,JMP @@"$ +#define ZEALBOOTER_LIMINE_SIGNATURE_2 0xf6ceba7d4b74179a; // + #help_index "Boot" class CKernel {//Must match $LK,"OSStartUp",A="FF:::/Kernel/KStart16.ZC,MEM_BOOT_BASE"$