[LinuxPPS] Re: LinuxPPS 4.0.0 not working on x86_64
Rodolfo Giometti
giometti at enneenne.com
Wed Aug 1 10:51:57 CEST 2007
On Wed, Aug 01, 2007 at 04:36:23AM -0400, linux at horizon.com wrote:
> > However the patch _should_ work even on 64bits.
>
> No, it definitely doesn't. The following patch, however, solves that:
>
> diff --git a/include/asm-x86_64/unistd.h b/include/asm-x86_64/unistd.h
> index 8696f8a..b1baeba 100644
> --- a/include/asm-x86_64/unistd.h
> +++ b/include/asm-x86_64/unistd.h
> @@ -630,6 +630,16 @@ __SYSCALL(__NR_signalfd, sys_signalfd)
> __SYSCALL(__NR_timerfd, sys_timerfd)
> #define __NR_eventfd 284
> __SYSCALL(__NR_eventfd, sys_eventfd)
> +#define __NR_time_pps_cmd 285
> +__SYSCALL(__NR_time_pps_cmd, sys_time_pps_cmd)
> +#define __NR_time_pps_getparams 286
> +__SYSCALL(__NR_time_pps_getparams, sys_time_pps_getparams)
> +#define __NR_time_pps_setparams 287
> +__SYSCALL(__NR_time_pps_setparams, sys_time_pps_setparams)
> +#define __NR_time_pps_getcap 288
> +__SYSCALL(__NR_time_pps_getcap, sys_time_pps_getcap)
> +#define __NR_time_pps_fetch 289
> +__SYSCALL(__NR_time_pps_fetch, sys_time_pps_fetch)
>
> #ifndef __NO_STUBS
> #define __ARCH_WANT_OLD_READDIR
>
> With that applied, things work:
Great! Thanks! :)
Can you please give me a "Signed-off-by" line with your name so I can
add this patch to LinuxPPS repo?
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
More information about the LinuxPPS
mailing list