diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-12 15:57:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-12 15:57:18 +0000 |
commit | 843430bcbb4944fff51740dc041bee2dc6d2a844 (patch) | |
tree | b123ec955fdb68abd56c118515a646b23b8226f3 /sys/arch | |
parent | d3e9267d653adf607cf836c4ae77b5cb23a8e6f6 (diff) |
Provide a real getsecs() implementation.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/socppc/stand/boot/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/socppc/stand/boot/time.c b/sys/arch/socppc/stand/boot/time.c index b4def65f22b..f2e8ad25856 100644 --- a/sys/arch/socppc/stand/boot/time.c +++ b/sys/arch/socppc/stand/boot/time.c @@ -5,4 +5,8 @@ time_t getsecs(void) { + uint32_t count; + + __asm volatile ("mftb %0" : "=r" (count)); + return (count / 66666666); } |