x86: Use global PTEs for kernel mappings
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 27 Nov 2016 17:55:44 +0000 (12:55 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commitd319680ec36ef6714dc3d797a94084154ac7c236
treec7e221621b7a9f64478d45e287be8ed89c3926f7
parent34dab584ca9a9afb2b79e232ab2d37885c2d3885
x86: Use global PTEs for kernel mappings

The KERNBASE and kernel-load-addr mappings, built in ASM, were not using
global PTEs.  That's been broken since at least the x86_64 port.  The
rest of the KERNBASE mapping, set up in vm_init(), was using the global
entries, but the lower 512 GB (i.e., most of the RAM) was ignored.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/cpuinfo.c
kern/arch/x86/entry64.S
kern/arch/x86/pmap64.c