diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2003-03-25 00:07:06 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2003-03-25 00:07:06 +0000 |
commit | 227f9a1c5853566d8177f487b69a896b1121f84d (patch) | |
tree | 553401a4d58eb98b1e208a82c3ba2c32b848a225 /sys/vm/vm_page.h | |
parent | d829c3dfeea2cdb6da513864c71dc7547415a6fd (diff) | |
download | src-227f9a1c5853566d8177f487b69a896b1121f84d.tar.gz src-227f9a1c5853566d8177f487b69a896b1121f84d.zip |
- Add vm_paddr_t, a physical address type. This is required for systems
where physical addresses larger than virtual addresses, such as i386s
with PAE.
- Use this to represent physical addresses in the MI vm system and in the
i386 pmap code. This also changes the paddr parameter to d_mmap_t.
- Fix printf formats to handle physical addresses >4G in the i386 memory
detection code, and due to kvtop returning vm_paddr_t instead of u_long.
Note that this is a name change only; vm_paddr_t is still the same as
vm_offset_t on all currently supported platforms.
Sponsored by: DARPA, Network Associates Laboratories
Discussed with: re, phk (cdevsw change)
Notes
Notes:
svn path=/head/; revision=112569
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 67e352983444..c75081378e12 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -116,7 +116,7 @@ struct vm_page { vm_object_t object; /* which object am I in (O,P)*/ vm_pindex_t pindex; /* offset into object (O,P) */ - vm_offset_t phys_addr; /* physical address of page */ + vm_paddr_t phys_addr; /* physical address of page */ struct md_page md; /* machine dependant stuff */ u_short queue; /* page queue index */ u_short flags, /* see below */ @@ -335,7 +335,7 @@ void vm_page_dirty(vm_page_t m); void vm_page_wakeup(vm_page_t m); void vm_pageq_init(void); -vm_page_t vm_pageq_add_new_page(vm_offset_t pa); +vm_page_t vm_pageq_add_new_page(vm_paddr_t pa); void vm_pageq_enqueue(int queue, vm_page_t m); void vm_pageq_remove_nowakeup(vm_page_t m); void vm_pageq_remove(vm_page_t m); |