Module Name: src
Committed By: macallan
Date: Thu Apr 25 00:08:48 UTC 2013
Modified Files:
src/sys/arch/powerpc/include: cpu.h
Log Message:
we can read the timebase register as a 64bit chunk when _ARCH_PPC64 is defined,
not necessarily LP64
To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/arch/powerpc/include/cpu.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/include/cpu.h
diff -u src/sys/arch/powerpc/include/cpu.h:1.95 src/sys/arch/powerpc/include/cpu.h:1.96
--- src/sys/arch/powerpc/include/cpu.h:1.95 Tue Nov 27 19:24:45 2012
+++ src/sys/arch/powerpc/include/cpu.h Thu Apr 25 00:08:48 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.95 2012/11/27 19:24:45 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.96 2013/04/25 00:08:48 macallan Exp $ */
/*
* Copyright (C) 1999 Wolfgang Solfrank.
@@ -265,7 +265,7 @@ mftb(void)
{
uint64_t tb;
-#ifdef _LP64
+#ifdef _ARCH_PPC64
__asm volatile ("mftb %0" : "=r"(tb));
#else
int tmp;