]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the OEA64 scratchpage to the end of KVA from the beginning, and set
authornwhitehorn <nwhitehorn@FreeBSD.org>
Thu, 25 Feb 2010 03:53:21 +0000 (03:53 +0000)
committernwhitehorn <nwhitehorn@FreeBSD.org>
Thu, 25 Feb 2010 03:53:21 +0000 (03:53 +0000)
commit0be33967dc512560f54754fcae2582d46ae93bf9
tree15fbea46673e9ca23eb21fb6997c5e60ab98d31f
parentc82626304295f3dbf2e6d567378e95b6fe6b7175
Move the OEA64 scratchpage to the end of KVA from the beginning, and set
its PVO to map physical address 0 instead of kernelstart. This fixes a
situation in which a user process could attempt to return this address
via KVM, have it fault while being modified, and then panic the kernel
because (a) it is supposed to map a valid address and (b) it lies in the
no-fault region between VM_MIN_KERNEL_ADDRESS and virtual_avail.

While here, move msgbuf and dpcpu make into regular KVA space for
consistency with other implementations.
sys/powerpc/aim/mmu_oea64.c