X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/d15268ba6eadf89a38087995ff407f50418485fb..5b211a176c805745d48517eff99c4dd651f2da75:/lunaix-os/kernel/mm/LConfig diff --git a/lunaix-os/kernel/mm/LConfig b/lunaix-os/kernel/mm/LConfig index 8f8d4b9..c6502bd 100644 --- a/lunaix-os/kernel/mm/LConfig +++ b/lunaix-os/kernel/mm/LConfig @@ -10,15 +10,15 @@ def memory_subsystem(): @flag def pmalloc_method_simple() -> bool: - return pmalloc_method.val == "simple" + when (pmalloc_method is "simple") @flag def pmalloc_method_buddy() -> bool: - return pmalloc_method.val == "buddy" + when (pmalloc_method is "buddy") @flag def pmalloc_method_ncontig() -> bool: - return pmalloc_method.val == "ncontig" + when (pmalloc_method is "ncontig") @"Allocation policy" def pmalloc_method() -> "simple" | "buddy" | "ncontig": @@ -29,7 +29,7 @@ def memory_subsystem(): @"PMalloc Thresholds" def pmalloc_simple_po_thresholds(): - require(pmalloc_method_simple) + require (pmalloc_method_simple) @"Maximum cached order-0 free pages" def pmalloc_simple_max_po0() -> int: