A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git] / lunaix-os / hal / rng / rngx86.c
index 0b8a586cd7e057228c2965d4b23ec55f1005577d..b1087406fb3fb49446cfaa3543d5a24ee3e70aa1 100644 (file)
@@ -1,5 +1,5 @@
 #include <lunaix/device.h>
-#include <lunaix/mm/page.h>
+#include <lunaix/mm/pagetable.h>
 
 #include <klibc/string.h>
 
@@ -19,8 +19,8 @@ rng_fill(void* data, size_t len)
 static int
 __rand_rd_pg(struct device* dev, void* buf, size_t offset)
 {
-    rng_fill(buf, PG_SIZE);
-    return PG_SIZE;
+    rng_fill(buf, PAGE_SIZE);
+    return PAGE_SIZE;
 }
 
 static int