Thread (15 messages) 15 messages, 6 authors, 2017-08-11

Re: [PATCH] powerpc/vdso64: Add support for CLOCK_{REALTIME/MONOTONIC}_COARSE

From: Anton Blanchard <hidden>
Date: 2017-07-21 03:05:05

Hi,
quoted
+static notrace int gettime_syscall_fallback(clockid_t clk_id,
+					     struct timespec *tp)
+{
+	register clockid_t id asm("r3") = clk_id;
+	register struct timespec *t asm("r4") = tp;
+	register int nr asm("r0") = __NR_clock_gettime;
+	register int ret asm("r3");  
I guess this works. I've always been a bit nervous about register
variables TBH.
I don't think this works with clang unfortunately.

Anton
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help