Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Keep in .data by using a section at...



details:   https://anonhg.NetBSD.org/src/rev/8c8ab9e9b52a
branches:  trunk
changeset: 324747:8c8ab9e9b52a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jul 17 12:40:00 2018 +0000

description:
Keep in .data by using a section attribute.

diffstat:

 sys/arch/aarch64/aarch64/aarch64_machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 44c4614bf4a3 -r 8c8ab9e9b52a sys/arch/aarch64/aarch64/aarch64_machdep.c
--- a/sys/arch/aarch64/aarch64/aarch64_machdep.c        Tue Jul 17 12:31:16 2018 +0000
+++ b/sys/arch/aarch64/aarch64/aarch64_machdep.c        Tue Jul 17 12:40:00 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aarch64_machdep.c,v 1.6 2018/07/17 11:12:41 ryo Exp $ */
+/* $NetBSD: aarch64_machdep.c,v 1.7 2018/07/17 12:40:00 christos Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.6 2018/07/17 11:12:41 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.7 2018/07/17 12:40:00 christos Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -82,7 +82,8 @@
 /* XXX */
 vaddr_t physical_start;
 vaddr_t physical_end;
-u_long kern_vtopdiff = 0; /* filled in before cleaning bss. keep in .data */
+/* filled in before cleaning bss. keep in .data */
+u_long kern_vtopdiff __attribute__((__section__(".data")));
 
 
 /*



Home | Main Index | Thread Index | Old Index