aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux32
Commit message (Collapse)AuthorAgeFilesLines
* Retire write-only PCB_GS32BIT pcb flag on amd64.Dmitry Chagin2013-05-092-3/+2
| | | | Notes: svn path=/head/; revision=250423
* Reduce duplication between i386/linux/linux.h and amd64/linux32/linux.hJohn Baldwin2013-01-292-160/+1
| | | | | | | | | | by moving bits that are MI out into headers in compat/linux. Reviewed by: Chagin Dmitry dmitry | gmail MFC after: 2 weeks Notes: svn path=/head/; revision=246085
* Don't assume that all Linux TCP-level socket options are identical toJohn Baldwin2013-01-231-0/+7
| | | | | | | | | | | FreeBSD TCP-level socket options (only the first two are). Instead, using a mapping function and fail unsupported options as we do for other socket option levels. MFC after: 2 weeks Notes: svn path=/head/; revision=245849
* Revert previous commit...Kevin Lo2012-10-101-1/+1
| | | | | | | Pointyhat to: kevlo (myself) Notes: svn path=/head/; revision=241394
* Prefer NULL over 0 for pointersKevin Lo2012-10-091-1/+1
| | | | Notes: svn path=/head/; revision=241370
* Regenerate system call tables.Ed Schouten2012-05-255-10/+10
| | | | Notes: svn path=/head/; revision=236027
* Remove use of non-ISO-C integer types from system call tables.Ed Schouten2012-05-251-2/+2
| | | | | | | | These files already use ISO-C-style integer types, so make them less inconsistent by preferring the standard types. Notes: svn path=/head/; revision=236026
* - >500 static DTrace probes for the linuxulatorAlexander Leidinger2012-05-052-0/+10
| | | | | | | | | | | | | | | | | | | | | - DTrace scripts to check for errors, performance, ... they serve mostly as examples of what you can do with the static probe;s with moderate load the scripts may be overwhelmed, excessive lock-tracing may influence program behavior (see the last design decission) Design decissions: - use "linuxulator" as the provider for the native bitsize; add the bitsize for the non-native emulation (e.g. "linuxuator32" on amd64) - Add probes only for locks which are acquired in one function and released in another function. Locks which are aquired and released in the same function should be easy to pair in the code, inter-function locking is more easy to verify in DTrace. - Probes for locks should be fired after locking and before releasing to prevent races (to provide data/function stability in DTrace, see the man-page of "dtrace -v ..." and the corresponding DTrace docs). Notes: svn path=/head/; revision=235063
* Regen for r234359.Jung-uk Kim2012-04-165-7/+7
| | | | Notes: svn path=/head/; revision=234360
* Correct an argument type of iopl syscall for Linuxulator. This also fixesJung-uk Kim2012-04-161-1/+1
| | | | | | | a warning from Clang, i. e., "args->level < 0 is always false". Notes: svn path=/head/; revision=234359
* Regen for r234357.Jung-uk Kim2012-04-165-31/+16
| | | | Notes: svn path=/head/; revision=234358
* Correct arguments of stat64, fstat64 and lstat64 syscalls for Linuxulator.Jung-uk Kim2012-04-161-6/+6
| | | | Notes: svn path=/head/; revision=234357
* Regen for r234352.Jung-uk Kim2012-04-165-10/+27
| | | | Notes: svn path=/head/; revision=234354
* - Implement pipe2 syscall for Linuxulator. This syscall appeared in 2.6.27Jung-uk Kim2012-04-163-22/+2
| | | | | | | | | | | | | but GNU libc used it without checking its kernel version, e. g., Fedora 10. - Move pipe(2) implementation for Linuxulator from MD files to MI file, sys/compat/linux/linux_file.c. There is no MD code for this syscall at all. - Correct an argument type for pipe() from l_ulong * to l_int *. Probably this was the source of MI/MD confusion. Reviewed by: emulation Notes: svn path=/head/; revision=234352
* regenAlexander Leidinger2012-03-105-7/+583
| | | | Notes: svn path=/head/; revision=232800
* - add comments to syscalls.master and linux(32)_dummy about which linuxAlexander Leidinger2012-03-102-1/+102
| | | | | | | | | | | | | kernel version introduced the sysctl (based upon a linux man-page) - add comments to sscalls.master regarding some names of sysctls which are different than the linux-names (based upon the linux unistd.h) - add some dummy sysctls - name an unimplemented sysctl MFC after: 1 month Notes: svn path=/head/; revision=232799
* Convert files to UTF-8Ulrich Spörlein2012-01-153-3/+3
| | | | Notes: svn path=/head/; revision=230132
* Regen.John Baldwin2011-12-295-10/+64
| | | | Notes: svn path=/head/; revision=228958
* Implement linux_fadvise64() and linux_fadvise64_64() usingJohn Baldwin2011-12-293-4/+15
| | | | | | | | | | kern_posix_fadvise(). Reviewed by: silence on emulation@ MFC after: 2 weeks Notes: svn path=/head/; revision=228957
* - Add the ffclock_getcounter(), ffclock_getestimate() and ffclock_setestimate()Lawrence Stewart2011-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | system calls to provide feed-forward clock management capabilities to userspace processes. ffclock_getcounter() returns the current value of the kernel's feed-forward clock counter. ffclock_getestimate() returns the current feed-forward clock parameter estimates and ffclock_setestimate() updates the feed-forward clock parameter estimates. - Document the syscalls in the ffclock.2 man page. - Regenerate the script-derived syscall related files. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) Notes: svn path=/head/; revision=227776
* Regenerate system call tables.Ed Schouten2011-11-195-7/+12
| | | | Notes: svn path=/head/; revision=227694
* Make the Linux *at() calls a bit more complete.Ed Schouten2011-11-191-2/+2
| | | | | | | | | | Properly support: - AT_EACCESS for faccessat(), - AT_SYMLINK_FOLLOW for linkat(). Notes: svn path=/head/; revision=227693
* Regenerate system call tables.Ed Schouten2011-11-195-8/+8
| | | | Notes: svn path=/head/; revision=227692
* Improve *access*() parameter name consistency.Ed Schouten2011-11-191-2/+2
| | | | | | | | | | | | The current code mixes the use of `flags' and `mode'. This is a bit confusing, since the faccessat() function as a `flag' parameter to store the AT_ flag. Make this less confusing by using the same name as used in the POSIX specification -- `amode'. Notes: svn path=/head/; revision=227691
* Correct the types of the arguments to return probes of the syscallRyan Stone2011-11-111-1/+1166
| | | | | | | | | | | provider. Previously we were erroneously supplying the argument types of the corresponding entry probe. Reviewed by: rpaulo MFC after: 1 week Notes: svn path=/head/; revision=227441
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.Ed Schouten2011-11-071-1/+1
| | | | | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static. Notes: svn path=/head/; revision=227309
* Auto-generated code from sys_ prefixing makesyscalls.sh changeKip Macy2011-09-161-42/+42
| | | | | | | Approved by: re(bz) Notes: svn path=/head/; revision=225618
* In order to maximize the re-usability of kernel code in user space thisKip Macy2011-09-161-3/+3
| | | | | | | | | | | | | | | | patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz) Notes: svn path=/head/; revision=225617
* Second-to-last commit implementing Capsicum capabilities in the FreeBSDRobert Watson2011-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel for FreeBSD 9.0: Add a new capability mask argument to fget(9) and friends, allowing system call code to declare what capabilities are required when an integer file descriptor is converted into an in-kernel struct file *. With options CAPABILITIES compiled into the kernel, this enforces capability protection; without, this change is effectively a no-op. Some cases require special handling, such as mmap(2), which must preserve information about the maximum rights at the time of mapping in the memory map so that they can later be enforced in mprotect(2) -- this is done by narrowing the rights in the existing max_protection field used for similar purposes with file permissions. In namei(9), we assert that the code is not reached from within capability mode, as we're not yet ready to enforce namespace capabilities there. This will follow in a later commit. Update two capability names: CAP_EVENT and CAP_KEVENT become CAP_POST_KEVENT and CAP_POLL_KEVENT to more accurately indicate what they represent. Approved by: re (bz) Submitted by: jonathan Sponsored by: Google Inc Notes: svn path=/head/; revision=224778
* Revert r220032:linux compat: add SO_PASSCRED option with basic handlingAndriy Gapon2011-03-311-1/+0
| | | | | | | | | | | | | I have not properly thought through the commit. After r220031 (linux compat: improve and fix sendmsg/recvmsg compatibility) the basic handling for SO_PASSCRED is not sufficient as it breaks recvmsg functionality for SCM_CREDS messages because now we would need to handle sockcred data in addition to cmsgcred. And that is not implemented yet. Pointyhat to: avg Notes: svn path=/head/; revision=220186
* linux compat: add SO_PASSCRED option with basic handlingAndriy Gapon2011-03-261-0/+1
| | | | | | | | | | | This seems to have been a part of a bigger patch by dchagin that either haven't been committed or committed partially. Submitted by: dchagin, nox MFC after: 2 weeks Notes: svn path=/head/; revision=220032
* linux compat: add non-dummy capget and capset system calls, regenerateAndriy Gapon2011-03-266-12/+38
| | | | | | | | | | | | | And drop dummy definitions for those system calls. This may transiently break the build. PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks Notes: svn path=/head/; revision=220030
* linux compat: add non-dummy capget and capset system callsAndriy Gapon2011-03-261-2/+4
| | | | | | | | | | PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks Notes: svn path=/head/; revision=220028
* Export the correct AT_PLATFORM value.Dmitry Chagin2011-03-261-2/+1
| | | | | | | | | | Since signal trampolines are copied to the shared page do not need to leave place on the stack for it. Forgotten in the previous commit. MFC after: 1 Week Notes: svn path=/head/; revision=220026
* Enable shared page use for amd64/linux32 and i386/linux binaries.Dmitry Chagin2011-03-132-16/+15
| | | | | | | | | Move signal trampoline code from the top of the stack to the shared page. MFC after: 2 Weeks Notes: svn path=/head/; revision=219609
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAndriy Gapon2011-03-125-3/+5431
| | | | | | | | | | | | Regenerate system call and systrace support files. PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (earlier version) MFC after: 3 weeks Notes: svn path=/head/; revision=219560
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAndriy Gapon2011-03-123-5/+7
| | | | | | | | | | | | | This commits makes necessary changes in syscall/sysent generation infrastructure. PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (ealier version) MFC after: 3 weeks Notes: svn path=/head/; revision=219559
* Extend struct sysvec with new method sv_schedtail, which is used for anDmitry Chagin2011-03-081-4/+1
| | | | | | | | | | | | | | | | | | explicit process at fork trampoline path instead of eventhadler(schedtail) invocation for each child process. Remove eventhandler(schedtail) code and change linux ABI to use newly added sysvec method. While here replace explicit comparing of module sysentvec structure with the newly created process sysentvec to detect the linux ABI. Discussed with: kib MFC after: 2 Week Notes: svn path=/head/; revision=219405
* Remove dead code.Dmitry Chagin2011-03-071-2/+0
| | | | | | | MFC after: 1 Week Notes: svn path=/head/; revision=219364
* For realtime signals fill the sigval value.Dmitry Chagin2011-02-151-0/+1
| | | | Notes: svn path=/head/; revision=218720
* Sort include files in the alphabetical order.Dmitry Chagin2011-02-131-1/+1
| | | | Notes: svn path=/head/; revision=218658
* Move linux_clone(), linux_fork(), linux_vfork() to a MI path.Dmitry Chagin2011-02-122-242/+1
| | | | Notes: svn path=/head/; revision=218616
* In preparation for moving linux_clone() to a MI pathDmitry Chagin2011-02-122-1/+12
| | | | | | | introduce linux_set_upcall_kse(). Notes: svn path=/head/; revision=218613
* In preparation for moving linux_clone () to a MI pathDmitry Chagin2011-02-121-40/+46
| | | | | | | | | move the TLS code in a separate function. Use function parameter instead of direct using register. Notes: svn path=/head/; revision=218612
* Regen for r218610.Dmitry Chagin2011-02-123-4/+4
| | | | Notes: svn path=/head/; revision=218611
* The fourth argument of linux_clone is a pointer to the TLS. Change clone ↵Dmitry Chagin2011-02-121-2/+1
| | | | | | | syscall definition to match actual linux one. Notes: svn path=/head/; revision=218610
* Regen for r218101.Dmitry Chagin2011-01-301-3/+3
| | | | | | | MFC after: 1 Month. Notes: svn path=/head/; revision=218103
* Change linux futex syscall definition to match actual linux one.Dmitry Chagin2011-01-301-2/+2
| | | | | | | MFC after: 1 Month. Notes: svn path=/head/; revision=218101
* The kern_wait() code already removes the SIGCHLD signal for the waitedDmitry Chagin2011-01-301-7/+0
| | | | | | | | | | | | process. Removing other SIGCHLD signals is not needed and may cause problems. Pointed out by: jilles MFC after: 1 Month. Notes: svn path=/head/; revision=218100
* My style(9) bug.Dmitry Chagin2011-01-291-1/+3
| | | | | | | | | Pointed out by: kib MFC after: 1 Month. Notes: svn path=/head/; revision=218059