Go to file
maxv 09c0f3ded7 Remove pmap_prealloc_lowmem_ptps on amd64. This function creates levels in
the page tree so that the first 2MB of virtual memory can be kentered in
L1.

Strictly speaking, the kernel should never kenter a virtual page below
VM_MIN_KERNEL_ADDRESS, because then it wouldn't be available in userland.
It used to need the first 2MB in order to map the CPU trampoline and the
initial VAs used by the bootstrap code. Now, the CPU trampoline VA is
allocated with uvm_km_alloc and the VAs used by the bootstrap code are
allocated with pmap_bootstrap_valloc, and in either case the resulting VA
is above VM_MIN_KERNEL_ADDRESS.

The low levels in the page tree are therefore unused. By removing this
function, we are making sure no one will be tempted to map an area below
VM_MIN_KERNEL_ADDRESS in kernel mode, and particularly, we are making sure
NULL cannot be kentered.

In short, there is no way to map NULL in kernel mode anymore.
2016-07-22 14:08:33 +00:00
bin When invoked with -se, print a '$' on blank lines 2016-06-16 00:52:37 +00:00
common Fix the previous fix - there's only one _node suffix here! 2016-06-28 06:47:35 +00:00
compat remove the xfree86 reachover makefiles and the vast majority of 2015-07-23 08:03:24 +00:00
crypto CID 977755: Resource leaks. 2016-06-28 16:34:40 +00:00
dist/pf PR 50709 David Binderman: memory leak 2016-05-30 17:21:07 +00:00
distrib put ctf lint library back. need to investigate more. 2016-07-20 23:36:23 +00:00
doc Add the pgoyette-localcount branch 2016-07-19 02:04:06 +00:00
etc As discussed at the biginning of last week (June 6 & 7, 2016) on 2016-06-16 15:33:38 +00:00
external more stack protector 2016-07-21 16:47:50 +00:00
extsrc
games add one 2016-07-15 06:13:50 +00:00
gnu has moved to external/gpl3 2016-01-16 18:41:12 +00:00
include According to Opengroup online specifications[1], _POSIX_CPUTIME and 2016-07-21 16:01:58 +00:00
lib unnamed unions need special treatment since they need braced initializers 2016-07-20 21:02:04 +00:00
libexec Fix error checks in open(2) calls. 2016-07-21 12:29:37 +00:00
regress PR/50941: David Binderman: fix printf format 2016-03-11 18:26:40 +00:00
rescue cgdconfig is not crypto 2016-07-02 15:59:21 +00:00
sbin Fix RCS Id. 2016-07-14 10:02:43 +00:00
share + PTO parent-teacher organization 2016-07-21 05:07:04 +00:00
sys Remove pmap_prealloc_lowmem_ptps on amd64. This function creates levels in 2016-07-22 14:08:33 +00:00
tests Add some tests for route change 2016-07-21 02:02:30 +00:00
tools set gcc 5.4 netbsd version to 2016-06-06 2016-06-07 08:12:13 +00:00
usr.bin accept attributes in param decls 2016-07-20 18:14:12 +00:00
usr.sbin Add -lz to makefile to fix the build. 2016-07-21 12:24:54 +00:00
build.sh When setting TOP the idea is to run the [/usr]/bin/pwd binary, and 2016-06-03 00:00:01 +00:00
BUILDING Document MKREPRO_TIMESTAMP. 2016-01-29 13:51:13 +00:00
Makefile fix direct reference to texinfo, bleh 2016-01-14 02:51:25 +00:00
Makefile.inc
UPDATING Note that i386 needs a PIE-related cleandir. Should avoid having PR 51174 2016-05-30 03:11:48 +00:00