Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4418 → Rev 4417

/kernel/trunk/core/memory.inc
1253,7 → 1253,22
cmp edx, OS_BASE
jae .fail
 
stdcall load_pe_driver, ecx, edx
mov edi, edx
stdcall load_PE, ecx
mov esi, eax
test eax, eax
jz @F
 
push edi
push DRV_ENTRY
call eax
add esp, 8
test eax, eax
jz @F
 
mov [eax+SRV.entry], esi
 
@@:
mov [esp+32], eax
ret
.22:
1333,8 → 1348,7
 
 
align 4
proc load_pe_driver stdcall, file:dword, cmdline:dword
push esi
proc load_pe_driver stdcall, file:dword
 
stdcall load_PE, [file]
test eax, eax
1341,24 → 1355,19
jz .fail
 
mov esi, eax
push [cmdline]
push DRV_ENTRY
call eax
pop ecx
pop ecx
stdcall eax, DRV_ENTRY
test eax, eax
jz .fail
 
mov [eax+SRV.entry], esi
pop esi
ret
 
.fail:
xor eax, eax
pop esi
ret
endp
 
 
align 4
proc init_mtrr
 
1406,9 → 1415,9
xor eax, eax
xor edx, edx
@@:
wrmsr
inc ecx
wrmsr
cmp ecx, 0x20F
cmp ecx, 0x210
jb @b
; enable MTRRs
pop eax