From 16e6e1185f703f7622b958c9b3e941e7270601a1 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 23 Apr 2009 12:14:30 -0700 Subject: [PATCH] MFC - Add missing files from umtx errno fixes commit. --- lib/libthread_xu/arch/amd64/amd64/_umtx_sleep_wakeup_err.S | 13 +++++++++++++ lib/libthread_xu/arch/i386/i386/_umtx_sleep_wakeup_err.S | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 lib/libthread_xu/arch/amd64/amd64/_umtx_sleep_wakeup_err.S create mode 100644 lib/libthread_xu/arch/i386/i386/_umtx_sleep_wakeup_err.S diff --git a/lib/libthread_xu/arch/amd64/amd64/_umtx_sleep_wakeup_err.S b/lib/libthread_xu/arch/amd64/amd64/_umtx_sleep_wakeup_err.S new file mode 100644 index 0000000000..3da200df65 --- /dev/null +++ b/lib/libthread_xu/arch/amd64/amd64/_umtx_sleep_wakeup_err.S @@ -0,0 +1,13 @@ +#include +#include + + +#define KERNCALL movq %rcx, %r10; syscall + +#define SYSCALL_ERR(x) \ + ENTRY(__CONCAT(x, _err)); \ + mov __CONCAT($SYS,x),%rax; KERNCALL; ret + + +SYSCALL_ERR(_umtx_sleep) +SYSCALL_ERR(_umtx_wakeup) diff --git a/lib/libthread_xu/arch/i386/i386/_umtx_sleep_wakeup_err.S b/lib/libthread_xu/arch/i386/i386/_umtx_sleep_wakeup_err.S new file mode 100644 index 0000000000..4c313ac110 --- /dev/null +++ b/lib/libthread_xu/arch/i386/i386/_umtx_sleep_wakeup_err.S @@ -0,0 +1,13 @@ +#include +#include + + +#define KERNCALL int $0x80 + +#define SYSCALL_ERR(x) \ + ENTRY(__CONCAT(x, _err)); \ + lea __CONCAT(SYS,x),%eax; KERNCALL; ret + + +SYSCALL_ERR(_umtx_sleep) +SYSCALL_ERR(_umtx_wakeup) -- 2.11.4.GIT