Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys mark vm_reg members as volatile instead of building this...
details: https://anonhg.NetBSD.org/src/rev/2781f572349e
branches: trunk
changeset: 770533:2781f572349e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Oct 20 20:13:54 2011 +0000
description:
mark vm_reg members as volatile instead of building this with -O0
diffstat:
sys/arch/x86/x86/vmt.c | 17 +++++++++--------
sys/modules/vmt/Makefile | 3 +--
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (49 lines):
diff -r 4370e560bf37 -r 2781f572349e sys/arch/x86/x86/vmt.c
--- a/sys/arch/x86/x86/vmt.c Thu Oct 20 18:20:30 2011 +0000
+++ b/sys/arch/x86/x86/vmt.c Thu Oct 20 20:13:54 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmt.c,v 1.5 2011/10/18 21:41:25 jmcneill Exp $ */
+/* $NetBSD: vmt.c,v 1.6 2011/10/20 20:13:55 jmcneill Exp $ */
/* $OpenBSD: vmt.c,v 1.11 2011/01/27 21:29:25 dtucker Exp $ */
/*
@@ -151,14 +151,15 @@
} __packed;
/* A register frame. */
+/* XXX 'volatile' as a workaround because BACKDOOR_OP is likely broken */
struct vm_backdoor {
- union vm_reg eax;
- union vm_reg ebx;
- union vm_reg ecx;
- union vm_reg edx;
- union vm_reg esi;
- union vm_reg edi;
- union vm_reg ebp;
+ volatile union vm_reg eax;
+ volatile union vm_reg ebx;
+ volatile union vm_reg ecx;
+ volatile union vm_reg edx;
+ volatile union vm_reg esi;
+ volatile union vm_reg edi;
+ volatile union vm_reg ebp;
} __packed;
/* RPC context. */
diff -r 4370e560bf37 -r 2781f572349e sys/modules/vmt/Makefile
--- a/sys/modules/vmt/Makefile Thu Oct 20 18:20:30 2011 +0000
+++ b/sys/modules/vmt/Makefile Thu Oct 20 20:13:54 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2011/10/17 22:39:23 jmcneill Exp $
+# $NetBSD: Makefile,v 1.2 2011/10/20 20:13:54 jmcneill Exp $
.include "../Makefile.inc"
@@ -7,7 +7,6 @@
KMOD= vmt
IOCONF= vmt.ioconf
SRCS= vmt.c
-COPTS.vmt.c= -O0
WARNS= 4
Home |
Main Index |
Thread Index |
Old Index