From 8a4074b888326d192f42af737b15b9e0c26f374c Mon Sep 17 00:00:00 2001 From: kieron Date: Tue, 16 May 2017 12:17:45 +0000 Subject: [PATCH] N/A git-svn-id: https://spexeah.com:8443/svn/Asuro@20 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c --- src/kernel.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kernel.pas b/src/kernel.pas index 6873868c..03d6b745 100644 --- a/src/kernel.pas +++ b/src/kernel.pas @@ -17,12 +17,16 @@ implementation procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: DWORD); stdcall; [public, alias: 'kmain']; var c : byte; + mbi : Pmultiboot_info_t; + mbm : DWORD; begin + mbi:= mbinfo; + mbm:= mbmagic; gdt.init(); console.init(); console.writestringln('Booting Asuro...'); - if (mbmagic <> MULTIBOOT_BOOTLOADER_MAGIC) then begin + if (mbm <> MULTIBOOT_BOOTLOADER_MAGIC) then begin console.setdefaultattribute(console.combinecolors(Red, Black)); console.writestringln('Multiboot Compliant Boot-Loader Needed!'); console.writestringln('HALTING');