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
refactor: use a more decent physical memory map
[lunaix-os.git]
/
lunaix-os
/
kernel
/
mm
/
cake.c
diff --git
a/lunaix-os/kernel/mm/cake.c
b/lunaix-os/kernel/mm/cake.c
index 64343031c9a25478857e96f63f6c83b9dd6168e7..0e8f3341c5b8a95a23e47ba7925015aa1d0ab8b5 100644
(file)
--- a/
lunaix-os/kernel/mm/cake.c
+++ b/
lunaix-os/kernel/mm/cake.c
@@
-32,7
+32,7
@@
__alloc_cake(unsigned int cake_pg)
if (!pa) {
return NULL;
}
- return vm
m_vmap(pa, cake_pg * PG_SIZE, PG_PREM_RW
);
+ return vm
ap(pa, cake_pg * PG_SIZE, PG_PREM_RW, 0
);
}
struct cake_s*