Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/conf Put 2MB alignments between the kernel se...
details: https://anonhg.NetBSD.org/src/rev/75b41e74d7d6
branches: trunk
changeset: 351387:75b41e74d7d6
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Feb 11 16:02:11 2017 +0000
description:
Put 2MB alignments between the kernel segments. This way the kernel image
is entirely mapped with large pages, which uniformizes performance and
reduces fluctuation. Sent on port-amd64.
diffstat:
sys/arch/amd64/conf/Makefile.amd64 | 4 ++--
sys/arch/amd64/conf/kern.ldscript | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 43d4c114e21d -r 75b41e74d7d6 sys/arch/amd64/conf/Makefile.amd64
--- a/sys/arch/amd64/conf/Makefile.amd64 Sat Feb 11 15:37:30 2017 +0000
+++ b/sys/arch/amd64/conf/Makefile.amd64 Sat Feb 11 16:02:11 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.amd64,v 1.56 2017/02/02 19:09:08 maxv Exp $
+# $NetBSD: Makefile.amd64,v 1.57 2017/02/11 16:02:11 maxv Exp $
# Makefile for NetBSD
#
@@ -61,7 +61,7 @@
## (5) link settings
##
TEXTADDR?= 0xffffffff80200000
-EXTRA_LINKFLAGS= -z max-page-size=0x100000
+EXTRA_LINKFLAGS= -z max-page-size=0x200000
LINKFLAGS_NORMAL= -X
KERNLDSCRIPT?= ${AMD64}/conf/kern.ldscript
diff -r 43d4c114e21d -r 75b41e74d7d6 sys/arch/amd64/conf/kern.ldscript
--- a/sys/arch/amd64/conf/kern.ldscript Sat Feb 11 15:37:30 2017 +0000
+++ b/sys/arch/amd64/conf/kern.ldscript Sat Feb 11 16:02:11 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.21 2016/05/12 09:05:16 maxv Exp $ */
+/* $NetBSD: kern.ldscript,v 1.22 2017/02/11 16:02:11 maxv Exp $ */
#include "assym.h"
@@ -35,7 +35,7 @@
*(.rodata.*)
}
- . = ALIGN(__PAGE_SIZE);
+ . = ALIGN(__LARGE_PAGE_SIZE);
__data_start = . ;
.data :
@@ -66,7 +66,7 @@
. = ALIGN(64 / 8);
}
- . = ALIGN(__PAGE_SIZE);
+ . = ALIGN(__LARGE_PAGE_SIZE);
/* End of the kernel image */
__kernel_end = . ;
Home |
Main Index |
Thread Index |
Old Index