aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/loader/arch/amd64/elf64_freebsd.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-04-24 13:53:40 +0000
committerMark Johnston <markj@FreeBSD.org>2020-04-24 13:53:40 +0000
commit5c170925688ac7a28209b79b2e3f967e484d79f6 (patch)
tree122c5a8cdfdd554dcea4910b0718645f1273b6b9 /stand/efi/loader/arch/amd64/elf64_freebsd.c
parent277cd3983e33e5de29e7bd4a4672b745640f9101 (diff)
downloadsrc-5c170925688ac7a28209b79b2e3f967e484d79f6.tar.gz
src-5c170925688ac7a28209b79b2e3f967e484d79f6.zip
Stop setting PG_U in bootstrap mappings.
These mappings are never visible to userspace as they get replaced when the amd64 pmap is bootstrapped, but there is no need to set PG_U in the first place. Reviewed by: alc, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24547
Notes
Notes: svn path=/head/; revision=360260
Diffstat (limited to 'stand/efi/loader/arch/amd64/elf64_freebsd.c')
-rw-r--r--stand/efi/loader/arch/amd64/elf64_freebsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stand/efi/loader/arch/amd64/elf64_freebsd.c b/stand/efi/loader/arch/amd64/elf64_freebsd.c
index 37e9fe1b4b18..896041e066c9 100644
--- a/stand/efi/loader/arch/amd64/elf64_freebsd.c
+++ b/stand/efi/loader/arch/amd64/elf64_freebsd.c
@@ -172,15 +172,15 @@ elf64_exec(struct preloaded_file *fp)
for (i = 0; i < 512; i++) {
/* Each slot of the L4 pages points to the same L3 page. */
PT4[i] = (pml4_entry_t)PT3;
- PT4[i] |= PG_V | PG_RW | PG_U;
+ PT4[i] |= PG_V | PG_RW;
/* Each slot of the L3 pages points to the same L2 page. */
PT3[i] = (pdp_entry_t)PT2;
- PT3[i] |= PG_V | PG_RW | PG_U;
+ PT3[i] |= PG_V | PG_RW;
/* The L2 page slots are mapped with 2MB pages for 1GB. */
PT2[i] = i * (2 * 1024 * 1024);
- PT2[i] |= PG_V | PG_RW | PG_PS | PG_U;
+ PT2[i] |= PG_V | PG_RW | PG_PS;
}
printf("Start @ 0x%lx ...\n", ehdr->e_entry);