feat: IO polling for file descriptor
[lunaix-os.git] / lunaix-os / kernel / mm / cake.c
index 64343031c9a25478857e96f63f6c83b9dd6168e7..2a70ab76d823f7d09d6d62cbc08bc6e70f70372b 100644 (file)
@@ -32,7 +32,7 @@ __alloc_cake(unsigned int cake_pg)
     if (!pa) {
         return NULL;
     }
-    return vmm_vmap(pa, cake_pg * PG_SIZE, PG_PREM_RW);
+    return vmap(pa, cake_pg * PG_SIZE, PG_PREM_RW, 0);
 }
 
 struct cake_s*
@@ -77,7 +77,7 @@ __init_pile(struct cake_pile* pile,
     unsigned int offset = sizeof(long);
 
     // 默认每块儿蛋糕对齐到地址总线宽度
-    if ((options & PILE_CACHELINE)) {
+    if ((options & PILE_ALIGN_CACHE)) {
         // 对齐到128字节缓存行大小,主要用于DMA
         offset = CACHE_LINE_SIZE;
     }