Add PAGE_SIZE constant
This commit is contained in:
1 parent
41531cf4d2
commit
c8a81b1101
2 files changed
+5
-2
No files matched your search
+4
-1
@@ -8,6 +8,9 @@ import hulk.bootinfo;
|
||||
import hulk.klog;
|
||||
import hulk.linker_addresses;
|
||||
|
||||
/** Page size. */
|
||||
enum size_t PAGE_SIZE = 4096u;
|
||||
|
||||
struct hippo
|
||||
{
|
||||
/**
|
||||
@@ -80,7 +83,7 @@ struct hippo
|
||||
{
|
||||
free_page(phys);
|
||||
}
|
||||
phys += 4096u;
|
||||
phys += PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user