Module Name: src Committed By: tsutsui Date: Thu Jul 28 09:59:13 UTC 2011
Modified Files: src/sys/arch/luna68k/luna68k: machdep.c Log Message: Use volatile uint8_t to access 8255 PPI ports. To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/arch/luna68k/luna68k/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/luna68k/luna68k/machdep.c diff -u src/sys/arch/luna68k/luna68k/machdep.c:1.81 src/sys/arch/luna68k/luna68k/machdep.c:1.82 --- src/sys/arch/luna68k/luna68k/machdep.c:1.81 Thu Jul 28 09:56:34 2011 +++ src/sys/arch/luna68k/luna68k/machdep.c Thu Jul 28 09:59:13 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.81 2011/07/28 09:56:34 tsutsui Exp $ */ +/* $NetBSD: machdep.c,v 1.82 2011/07/28 09:59:13 tsutsui Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.81 2011/07/28 09:56:34 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.82 2011/07/28 09:59:13 tsutsui Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -153,7 +153,7 @@ void luna68k_init(void) { - volatile unsigned char *pio0 = (void *)0x49000000; + volatile uint8_t *pio0 = (void *)0x49000000; int sw1, i; char *cp; extern char bootarg[64]; @@ -375,7 +375,7 @@ /* Finally, halt/reboot the system. */ if ((howto & RB_POWERDOWN) == RB_POWERDOWN) { - uint8_t *pio = (void *)0x4d000000; + volatile uint8_t *pio = (void *)0x4d000000; printf("power is going down.\n"); DELAY(100000);