Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/ibm4xx Conform API use of uvm_hotplug(9) to...
details: https://anonhg.NetBSD.org/src/rev/a1ff9dba17c1
branches: trunk
changeset: 349819:a1ff9dba17c1
user: cherry <cherry%NetBSD.org@localhost>
date: Sat Dec 24 19:02:16 2016 +0000
description:
Conform API use of uvm_hotplug(9) to documented behaviour:
When testing for an invalid uvm_physseg_t,
compare with UVM_PHYSSEG_TYPE_INVALID which is implementation agnostic.
diffstat:
sys/arch/powerpc/ibm4xx/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r cd31542e1839 -r a1ff9dba17c1 sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c Sat Dec 24 18:34:31 2016 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c Sat Dec 24 19:02:16 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.75 2016/12/24 18:07:31 cherry Exp $ */
+/* $NetBSD: pmap.c,v 1.76 2016/12/24 19:02:16 cherry Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.75 2016/12/24 18:07:31 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.76 2016/12/24 19:02:16 cherry Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -201,7 +201,7 @@
psize_t pg;
bank = uvm_physseg_find(atop(pa), &pg);
- if (bank == -1)
+ if (bank == UVM_PHYSSEG_TYPE_INVALID)
return NULL;
return &uvm_physseg_get_pmseg(bank)->pvent[pg];
}
@@ -213,7 +213,7 @@
psize_t pg;
bank = uvm_physseg_find(atop(pa), &pg);
- if (bank == -1)
+ if (bank == UVM_PHYSSEG_TYPE_INVALID)
return NULL;
return &uvm_physseg_get_pmseg(bank)->attrs[pg];
}
Home |
Main Index |
Thread Index |
Old Index