Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include we can read the timebase register a...



details:   https://anonhg.NetBSD.org/src/rev/e6d624a4b5a9
branches:  trunk
changeset: 786277:e6d624a4b5a9
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Apr 25 00:08:48 2013 +0000

description:
we can read the timebase register as a 64bit chunk when _ARCH_PPC64 is defined,
not necessarily LP64

diffstat:

 sys/arch/powerpc/include/cpu.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 66c4bdabf7d4 -r e6d624a4b5a9 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h    Wed Apr 24 22:37:20 2013 +0000
+++ b/sys/arch/powerpc/include/cpu.h    Thu Apr 25 00:08:48 2013 +0000
@@ -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 @@
 {
        uint64_t tb;
 
-#ifdef _LP64
+#ifdef _ARCH_PPC64
        __asm volatile ("mftb %0" : "=r"(tb));
 #else
        int tmp;



Home | Main Index | Thread Index | Old Index