Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7325 → Rev 7326

/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,8 → 27,9
$int 0x40
}
 
segmentDisableFunction:
dword eaxFunctionDestroy(){RETURN 0;}
eaxFunctionDestroyEnd:
segmentDisableFunctionEnd:
 
void ____INIT____()
{
34,9 → 36,10
 
// 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();