Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/mpc85xx Use volatile when writing to NULL.
details: https://anonhg.NetBSD.org/src/rev/1c073f37c5a4
branches: trunk
changeset: 797654:1c073f37c5a4
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jul 24 23:30:38 2014 +0000
description:
Use volatile when writing to NULL.
diffstat:
sys/arch/evbppc/mpc85xx/machdep.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 4d123faca974 -r 1c073f37c5a4 sys/arch/evbppc/mpc85xx/machdep.c
--- a/sys/arch/evbppc/mpc85xx/machdep.c Thu Jul 24 23:29:02 2014 +0000
+++ b/sys/arch/evbppc/mpc85xx/machdep.c Thu Jul 24 23:30:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.31 2014/03/18 18:20:41 riastradh Exp $ */
+/* $NetBSD: machdep.c,v 1.32 2014/07/24 23:30:38 joerg Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -1183,7 +1183,7 @@
/*
* fill in with an absolute branch to a routine that will panic.
*/
- *(int *)0 = 0x48000002 | (int) calltozero;
+ *(volatile int *)0 = 0x48000002 | (int) calltozero;
/*
* Get the cache sizes.
Home |
Main Index |
Thread Index |
Old Index