diff options
author | kib <kib@FreeBSD.org> | 2008-10-14 07:59:23 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-10-14 07:59:23 +0000 |
commit | faae1c0f2f76b907ebecec0a309573fcdeb15802 (patch) | |
tree | 8c29e403aec4452c44ef805ef1756fb5cb403f33 /sys/amd64 | |
parent | a3a1acfdd7d8fa969e9a27a182d0003544ccbf88 (diff) | |
download | FreeBSD-src-faae1c0f2f76b907ebecec0a309573fcdeb15802.zip FreeBSD-src-faae1c0f2f76b907ebecec0a309573fcdeb15802.tar.gz |
Make robust futexes work on linux32/amd64. Use PTRIN to read
user-mode pointers. Change types used in the structures definitions to
properly-sized architecture-specific types.
Submitted by: dchagin
MFC after: 1 week
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/linux32/linux.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 918f7ef..0acdd68 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -880,4 +880,15 @@ typedef int l_mqd_t; (LINUX_CLONE_VM | LINUX_CLONE_FS | LINUX_CLONE_FILES | \ LINUX_CLONE_SIGHAND | LINUX_CLONE_THREAD) +/* robust futexes */ +struct linux_robust_list { + l_uintptr_t next; +}; + +struct linux_robust_list_head { + struct linux_robust_list list; + l_ulong futex_offset; + l_uintptr_t pending_list; +}; + #endif /* !_AMD64_LINUX_H_ */ |