* vm_page::offset is now called cache_offset and is now an uint32 instead of off_t;

this saves 4 bytes per page. To compensate the loss of bytes, the offset is now
  stored in page size units, that's enough to address 2^44 or 16 TB (which is now
  the maximal supported file size!).
* Renamed vm_page::ppn to physical_page_number.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15637 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-12-21 12:38:31 +00:00
parent 3ca8cdfc07
commit 79f73dbc56
10 changed files with 67 additions and 57 deletions
@@ -10,4 +10,6 @@
#define NUM_IO_PAGES 4
/* 16 kB */
#define PAGE_SHIFT 12
#endif /* ARCH_PPC_VM_H */
@@ -10,4 +10,6 @@
#define NUM_IO_PAGES 4
/* 16 kB */
#define PAGE_SHIFT 12
#endif /* ARCH_x86_VM_H */
+2 -1
View File
@@ -9,8 +9,9 @@
#define _KERNEL_VM_H
#include <kernel.h>
//#include <kernel.h>
#include <vm_types.h>
#include <arch/vm.h>
#include <arch/vm_translation_map.h>
struct kernel_args;
+3 -2
View File
@@ -22,10 +22,11 @@ typedef struct vm_page {
struct vm_page *hash_next;
addr_t ppn; // physical page number
off_t offset;
addr_t physical_page_number;
struct vm_cache *cache;
uint32 cache_offset;
// in page size units
struct vm_page *cache_prev;
struct vm_page *cache_next;