A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git] / lunaix-os / kernel / device / input.c
index 6ced39d0ad9efadf2e61d73bf2c6846cd1d79ebe..cc3cc1328f2f38c38c1a98af4f4f7f114d6a5c32 100644 (file)
@@ -1,6 +1,6 @@
 #include <lunaix/clock.h>
 #include <lunaix/input.h>
-#include <lunaix/mm/page.h>
+#include <lunaix/mm/pagetable.h>
 #include <lunaix/mm/valloc.h>
 #include <lunaix/spike.h>
 #include <lunaix/status.h>
@@ -66,7 +66,7 @@ __input_dev_read(struct device* dev, void* buf, size_t offset, size_t len)
 int
 __input_dev_read_pg(struct device* dev, void* buf, size_t offset)
 {
-    return __input_dev_read(dev, buf, offset, PG_SIZE);
+    return __input_dev_read(dev, buf, offset, PAGE_SIZE);
 }
 
 struct input_device*