Module Name: src
Committed By: joerg
Date: Thu Jul 24 23:30:38 UTC 2014
Modified Files:
src/sys/arch/evbppc/mpc85xx: machdep.c
Log Message:
Use volatile when writing to NULL.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/evbppc/mpc85xx/machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbppc/mpc85xx/machdep.c
diff -u src/sys/arch/evbppc/mpc85xx/machdep.c:1.31 src/sys/arch/evbppc/mpc85xx/machdep.c:1.32
--- src/sys/arch/evbppc/mpc85xx/machdep.c:1.31 Tue Mar 18 18:20:41 2014
+++ src/sys/arch/evbppc/mpc85xx/machdep.c Thu Jul 24 23:30:38 2014
@@ -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 @@ initppc(vaddr_t startkernel, vaddr_t end
/*
* 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.