Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/luna68k Use volatile uint8_t to access 8255...
details: https://anonhg.NetBSD.org/src/rev/5a0b862d74f7
branches: trunk
changeset: 767726:5a0b862d74f7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Jul 28 09:59:13 2011 +0000
description:
Use volatile uint8_t to access 8255 PPI ports.
diffstat:
sys/arch/luna68k/luna68k/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2e7f9ce051b3 -r 5a0b862d74f7 sys/arch/luna68k/luna68k/machdep.c
--- a/sys/arch/luna68k/luna68k/machdep.c Thu Jul 28 09:56:34 2011 +0000
+++ b/sys/arch/luna68k/luna68k/machdep.c Thu Jul 28 09:59:13 2011 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index