Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 This loop makes no sense at all.
details: https://anonhg.NetBSD.org/src/rev/07b2fa7296d2
branches: trunk
changeset: 346573:07b2fa7296d2
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Jul 19 18:54:45 2016 +0000
description:
This loop makes no sense at all.
diffstat:
sys/arch/x86/x86/pmap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 5d4af2b0c959 -r 07b2fa7296d2 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Tue Jul 19 18:27:27 2016 +0000
+++ b/sys/arch/x86/x86/pmap.c Tue Jul 19 18:54:45 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.211 2016/07/11 14:18:16 maxv Exp $ */
+/* $NetBSD: pmap.c,v 1.212 2016/07/19 18:54:45 maxv Exp $ */
/*-
* Copyright (c) 2008, 2010, 2016 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.211 2016/07/11 14:18:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.212 2016/07/19 18:54:45 maxv Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -3910,7 +3910,7 @@
kpreempt_disable();
pmap_map_ptes(pmap, &pmap2, &ptes, &pdes);
- for (va = sva ; va < eva ; va = blockend) {
+ for (va = sva ; va < eva; va = blockend) {
pt_entry_t *spte, *epte;
int i;
@@ -3926,8 +3926,8 @@
* with APTE). then we can set VM_MAXUSER_ADDRESS to
* be VM_MAX_ADDRESS.
*/
-
/* XXXCDC: ugly hack to avoid freeing PDP here */
+ /* XXX: this loop makes no sense at all */
for (i = 0; i < PDP_SIZE; i++) {
if (pl_i(va, PTP_LEVELS) == PDIR_SLOT_PTE+i)
continue;
@@ -3942,7 +3942,7 @@
spte = &ptes[pl1_i(va)];
epte = &ptes[pl1_i(blockend)];
- for (/*null */; spte < epte ; spte++) {
+ for (/* */; spte < epte; spte++) {
pt_entry_t opte, npte;
do {
Home |
Main Index |
Thread Index |
Old Index