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/i386/linux | |
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/i386/linux')
-rw-r--r-- | sys/i386/linux/linux.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 4d556c6..4f2dbe9 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -845,4 +845,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 { + struct linux_robust_list *next; +}; + +struct linux_robust_list_head { + struct linux_robust_list list; + l_ulong futex_offset; + struct linux_robust_list *pending_list; +}; + #endif /* !_I386_LINUX_H_ */ |