forked from KolibriOS/kolibrios
Synchronize memmap.inc and const.inc, replace hardcoded numbers with macros.
git-svn-id: svn://kolibrios.org@7122 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -476,7 +476,7 @@ proc load_file stdcall, file_name:dword
|
||||
jne .cleanup
|
||||
|
||||
mov eax, [file]
|
||||
cmp dword [eax], 0x4B43504B
|
||||
cmp dword [eax], 'KPCK'
|
||||
jne .exit
|
||||
mov ebx, [eax+4]
|
||||
mov [file_size], ebx
|
||||
@@ -583,7 +583,7 @@ proc load_file_umode stdcall, file_name:dword
|
||||
jne .err_2
|
||||
|
||||
mov eax, [km_file]
|
||||
cmp dword [eax], 0x4B43504B ; check kpack signature
|
||||
cmp dword [eax], 'KPCK' ; check kpack signature
|
||||
jne .raw_file
|
||||
|
||||
mov ebx, [eax+4] ;get real size of file
|
||||
|
@@ -1336,7 +1336,7 @@ endp
|
||||
|
||||
align 4
|
||||
proc print_mem
|
||||
mov edi, BOOT_VAR + 0x9104
|
||||
mov edi, BOOT_VAR + BOOT_MEMMAP_BLOCKS
|
||||
mov ecx, [edi-4]
|
||||
test ecx, ecx
|
||||
jz .done
|
||||
|
Reference in New Issue
Block a user