1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

- Remove invalid casts.

Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
Jake Burkholder 2003-03-30 01:44:16 +00:00
parent aea57872f0
commit de54353fb8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112837
4 changed files with 6 additions and 6 deletions

View File

@ -2028,7 +2028,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
}
pa = VM_PAGE_TO_PHYS(m) & PG_FRAME;
origpte = *(vm_offset_t *)pte;
origpte = *pte;
opa = origpte & PG_FRAME;
if (origpte & PG_PS)
@ -2120,7 +2120,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
/*
* Now validate mapping with desired protection/wiring.
*/
newpte = (vm_offset_t) (pa | pte_prot(pmap, prot) | PG_V);
newpte = (pt_entry_t)(pa | pte_prot(pmap, prot) | PG_V);
if (wired)
newpte |= PG_W;

View File

@ -176,7 +176,7 @@ pmap_kextract(vm_offset_t va)
if ((pa = (vm_offset_t) PTD[va >> PDRSHIFT]) & PG_PS) {
pa = (pa & ~(NBPDR - 1)) | (va & (NBPDR - 1));
} else {
pa = *(vm_offset_t *)vtopte(va);
pa = *vtopte(va);
pa = (pa & PG_FRAME) | (va & PAGE_MASK);
}
return pa;

View File

@ -2028,7 +2028,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
}
pa = VM_PAGE_TO_PHYS(m) & PG_FRAME;
origpte = *(vm_offset_t *)pte;
origpte = *pte;
opa = origpte & PG_FRAME;
if (origpte & PG_PS)
@ -2120,7 +2120,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
/*
* Now validate mapping with desired protection/wiring.
*/
newpte = (vm_offset_t) (pa | pte_prot(pmap, prot) | PG_V);
newpte = (pt_entry_t)(pa | pte_prot(pmap, prot) | PG_V);
if (wired)
newpte |= PG_W;

View File

@ -176,7 +176,7 @@ pmap_kextract(vm_offset_t va)
if ((pa = (vm_offset_t) PTD[va >> PDRSHIFT]) & PG_PS) {
pa = (pa & ~(NBPDR - 1)) | (va & (NBPDR - 1));
} else {
pa = *(vm_offset_t *)vtopte(va);
pa = *vtopte(va);
pa = (pa & PG_FRAME) | (va & PAGE_MASK);
}
return pa;