Fix, Take into account deprecated memory types

This commit is contained in:
red-prig 2022-12-19 20:28:44 +03:00
parent 5f0614d751
commit 697b5fed70
2 changed files with 12 additions and 3 deletions

View File

@ -401,9 +401,7 @@ end;
function _test_mtype(mtype:Integer):Boolean; inline;
begin
Case mtype of
SCE_KERNEL_WB_ONION ,
SCE_KERNEL_WC_GARLIC,
SCE_KERNEL_WB_GARLIC:Result:=True;
SCE_KERNEL_WB_ONION..SCE_KERNEL_WB_GARLIC:Result:=True;
else
Result:=False;
end;

View File

@ -30,6 +30,17 @@ const
SCE_KERNEL_WC_GARLIC = 3;
SCE_KERNEL_WB_GARLIC =10;
//deprecated
SCE_KERNEL_WB_ONION_NONVOLATILE = 1;
SCE_KERNEL_WC_GARLIC_VOLATILE = 2;
SCE_KERNEL_WC_GARLIC_NONVOLATILE = 3;
SCE_KERNEL_WT_ONION_VOLATILE = 4;
SCE_KERNEL_WT_ONION_NONVOLATILE = 5;
SCE_KERNEL_WP_ONION_VOLATILE = 6;
SCE_KERNEL_WP_ONION_NONVOLATILE = 7;
SCE_KERNEL_UC_GARLIC_VOLATILE = 8;
SCE_KERNEL_UC_GARLIC_NONVOLATILE = 9;
//mmap
PROT_NONE =$00; // no permissions
PROT_READ =$01; // pages can be read