Module: xenomai-3
Branch: next
Commit: d082655c3da031da783ecefb50f4d00b2582a9d9
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d082655c3da031da783ecefb50f4d00b2582a9d9

Author: Don Mahurin <d...@mperpetuo.com>
Date:   Fri May  8 10:37:36 2015 -0700

lib/cobalt/arm64: disable kuser tsc get setting for armv8/aarch64

---

 lib/cobalt/arch/arm64/features.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/cobalt/arch/arm64/features.c b/lib/cobalt/arch/arm64/features.c
index edabcf2..7c7e76a 100644
--- a/lib/cobalt/arch/arm64/features.c
+++ b/lib/cobalt/arch/arm64/features.c
@@ -59,9 +59,13 @@ void cobalt_check_features(struct cobalt_featinfo *finfo)
 
        page_size = sysconf(_SC_PAGESIZE);
 
+#ifndef __aarch64__
        __xn_tscinfo.kuser_tsc_get =
                (__xn_rdtsc_t *)(0xffff1004 -
                                ((*(unsigned *)(0xffff0ffc) + 3) << 5));
+#else
+       __xn_tscinfo.kuser_tsc_get = 0;
+#endif
 
        phys_addr = (unsigned long)__xn_tscinfo.kinfo.counter;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to