From 840cb9a4ea03a752599ec7152f888e9e4dd5deab Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Mon, 27 Aug 2018 10:28:27 +0000 Subject: [PATCH] Fixed function git-svn-id: svn://kolibrios.org@7326 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/KERNEL/kernel.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/programs/cmm/KERNEL/kernel.c b/programs/cmm/KERNEL/kernel.c index 5cf44b985c..6b57aa7557 100644 --- a/programs/cmm/KERNEL/kernel.c +++ b/programs/cmm/KERNEL/kernel.c @@ -5,8 +5,9 @@ #initallvar 0 #jumptomain FALSE -#startaddress 0x0000 - +#startaddress 0 + +#code32 TRUE char os_name[8] = {'M','E','N','U','E','T','0','1'}; dword os_version = 0x00000001; @@ -26,17 +27,19 @@ void ExitProcess() $int 0x40 } +segmentDisableFunction: dword eaxFunctionDestroy(){RETURN 0;} -eaxFunctionDestroyEnd: +segmentDisableFunctionEnd: void ____INIT____() { // Disable door kernel EAX = 81; - EBX = 81; - ECX = #eaxFunctionDestroy; - EDX = #eaxFunctionDestroyEnd-#eaxFunctionDestroy; + EBX = 81; // Self function + ECX = #eaxFunctionDestroy; // Function execute + EDX = #segmentDisableFunction; // Begin segment + ESI = #segmentDisableFunctionEnd; // End segment $int 0x40 ExitProcess();