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 KNF FTW
details: https://anonhg.NetBSD.org/src/rev/b8e8a7ee9769
branches: trunk
changeset: 753534:b8e8a7ee9769
user: ad <ad%NetBSD.org@localhost>
date: Wed Mar 31 19:07:32 2010 +0000
description:
KNF FTW
diffstat:
sys/arch/x86/x86/pmap.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 304bd00b5227 -r b8e8a7ee9769 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Wed Mar 31 18:56:07 2010 +0000
+++ b/sys/arch/x86/x86/pmap.c Wed Mar 31 19:07:32 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.105 2010/02/26 19:25:07 jym Exp $ */
+/* $NetBSD: pmap.c,v 1.106 2010/03/31 19:07:32 ad Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -149,7 +149,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.105 2010/02/26 19:25:07 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.106 2010/03/31 19:07:32 ad Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -750,7 +750,8 @@
* Unmap the content of APDP PDEs
*/
static void
-pmap_unmap_apdp(void) {
+pmap_unmap_apdp(void)
+{
int i;
for (i = 0; i < PDP_SIZE; i++) {
@@ -782,7 +783,7 @@
static void
pmap_map_ptes(struct pmap *pmap, struct pmap **pmap2,
- pd_entry_t **ptepp, pd_entry_t * const **pdeppp)
+ pd_entry_t **ptepp, pd_entry_t * const **pdeppp)
{
pd_entry_t opde, npde;
struct pmap *ourpmap;
@@ -791,7 +792,7 @@
bool iscurrent;
uint64_t ncsw;
#ifdef XEN
- int s;
+ int s, i;
#endif
/* the kernel's pmap is always accessible */
@@ -853,7 +854,6 @@
if (!pmap_valid_entry(opde) ||
pmap_pte2pa(opde) != pmap_pdirpa(pmap, 0)) {
#ifdef XEN
- int i;
s = splvm();
/* Make recursive entry usable in user PGD */
for (i = 0; i < PDP_SIZE; i++) {
Home |
Main Index |
Thread Index |
Old Index