Home | History | Annotate | Download | only in amd64
History log of /src/sys/compat/linux/arch/amd64/linux_machdep.h
RevisionDateAuthorComments
 1.15  01-Oct-2024  riastradh sys/compat/linux/arch: Nix trailing whitespace.

No functional change intended.
 1.14  07-Feb-2014  dsl branches: 1.14.66;
Convert the amd64 build to use x86/cpu_extended_state.h so that the fpu
definitions match those of i386.
Mostly just structure and field renames, in addition:
1) process_xmm_to_s87() and process_s87_to_xmm() moved into
x86/convert_xmm_s87.c so they can be used by amd64's netbsd32 code.
2) The linux signal code simplified to use a structure copy for ths fxsave
data - it matches the hardware definition and won't change.
 1.13  07-Jul-2010  chs branches: 1.13.8; 1.13.18; 1.13.22;
many changes for COMPAT_LINUX:
- update the linux syscall table for each platform.
- support new-style (NPTL) linux pthreads on all platforms.
clone() with CLONE_THREAD uses 1 process with many LWPs
instead of separate processes.
- move the contents of sys__lwp_setprivate() into a new
lwp_setprivate() and use that everywhere.
- update linux_release[] and linux32_release[] to "2.6.18".
- adjust placement of emul fork/exec/exit hooks as needed
and adjust other emul code to match.
- convert all struct emul definitions to use named initializers.
- change the pid allocator to allow multiple pids to refer to the same proc.
- remove a few fields from struct proc that are no longer needed.
- disable the non-functional "vdso" code in linux32/amd64,
glibc works fine without it.
- fix a race in the futex code where we could miss a wakeup after
a requeue operation.
- redo futex locking to be a little more efficient.
 1.12  21-Apr-2008  njoly branches: 1.12.2; 1.12.22; 1.12.24;
Rename LINUX_SHMCTL_FORCEIPC64 define to LINUX_IPC_FORCE64.
 1.11  28-Jan-2008  njoly branches: 1.11.6; 1.11.8;
Make shmctl + {IPC,SHM}_STAT work an amd64, by forcing use of IPC_64.
Following the Linux kernel behaviour.
 1.10  04-Dec-2007  dsl Remove all the __P
 1.9  24-May-2007  njoly branches: 1.9.6; 1.9.8; 1.9.14; 1.9.16;
Fix restart of interrupted system calls.

- Make linux_sys_rt_sigreturn() return EJUSTRETURN on success.
- Add missing rax to linux_sigcontext structure; and save/restore
its value like other members in linux_sendsig()/linux_sys_rt_sigreturn().

With valuable help from manu.
 1.8  23-Apr-2007  manu Linux's uname should return x86_64 as machine_arch
 1.7  14-Mar-2007  manu Add ptmx fakedevice hack for amd64
Fix a bug in ioctl handling
 1.6  14-Mar-2007  njoly Fix compat linux statfs/fstatfs syscalls on amd64.
- Do not use statfs64/fstatfs64 as they have an extra size argument.
- Add full 64bit linux struct statfs support.

ok by manu
 1.5  23-Nov-2005  manu branches: 1.5.24; 1.5.26; 1.5.30; 1.5.32;
- Add Linux tkill and tgkill (partial emulation).
- Fix getrlimit on amd64
 1.4  05-Nov-2005  manu branches: 1.4.2; 1.4.4;
Instead of ifdef'ing __amd64__ all the Linux NPTL stuff, introduce an
ifdef LINUX_NPTL.
Also implement SETTLS flag to Linux clone()
 1.3  04-Nov-2005  manu Fix machine name returned by uname on Linux
 1.2  20-May-2005  fvdl branches: 1.2.2;
Define linux_usertrap function, and set it in struct emul. For all
but amd64, it just returns 0, doing nothing.

For amd64, it implements vsyscalls through cheating: if the faulting
address is in the vsyscall area (which is statically known on Linux/amd64),
and the intruction pointer is too, it must have been a vsyscall. In that
case, retrieve the return address from the user stack, fix up %rip and
%rsp, and just execute the normal system call. It will return as if
the vsyscall has been executed.
 1.1  03-May-2005  manu First work on COMPAT_LINUX/amd64
Process startup and dynamiclinking work, but processes hang due to
Linux arch_prctl(2) not being really supported yet.
 1.2.2.4  04-Feb-2008  yamt sync with head.
 1.2.2.3  07-Dec-2007  yamt sync with head
 1.2.2.2  03-Sep-2007  yamt sync with head.
 1.2.2.1  21-Jun-2006  yamt sync with head.
 1.4.4.1  29-Nov-2005  yamt sync with head.
 1.4.2.3  11-Dec-2005  christos Sync with head.
 1.4.2.2  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.2.1  05-Nov-2005  skrll file linux_machdep.h was added on branch ktrace-lwp on 2005-11-10 14:00:59 +0000
 1.5.32.1  11-Jul-2007  mjf Sync with head.
 1.5.30.2  27-May-2007  ad Sync with head.
 1.5.30.1  10-Apr-2007  ad Sync with head.
 1.5.26.2  07-May-2007  yamt sync with head.
 1.5.26.1  24-Mar-2007  yamt sync with head.
 1.5.24.4  30-May-2007  riz Pull up following revision(s) (requested by njoly in ticket #673):
sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.23
sys/compat/linux/arch/amd64/linux_machdep.h: revision 1.9
Fix restart of interrupted system calls.
- Make linux_sys_rt_sigreturn() return EJUSTRETURN on success.
- Add missing rax to linux_sigcontext structure; and save/restore
its value like other members in linux_sendsig()/linux_sys_rt_sigreturn().
With valuable help from manu.
 1.5.24.3  13-May-2007  pavel branches: 1.5.24.3.2;
Pull up following revision(s) (requested by manu in ticket #637):
sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.21
sys/compat/linux/arch/amd64/linux_machdep.h: revision 1.7
sys/compat/linux/common/linux_termios.c: revision 1.30
Add ptmx fakedevice hack for amd64
Fix a bug in ioctl handling
 1.5.24.2  29-Apr-2007  bouyer Pull up following revision(s) (requested by manu in ticket #596):
sys/compat/linux/arch/amd64/linux_machdep.h: revision 1.8
sys/compat/linux/common/linux_sysctl.c: revision 1.27
Linux's uname should return x86_64 as machine_arch
 1.5.24.1  20-Apr-2007  bouyer Pull up following revision(s) (requested by njoly in ticket #581):
sys/compat/linux/common/linux_misc.c: revision 1.168
sys/compat/linux/arch/amd64/syscalls.master: revision 1.18
sys/compat/linux/common/linux_types.h: revision 1.25
sys/compat/linux/arch/amd64/linux_machdep.h: revision 1.6
sys/compat/linux/common/linux_misc_notalpha.c: revision 1.87
Fix compat linux statfs/fstatfs syscalls on amd64.
- Do not use statfs64/fstatfs64 as they have an extra size argument.
- Add full 64bit linux struct statfs support.
 1.5.24.3.2.1  04-Jun-2007  wrstuden Update to today's netbsd-4.
 1.9.16.1  08-Dec-2007  ad Sync with head.
 1.9.14.2  18-Feb-2008  mjf Sync with HEAD.
 1.9.14.1  08-Dec-2007  mjf Sync with HEAD.
 1.9.8.2  23-Mar-2008  matt sync with HEAD
 1.9.8.1  09-Jan-2008  matt sync with HEAD
 1.9.6.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.11.8.1  18-May-2008  yamt sync with head.
 1.11.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.12.24.1  05-Mar-2011  rmind sync with head
 1.12.22.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.12.2.1  11-Aug-2010  yamt sync with head.
 1.13.22.1  18-May-2014  rmind sync with head
 1.13.18.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.8.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.66.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed