diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-29 02:26:31 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-29 02:27:37 +0200 |
commit | 00407460f8b28557a68c6f6412ca409a064d77ec (patch) | |
tree | 455c2f2930a372ad1061ca8179dc773390a69850 /vm | |
parent | bb1537d4ede45eda2d2dcdd6521b20a59a8ea3f4 (diff) | |
download | gnumach-00407460f8b28557a68c6f6412ca409a064d77ec.tar.gz gnumach-00407460f8b28557a68c6f6412ca409a064d77ec.tar.bz2 gnumach-00407460f8b28557a68c6f6412ca409a064d77ec.zip |
vm_page_bootalloc: Return a phys_addr_t
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_page.c | 2 | ||||
-rw-r--r-- | vm/vm_page.h | 2 | ||||
-rw-r--r-- | vm/vm_resident.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c index 7220dffb..04decbbd 100644 --- a/vm/vm_page.c +++ b/vm/vm_page.c @@ -1378,7 +1378,7 @@ vm_page_boot_seg_avail_size(struct vm_page_boot_seg *seg) return seg->avail_end - seg->avail_start; } -unsigned long __init +phys_addr_t __init vm_page_bootalloc(size_t size) { struct vm_page_boot_seg *seg; diff --git a/vm/vm_page.h b/vm/vm_page.h index f4761f3f..3be75f18 100644 --- a/vm/vm_page.h +++ b/vm/vm_page.h @@ -426,7 +426,7 @@ int vm_page_ready(void); * pmap_steal_memory. It can be used after physical segments have been loaded * and before the vm_page module is initialized. */ -unsigned long vm_page_bootalloc(size_t size); +phys_addr_t vm_page_bootalloc(size_t size); /* * Set up the vm_page module. diff --git a/vm/vm_resident.c b/vm/vm_resident.c index 8fa7c36b..3f0cc909 100644 --- a/vm/vm_resident.c +++ b/vm/vm_resident.c @@ -233,7 +233,8 @@ void vm_page_bootstrap( vm_offset_t pmap_steal_memory( vm_size_t size) { - vm_offset_t addr, vaddr, paddr; + vm_offset_t addr, vaddr; + phys_addr_t paddr; size = round_page(size); |