diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-08-25 07:46:59 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-08-25 07:46:59 +0000 |
commit | e524f5cfc7d00b401895c0836fbad986c715c9b0 (patch) | |
tree | 7930e415b7d6828e2a9039dd4d03d87a3e1c8b53 /sys/arch/powerpc | |
parent | 7f9b538a0481c376d670f95ef9592a082f23a306 (diff) |
Use symbolic names
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/powerpc/clock.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/clock.c b/sys/arch/powerpc/powerpc/clock.c index c4ed7db7457..27c8149319d 100644 --- a/sys/arch/powerpc/powerpc/clock.c +++ b/sys/arch/powerpc/powerpc/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.3 1997/10/13 13:42:53 pefo Exp $ */ +/* $OpenBSD: clock.c,v 1.4 1998/08/25 07:46:58 pefo Exp $ */ /* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ /* @@ -37,6 +37,8 @@ #include <machine/pio.h> +#include <powerpc/pci/mpc106reg.h> + void resettodr(); /* * Initially we assume a processor with a bus frequency of 12.5 MHz. @@ -330,7 +332,7 @@ power4e_getclock(sec, min, hour, day, mon, year) int *mon; int *year; { - int clkbase = 0xc00f1ff8; + int clkbase = MPC106_V_PCI_MEM_SPACE + 0x000f1ff8; outb(clkbase, inb(clkbase) | 0x40); /* stop update */ *sec = inb(clkbase + 1); |