Honor the vm page's PG_NODUMP flag on arm and i386.
Reviewed by: kib, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27949
This commit is contained in:
parent
9c0ff6a8bb
commit
7beeacb27b
@ -68,8 +68,11 @@ static uint64_t counter, progress;
|
|||||||
static int
|
static int
|
||||||
is_dumpable(vm_paddr_t pa)
|
is_dumpable(vm_paddr_t pa)
|
||||||
{
|
{
|
||||||
|
vm_page_t m;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if ((m = vm_phys_paddr_to_vm_page(pa)) != NULL)
|
||||||
|
return ((m->flags & PG_NODUMP) == 0);
|
||||||
for (i = 0; dump_avail[i] != 0 || dump_avail[i + 1] != 0; i += 2) {
|
for (i = 0; dump_avail[i] != 0 || dump_avail[i + 1] != 0; i += 2) {
|
||||||
if (pa >= dump_avail[i] && pa < dump_avail[i + 1])
|
if (pa >= dump_avail[i] && pa < dump_avail[i + 1])
|
||||||
return (1);
|
return (1);
|
||||||
|
@ -65,8 +65,11 @@ static uint64_t counter, progress;
|
|||||||
static int
|
static int
|
||||||
is_dumpable(vm_paddr_t pa)
|
is_dumpable(vm_paddr_t pa)
|
||||||
{
|
{
|
||||||
|
vm_page_t m;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if ((m = vm_phys_paddr_to_vm_page(pa)) != NULL)
|
||||||
|
return ((m->flags & PG_NODUMP) == 0);
|
||||||
for (i = 0; dump_avail[i] != 0 || dump_avail[i + 1] != 0; i += 2) {
|
for (i = 0; dump_avail[i] != 0 || dump_avail[i + 1] != 0; i += 2) {
|
||||||
if (pa >= dump_avail[i] && pa < dump_avail[i + 1])
|
if (pa >= dump_avail[i] && pa < dump_avail[i + 1])
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
Reference in New Issue
Block a user