Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch {amd64,i386}/pmap_private.h: Fix minor whitespace i...
details: https://anonhg.NetBSD.org/src/rev/6d520181097b
branches: trunk
changeset: 369535:6d520181097b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Aug 20 23:49:48 2022 +0000
description:
{amd64,i386}/pmap_private.h: Fix minor whitespace issues.
diffstat:
sys/arch/amd64/include/pmap_private.h | 7 +++++--
sys/arch/i386/include/pmap_private.h | 10 ++++++----
2 files changed, 11 insertions(+), 6 deletions(-)
diffs (95 lines):
diff -r a50d01d420d2 -r 6d520181097b sys/arch/amd64/include/pmap_private.h
--- a/sys/arch/amd64/include/pmap_private.h Sat Aug 20 23:49:31 2022 +0000
+++ b/sys/arch/amd64/include/pmap_private.h Sat Aug 20 23:49:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_private.h,v 1.2 2022/08/20 23:49:31 riastradh Exp $ */
+/* $NetBSD: pmap_private.h,v 1.3 2022/08/20 23:49:48 riastradh Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -202,6 +202,7 @@
#undef _MACHINE_PMAP_PRIVATE_H_X86
#ifndef XENPV
+
#define pmap_pa2pte(a) (a)
#define pmap_pte2pa(a) ((a) & PTE_FRAME)
#define pmap_pte_set(p, n) do { *(p) = (n); } while (0)
@@ -213,7 +214,9 @@
#define pmap_pte_clearbits(p, b) \
atomic_and_ulong((volatile unsigned long *)p, ~(b))
#define pmap_pte_flush() /* nothing */
+
#else
+
extern kmutex_t pte_lock;
static __inline pt_entry_t
@@ -247,7 +250,6 @@
xpq_queue_pte_update(xpmap_ptetomach(__UNVOLATILE(ptep)), n);
xpq_flush_queue();
}
-
mutex_exit(&pte_lock);
return opte;
}
@@ -291,6 +293,7 @@
xpq_flush_queue();
splx(s);
}
+
#endif
#ifdef __HAVE_DIRECT_MAP
diff -r a50d01d420d2 -r 6d520181097b sys/arch/i386/include/pmap_private.h
--- a/sys/arch/i386/include/pmap_private.h Sat Aug 20 23:49:31 2022 +0000
+++ b/sys/arch/i386/include/pmap_private.h Sat Aug 20 23:49:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_private.h,v 1.2 2022/08/20 23:49:31 riastradh Exp $ */
+/* $NetBSD: pmap_private.h,v 1.3 2022/08/20 23:49:48 riastradh Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -260,6 +260,7 @@
#undef _MACHINE_PMAP_PRIVATE_H_X86
#ifndef XENPV
+
#define pmap_pa2pte(a) (a)
#define pmap_pte2pa(a) ((a) & PTE_FRAME)
#define pmap_pte_set(p, n) do { *(p) = (n); } while (0)
@@ -284,6 +285,7 @@
#endif /* PAE */
#else /* XENPV */
+
extern kmutex_t pte_lock;
static __inline pt_entry_t
@@ -297,6 +299,7 @@
{
return xpmap_mtop_masked(pte & PTE_FRAME);
}
+
static __inline void
pmap_pte_set(pt_entry_t *pte, pt_entry_t npte)
{
@@ -327,8 +330,7 @@
mutex_enter(&pte_lock);
opte = *pte;
- xpq_queue_pte_update(xpmap_ptetomach(__UNVOLATILE(pte)),
- npte);
+ xpq_queue_pte_update(xpmap_ptetomach(__UNVOLATILE(pte)), npte);
xpq_flush_queue();
mutex_exit(&pte_lock);
return opte;
@@ -345,7 +347,7 @@
static __inline void
pmap_pte_clearbits(volatile pt_entry_t *pte, pt_entry_t bits)
-{
+{
mutex_enter(&pte_lock);
xpq_queue_pte_update(xpmap_ptetomach(__UNVOLATILE(pte)),
(*pte) & ~bits);
Home |
Main Index |
Thread Index |
Old Index