diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-28 21:28:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-28 21:28:32 +0200 |
commit | 53650a96706d999274d59688dbecf163a84eba17 (patch) | |
tree | 15a098f8da01e80e500813be54b382ab9502c4b8 /i386/intel | |
parent | ecc99f77810305304893d188d25e598f5645ecaf (diff) | |
download | gnumach-53650a96706d999274d59688dbecf163a84eba17.tar.gz gnumach-53650a96706d999274d59688dbecf163a84eba17.tar.bz2 gnumach-53650a96706d999274d59688dbecf163a84eba17.zip |
pmap_phys_address: Fix casting
We need to extend the frame number to 64bit before converting to
address.
Diffstat (limited to 'i386/intel')
-rw-r--r-- | i386/intel/pmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/intel/pmap.h b/i386/intel/pmap.h index cfaf01d0..8b0eba0d 100644 --- a/i386/intel/pmap.h +++ b/i386/intel/pmap.h @@ -496,7 +496,7 @@ pt_entry_t *pmap_pte(const pmap_t pmap, vm_offset_t addr); #define pmap_kernel() (kernel_pmap) #define pmap_resident_count(pmap) ((pmap)->stats.resident_count) -#define pmap_phys_address(frame) ((phys_addr_t) (intel_ptob(frame))) +#define pmap_phys_address(frame) ((intel_ptob((phys_addr_t) frame))) #define pmap_phys_to_frame(phys) ((int) (intel_btop(phys))) #define pmap_copy(dst_pmap,src_pmap,dst_addr,len,src_addr) #define pmap_attribute(pmap,addr,size,attr,value) \ |