Skip to content

Commit

Permalink
HBSD MFC r333405: Remove PG_U from the rest of the kernel pmap ptes.
Browse files Browse the repository at this point in the history
Supposedly, they PG_U bits there were set to easier making some kernel
page accessible to userspace in-place.  Since it was not used for the
whole existence of the amd64 pmap.c and current design of the shared
pages prefers double-mapping over the in-place access, remove PG_U
both from the direct map and KVA slots.

Reviewed by:	alc, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week

(cherry picked from commit 98f7017)

Author: kib <[email protected]>
Original-commit-date: Wed May 9 12:09:08 2018 +0000
svn-commit-id: /head/ r333405
Signed-off-by: Oliver Pinter <[email protected]>
  • Loading branch information
opntr committed Aug 7, 2018
1 parent badc1af commit 6840ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/amd64/amd64/pmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ create_pagetables(vm_paddr_t *firstaddr)
bootaddr_rwx(i << PDRSHIFT);
for (i = 0; i < nkdmpde; i++)
pdp_p[i] = (DMPDkernphys + ptoa(i)) | X86_PG_RW |
X86_PG_V | PG_U;
X86_PG_V;
}

/* And recursively map PML4 to itself in order to get PTmap */
Expand Down

0 comments on commit 6840ef5

Please sign in to comment.