Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 Merge the blocks. No functional change.
details: https://anonhg.NetBSD.org/src/rev/11293d69c28e
branches: trunk
changeset: 991693:11293d69c28e
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Jul 26 08:18:25 2018 +0000
description:
Merge the blocks. No functional change.
diffstat:
sys/arch/xen/x86/x86_xpmap.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 5888d06029c9 -r 11293d69c28e sys/arch/xen/x86/x86_xpmap.c
--- a/sys/arch/xen/x86/x86_xpmap.c Thu Jul 26 08:08:24 2018 +0000
+++ b/sys/arch/xen/x86/x86_xpmap.c Thu Jul 26 08:18:25 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_xpmap.c,v 1.76 2018/07/26 08:08:24 maxv Exp $ */
+/* $NetBSD: x86_xpmap.c,v 1.77 2018/07/26 08:18:25 maxv Exp $ */
/*
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.76 2018/07/26 08:08:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.77 2018/07/26 08:18:25 maxv Exp $");
#include "opt_xen.h"
#include "opt_ddb.h"
@@ -693,11 +693,7 @@
addr = ((u_long)pdtpe) - KERNBASE;
bt_pgd[pl4_pi(KERNTEXTOFF)] = bt_cpu_pgd[pl4_pi(KERNTEXTOFF)] =
xpmap_ptom_masked(addr) | PG_V | PG_RW;
-#else
- pdtpe = bt_pgd;
-#endif
-#ifdef __x86_64__
/* Level 2 */
pde = (pd_entry_t *)avail;
memset(pde, 0, PAGE_SIZE);
@@ -707,6 +703,8 @@
pdtpe[pl3_pi(KERNTEXTOFF)] =
xpmap_ptom_masked(addr) | PG_V | PG_RW;
#elif defined(PAE)
+ pdtpe = bt_pgd;
+
/*
* Our PAE-style level 2, 5 contiguous pages (4 L2 + 1 shadow).
* +-----------------+----------------+---------+
@@ -730,6 +728,7 @@
addr += PAGE_SIZE;
pdtpe[3] = xpmap_ptom_masked(addr) | PG_V;
#else
+ pdtpe = bt_pgd;
pde = bt_pgd;
#endif
Home |
Main Index |
Thread Index |
Old Index