sandbox: vm: reduce vm_page order field size to 4 bits

This commit is contained in:
2023-02-02 16:54:48 +00:00
parent ab46b7cd13
commit 7331bdefda
2 changed files with 26 additions and 7 deletions

View File

@@ -28,9 +28,15 @@ static size_t page_order_bytes[] = {
[VM_PAGE_32M] = 0x2000000,
[VM_PAGE_64M] = 0x4000000,
[VM_PAGE_128M] = 0x8000000,
#if 0
/* vm can support pages of this size, but
vm_page_t only has 4 bits with which to store
the page order, which cannot accomodate these
larger order numbers */
[VM_PAGE_256M] = 0x10000000,
[VM_PAGE_512M] = 0x20000000,
[VM_PAGE_1G] = 0x40000000,
#endif
};
void vm_page_init_array()