]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86: correctly limit max memory resource address..
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 1 Feb 2019 20:46:47 +0000 (20:46 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 1 Feb 2019 20:46:47 +0000 (20:46 +0000)
commitc3f5a3665163f217202167ea521faac19a8c657f
tree8a65eebf1e9c44d487f1067fc42e554f56f38ad2
parentcb7c3f124a9b17d0f4200008d0661c239ec3520f
x86: correctly limit max memory resource address..

CPU and buses can manage up to the limit reported by cpu_maxphyaddr,
so set mem_rman to the value returned by cpu_getmaxphyaddr().  For the
PAE mode, it was missed both when rman_res_t was increased to
uintmax_t, and from the PAE merge commit.

When importing smaps or dump_avail chunks into memory rman, do not
blindly ignore resources which ends above the limit, chomp them
instead if start is below the limit.  The same change was already done
to i386 add_physmap_entry().

Based on the submission by: bde
MFC after: 2 months
sys/x86/x86/nexus.c