Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Use pointer computation for references ...
details: https://anonhg.NetBSD.org/src/rev/36afc2650594
branches: trunk
changeset: 810971:36afc2650594
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Oct 04 08:18:49 2015 +0000
description:
Use pointer computation for references outside an object.
diffstat:
sys/arch/sparc/sparc/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r cbec5730f223 -r 36afc2650594 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Sun Oct 04 08:17:43 2015 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Sun Oct 04 08:18:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.358 2014/05/03 11:17:06 nakayama Exp $ */
+/* $NetBSD: pmap.c,v 1.359 2015/10/04 08:18:49 joerg Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.358 2014/05/03 11:17:06 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.359 2015/10/04 08:18:49 joerg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -3214,7 +3214,7 @@
* above NUREG, we save storage space and can index kernel and
* user regions in the same way.
*/
- kernel_pmap_store.pm_regmap = &kernel_regmap_store[-NUREG];
+ kernel_pmap_store.pm_regmap = kernel_regmap_store - NUREG;
for (i = NKREG; --i >= 0;) {
#if defined(SUN4_MMU3L)
kernel_regmap_store[i].rg_smeg = reginval;
@@ -3592,7 +3592,7 @@
* above NUREG, we save storage space and can index kernel and
* user regions in the same way.
*/
- kernel_pmap_store.pm_regmap = &kernel_regmap_store[-NUREG];
+ kernel_pmap_store.pm_regmap = kernel_regmap_store - NUREG;
memset(kernel_regmap_store, 0, NKREG * sizeof(struct regmap));
memset(kernel_segmap_store, 0, NKREG * NSEGRG * sizeof(struct segmap));
for (i = NKREG; --i >= 0;) {
Home |
Main Index |
Thread Index |
Old Index