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
feat: IO polling for file descriptor
[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..2a70ab76d823f7d09d6d62cbc08bc6e70f70372b 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;
}
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*
}
struct cake_s*
@@
-77,7
+77,7
@@
__init_pile(struct cake_pile* pile,
unsigned int offset = sizeof(long);
// 默认每块儿蛋糕对齐到地址总线宽度
unsigned int offset = sizeof(long);
// 默认每块儿蛋糕对齐到地址总线宽度
- if ((options & PILE_
CACHELIN
E)) {
+ if ((options & PILE_
ALIGN_CACH
E)) {
// 对齐到128字节缓存行大小,主要用于DMA
offset = CACHE_LINE_SIZE;
}
// 对齐到128字节缓存行大小,主要用于DMA
offset = CACHE_LINE_SIZE;
}