Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Move the PCPU area from slot 384 to slot 510, to av...
details: https://anonhg.NetBSD.org/src/rev/c4b5f47dda69
branches: trunk
changeset: 363801:c4b5f47dda69
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Aug 12 13:31:16 2018 +0000
description:
Move the PCPU area from slot 384 to slot 510, to avoid creating too much
fragmentation in the slot space (384 is in the middle of the kernel half
of the VA).
diffstat:
sys/arch/amd64/include/frameasm.h | 4 ++--
sys/arch/x86/include/pmap.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5c08533478e0 -r c4b5f47dda69 sys/arch/amd64/include/frameasm.h
--- a/sys/arch/amd64/include/frameasm.h Sun Aug 12 13:07:41 2018 +0000
+++ b/sys/arch/amd64/include/frameasm.h Sun Aug 12 13:31:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: frameasm.h,v 1.40 2018/07/13 14:11:02 martin Exp $ */
+/* $NetBSD: frameasm.h,v 1.41 2018/08/12 13:31:16 maxv Exp $ */
#ifndef _AMD64_MACHINE_FRAMEASM_H
#define _AMD64_MACHINE_FRAMEASM_H
@@ -130,7 +130,7 @@
#ifdef SVS
/* XXX: put this somewhere else */
-#define SVS_UTLS 0xffffc00000000000 /* PMAP_PCPU_BASE */
+#define SVS_UTLS 0xffffff0000000000 /* PMAP_PCPU_BASE */
#define UTLS_KPDIRPA 0
#define UTLS_SCRATCH 8
#define UTLS_RSP0 16
diff -r 5c08533478e0 -r c4b5f47dda69 sys/arch/x86/include/pmap.h
--- a/sys/arch/x86/include/pmap.h Sun Aug 12 13:07:41 2018 +0000
+++ b/sys/arch/x86/include/pmap.h Sun Aug 12 13:31:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.83 2018/08/12 10:50:35 maxv Exp $ */
+/* $NetBSD: pmap.h,v 1.84 2018/08/12 13:31:16 maxv Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -559,7 +559,7 @@
#ifdef __HAVE_PCPU_AREA
extern struct pcpu_area *pcpuarea;
-#define PDIR_SLOT_PCPU 384
+#define PDIR_SLOT_PCPU 510
#define PMAP_PCPU_BASE (VA_SIGN_NEG((PDIR_SLOT_PCPU * NBPD_L4)))
#endif
Home |
Main Index |
Thread Index |
Old Index