ad
0efea177e3
Remove LKMs and switch to the module framework, pass 1.
...
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
christos
e4b18f1168
populate init_thread_area.
2008-10-28 18:37:41 +00:00
jmcneill
1b69e667f6
Need opt_multiprocessor.h for MULTIPROCESSOR definition.
2008-10-26 22:33:03 +00:00
christos
fbc6c6a8e6
changes from pengo that make initializing skype more reliable.
2008-10-26 20:46:05 +00:00
christos
3ce1cee82d
regen.
2008-10-26 20:26:53 +00:00
christos
b5a45a5fad
catch up with i386 changes.
2008-10-26 20:25:49 +00:00
christos
1b9e833438
multiprocessor fixes, from rmind
2008-10-26 20:22:01 +00:00
christos
1b618d0f6e
use a symbolic constant instead of 6.
2008-10-26 17:57:49 +00:00
christos
60485d403e
use GUGS_SEL instead of 3.
2008-10-26 17:42:37 +00:00
christos
68a065aac1
regen
2008-10-26 16:38:41 +00:00
christos
5dfa1e6b4a
futex support fixes from FreeBSD via cube+pengo.
2008-10-26 16:38:22 +00:00
ad
49169f6211
Assert that the segment descriptors we generate for TLS will not allow
...
privilege elevation.
2008-10-26 11:02:14 +00:00
christos
a893abf3f5
regen
2008-10-26 03:44:04 +00:00
christos
86f314b4bf
don't forget the percpu stuff and load gs immediately.
2008-10-26 03:43:42 +00:00
christos
47ab401cc8
fix include order; machdep needs to be first for LINUX_NPTL to be defined.
2008-10-26 02:00:57 +00:00
christos
f6382710ee
Add preliminary tls support for i386. Does not work yet. From FreeBSD.
2008-10-25 23:38:28 +00:00
njoly
d05df800a8
Do not use native_to_linux_si_code() outside LINUX_NPTL; until i
...
figure a better way to handle it.
2008-10-21 21:52:29 +00:00
njoly
beff3f7516
Remove LINUX_SI_xxx from MI siginfo.h, that should not have been
...
committed. Rather add them to amd64 MD header.
Fix compilation failures on non x86 archs.
2008-10-21 20:24:15 +00:00
njoly
d7732b5cc7
Add native to linux siginfo si_code translation, mostly for negative
...
values. Adjust amd64 and i386 accordingly, not sure about aother archs
i can't test.
2008-10-19 09:44:31 +00:00
njoly
d0b5229aea
Remove unneeded linux_sigaction.c
2008-10-17 20:17:19 +00:00
christos
95ffbb8bc9
Define a PSL_CLEARSIG macro for the psl flags to be cleared on signal delivery
...
and use it everywhere.
2008-09-18 15:57:04 +00:00
jmcneill
551b501a8f
linux_sys_rt_sigreturn: properly restore stack flags, pointed out by
...
Juan RP and modified by myself. ok christos@
2008-08-01 18:49:28 +00:00
njoly
06e75299f3
Move amd64 MD termois types definitions from linux_termios.h to linux_types.h
...
following other archs.
2008-06-29 08:50:09 +00:00
tsutsui
5ff92ba4da
Regen from syscalls.master rev 1.62:
...
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-18 12:23:06 +00:00
tsutsui
181592d5b7
Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-18 12:21:20 +00:00
njoly
4c3e8d3656
Fix free() argument in linux_read_ldt.
2008-05-19 09:36:55 +00:00
jmcneill
9e5e643a12
Pull in machine/cpufunc.h for wrmsr definition.
2008-05-11 17:13:43 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
ad
284c2b9aef
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
...
we no longer need to guard against access from hardware interrupt handlers.
Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.
2008-04-24 18:39:20 +00:00
ad
bfb6f31431
Disable bitrotted linux ptrace interfaces, which are likely now a
...
security hole. Can be re-enabled at runtime. If you want to repair
them please look at the native implementation.
2008-04-23 14:18:50 +00:00
ad
dd55791531
Regen.
2008-04-23 14:10:03 +00:00
ad
7cb840338e
-SYCALL_MPSAFE
2008-04-23 14:07:49 +00:00
njoly
f1bd64daf3
Rename LINUX_SHMCTL_FORCEIPC64 define to LINUX_IPC_FORCE64.
2008-04-21 22:38:18 +00:00
njoly
2b6f0cc5e4
Regen for linux_sys_msync removal.
2008-04-04 12:43:00 +00:00
njoly
dcde97da0e
Cleanup. Kill linux_sys_msync and use sys___msync13 instead.
...
No functional changes expected.
2008-04-04 12:38:52 +00:00
ad
a9ca7a3734
Catch up with descriptor handling changes. See kern_descrip.c revision
...
1.173 for details.
2008-03-21 21:54:58 +00:00
dsl
7e5ac7072d
Extract the fcntl64() suppoort from linux_file64.c into linux_fcntl64.c
...
Unravel some of the knots that caused linux_file64.c to be compiled twice
for an amd64 kernel (once for linux and once for linux32) with different
parts being skipped each time.
2008-02-02 19:37:52 +00:00
njoly
4eecf433ec
Make shmctl + {IPC,SHM}_STAT work an amd64, by forcing use of IPC_64.
...
Following the Linux kernel behaviour.
2008-01-28 14:31:35 +00:00
njoly
f5183fca22
Regen.
2008-01-15 22:40:14 +00:00
njoly
5cec0f492f
compat linux (and linux32) uid16 functions cleanup and fixes.
...
- Move uid16 functions to their own file linux_uid16.c, included by
needed archs (arm, i386 and m68k).
- Add new MI types linux_{u,g}id16_t.
- Add macros to handle linux_uid16_t and uid_t conversions.
- Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with
bad sizes given to copyout when linux_sys_getres{uid,gid} are used.
- Update arm syscall table to use more uid16 functions.
2008-01-15 22:38:34 +00:00
elad
2395a8f2d2
In linux_sys_sysmips(), remove redundant kauth(9) call for LINUX_SETNAME
...
as the permission check is done by old_sysctl().
okay christos@.
2008-01-08 22:09:48 +00:00
dsl
902612f1f5
Use the new names (_REG_RFLAGS and _REG_RSP) for the indexes of __gregs[]
...
which match the names of in the trapframe and .S code.
2008-01-05 19:11:53 +00:00
perry
b6a2ef7569
Convert many of the uses of __attribute__ to equivalent
...
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
njoly
24eca5e1f1
Regen for linux_sys_getpgid removal.
2007-12-24 14:21:40 +00:00
njoly
47bf9f4b4d
Kill unneeded linux_sys_getpgid and use native sys_getpgid instead.
2007-12-24 14:17:17 +00:00
njoly
90dee75246
Regen for getfsuid/setfsgid syscall exchange.
2007-12-21 22:28:41 +00:00
njoly
035a2e040b
- Fix setfsuid to return uid on success.
...
- Replace getfsuid, which never existed on Linux, by correct setfsgid
syscall.
ok by christos and dsl.
2007-12-21 22:26:20 +00:00
matt
39a278be7e
Make this compile again.
2007-12-21 02:27:57 +00:00
dsl
6fb2884c3a
regen
2007-12-20 23:07:25 +00:00
dsl
7e2790cf6f
Convert all the system call entry points from:
...
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00