summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/powerpc/clock.c6
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);