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:
2017-11-29 22:03:58 +00:00
parent 16d9a4a4bc
commit 09684c0db9
12 changed files with 78 additions and 68 deletions

View File

@@ -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

View 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