From e524f5cfc7d00b401895c0836fbad986c715c9b0 Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Tue, 25 Aug 1998 07:46:59 +0000 Subject: Use symbolic names --- sys/arch/powerpc/powerpc/clock.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch/powerpc') 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 +#include + 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); -- cgit v1.2.3