diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2007-12-18 08:07:55 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2007-12-18 08:07:55 +0000 |
commit | 163e5cb01d451ff0ae1cd7e8d2d7ee8599d92891 (patch) | |
tree | 5666c3d241bd18251b0624e628db1037688db26f /sys/arch/sgi | |
parent | 00206dce7249c420f02f29331470674407d10970 (diff) |
Expose the clock address space so that it can be used outside of clock(4).
ok miod@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/clock_md.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/sgi/sgi/clock_md.c b/sys/arch/sgi/sgi/clock_md.c index 9d1dff07dfa..d26d4cd083d 100644 --- a/sys/arch/sgi/sgi/clock_md.c +++ b/sys/arch/sgi/sgi/clock_md.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock_md.c,v 1.8 2005/01/31 21:25:21 grange Exp $ */ +/* $OpenBSD: clock_md.c,v 1.9 2007/12/18 08:07:54 jsing Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -82,6 +82,14 @@ md_clk_attach(parent, self, aux) &sc->sc_clk_h)) printf("UH!? Can't map clock device!\n"); printf(": TOD with DS1687,"); + + /* + * XXX Expose the clock address space so that it can be used + * outside of clock(4). This is rather inelegant, however it + * will have to do for now... + */ + clock_h = sc->sc_clk_h; + break; case SGI_O200: |