git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update readme on build system
[lunaix-os.git]
/
lunaix-os
/
kernel
/
mm
/
LConfig
diff --git
a/lunaix-os/kernel/mm/LConfig
b/lunaix-os/kernel/mm/LConfig
index 8f8d4b9f9c8da1308f5f8cfe7352ffacdce64749..c6502bd08c56bfdacda39b3b07a5b4d4a032de7d 100644
(file)
--- 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:
@flag
def pmalloc_method_simple() -> bool:
- return pmalloc_method.val == "simple"
+ when (pmalloc_method is "simple")
@flag
def pmalloc_method_buddy() -> bool:
@flag
def pmalloc_method_buddy() -> bool:
- return pmalloc_method.val == "buddy"
+ when (pmalloc_method is "buddy")
@flag
def pmalloc_method_ncontig() -> bool:
@flag
def pmalloc_method_ncontig() -> bool:
- return pmalloc_method.val == "ncontig"
+ when (pmalloc_method is "ncontig")
@"Allocation policy"
def pmalloc_method() -> "simple" | "buddy" | "ncontig":
@"Allocation policy"
def pmalloc_method() -> "simple" | "buddy" | "ncontig":
@@
-29,7
+29,7
@@
def memory_subsystem():
@"PMalloc Thresholds"
def pmalloc_simple_po_thresholds():
@"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:
@"Maximum cached order-0 free pages"
def pmalloc_simple_max_po0() -> int: