thorpej
4db6fc7542
Make need_resched() take a "struct cpu_info *" argument. This
...
causes gives a primitive form of processor affinity. Its use in
roundrobin() still needs some work.
2000-08-25 01:04:06 +00:00
christos
e2bcf6b0b5
add support for sigaltstack(2) needed for jvm-1.3 support.
...
XXX: Only on i386, don't have access to other linuxes...
2000-08-23 17:02:18 +00:00
tv
1d8f5f2ea3
Pretend to do something useful (just fill in oldsigaction with SIG_IGN and
...
zeroes) if the mapped signal number comes up zero. Previously, sigaction1()
would return an error, confusing some linux apps trying to set handlers for
"all" signals.
2000-08-09 20:20:49 +00:00
itohy
3630c53733
Add #include <sys/proc.h>, since this file touches members of struct proc.
2000-08-07 02:51:04 +00:00
tron
597ed25d3d
Adoid excessive use of "return" in "excessive()".
2000-07-28 21:49:09 +00:00
tron
db4919f6b7
Use "NULL" and not "0" for null pointers.
2000-07-28 21:38:44 +00:00
thorpej
c55e09bd44
Add a comment about the hzto() return value.
2000-07-13 17:32:06 +00:00
mrg
c48063facd
remove include of <vm/vm.h>
2000-06-29 02:40:37 +00:00
mrg
f4e210fb2c
remove redundant vm includes
2000-06-26 15:26:35 +00:00
mrg
89d0a3e519
remove redundant vm includes.
2000-06-26 14:38:50 +00:00
thorpej
e03e9e8086
Rather than starting init and creating kthreads by forking and then
...
doing a cpu_set_kpc(), just pass the entry point and argument all
the way down the fork path starting with fork1(). In order to
avoid special-casing the normal fork in every cpu_fork(), MI code
passes down child_return() and the child process pointer explicitly.
This fixes a race condition on multiprocessor systems; a CPU could
grab the newly created processes (which has been placed on a run queue)
before cpu_set_kpc() would be performed.
2000-05-28 05:48:59 +00:00
thorpej
33e0776eda
Remove junk after #undef.
2000-05-03 21:41:43 +00:00
chs
a6d33cc1f2
add a new function vn_marktext() for exec code to let others know
...
that the vnode is now being used as process text.
2000-04-11 04:37:47 +00:00
chs
ef20427f07
sparc -> __sparc__
2000-04-10 01:22:44 +00:00
augustss
a82aeb5508
Kill register declarations.
2000-03-30 11:24:16 +00:00
simonb
2f1fef39b3
Centralise the declarations of cpu_model, machine, machine_arch,
...
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).
Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
thorpej
7b918b4088
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
erh
9db5981a04
Add linux_sys_reboot.
2000-03-18 22:23:13 +00:00
erh
34b72dcf4a
Add defines for linux_sys_reboot.
2000-03-18 22:01:02 +00:00
erh
fa21d7879c
Adjust linux_sys_ptrace_args to reflect inconsistencies across ports. Temporarily ifndef alpha around getfsuid since Linux/alpha doesn't seem to have it.
2000-03-18 20:42:14 +00:00
soren
95054da1a1
Fix doubled 'the's in comments.
2000-03-13 23:52:25 +00:00
abs
7ff31fc326
Update patch from Witold Wnuk in PR 9335 to solve potential security
...
issue noted by tls.
2000-02-17 12:34:26 +00:00
abs
89c5ba9f00
Add Linux fsuid system calls - from Witold J. Wnuk in PR kern/9335
2000-02-03 10:02:59 +00:00
jdolecek
600be45ffc
Improve emulation of SIOCGIFHWADDR ioctl:
...
* when finding an interface, try the real name first before faking eth*
* Linux kernel returns ENODEV if the request goes to unknown interface,
so do the same here
This change makes Linux ICA client work.
Patch sent by Zdenek Salvet <salvet@ics.muni.cz> in kern/9169.
2000-01-12 17:19:11 +00:00
tron
4aec38a7db
Move MI parts of ptrace(2) emulation to "linux_misc.c".
1999-12-16 15:09:49 +00:00
tron
c3ce0bc384
Architecture independent definitions for Linux's ptrace(2) system call.
1999-12-11 23:57:48 +00:00
tron
ea2517e20d
Add proper stub code to make emulation of Linux's pread(2) and pwrite(2)
...
work. Fixes PR kern/8945 by Dave Sainty.
1999-12-05 21:24:28 +00:00
tron
9b847640c3
Add bound checks in emulation of kill(2). This fixes the last part of
...
PR kern/8904 by Dave Sainty.
1999-12-04 22:26:52 +00:00
tron
96fdbb96a8
Add bound checks in emulation of sigaction(2). This fixes a part of
...
PR kern/8904 by Dave Sainty.
1999-12-04 22:21:12 +00:00
tron
60e5eb1dd2
Fix typo in last commit.
1999-12-04 22:17:43 +00:00
tron
f8a4b15b1c
Adapt to renamed system call argument.
1999-12-04 22:15:57 +00:00
tron
f8df357a47
Add bound checks in emulation of signal(2) and return SIG_ERR on failure.
...
This fixes a part of PR kern/8904 by Dave Sainty.
1999-12-04 22:08:36 +00:00
tron
5bc798bb82
Allow signal numbers upto 63 in clone(2) emulation.
1999-12-04 21:58:05 +00:00
erh
5779957787
undo confusion.
1999-11-02 08:02:43 +00:00
mycroft
e45ef6abcd
Emulate the Linux DVD_* ioctls(2). This gets us 90% of the way to running the
...
LiViD DVD player. (See forthcoming mail to current-users.)
XXX NOTE: We should do something to probe capabilities, rather than allowing
these ioctls on any device.
1999-10-29 15:02:56 +00:00
kleink
522cbf0248
Update to match new SVR4-style definition names in <sys/exec_elf.h>.
1999-10-25 13:55:06 +00:00
itohy
a833d94864
Add #include <machine/cpu.h> for need_resched() macro.
1999-10-21 23:24:08 +00:00
thorpej
09e277b357
Fix typos in the license notice.
1999-10-11 01:18:35 +00:00
tron
4d4888a7cb
After linux_sys_clone() has been moved to "linux_sched.c" we don't need
...
to include "linux_sched.h" any more.
1999-10-05 09:22:04 +00:00
fvdl
6c6e28d62b
Handle the newer, larger sigset_t Linux now uses.
1999-10-04 17:46:37 +00:00
tron
9b451861b9
Add emulation for scheduler related syscalls. Although they are dummies
...
even under Linux the posix thread library for "glibc2" requires them.
1999-10-04 16:55:54 +00:00
tron
0b48cdd9f8
NetBSD's signal number 11 is SIGSYS nog SIGSEGV.
1999-09-30 19:32:53 +00:00
jdolecek
cfa9258f85
Use DEBUG_LINUX exclusively. Fixes PR#7684.
1999-09-08 16:52:08 +00:00
thorpej
2c358fca82
Update for new msgctl()/semctl()/shmctl() calls.
1999-08-25 04:52:06 +00:00
tron
c3ea560498
Add emulation for Linux stime(2) required for MuPAD's X11 interface.
1999-08-16 19:06:29 +00:00
jtk
92bf84ec68
implement emulation of SIOCGIFHWADDR, PR 7997
1999-07-17 22:03:55 +00:00
jtk
c13299119a
add LINUX_SIOCGIFHWADDR
1999-07-17 21:46:28 +00:00
thorpej
c581bf97c5
A few things to make the Linux clone(2) emulation work a bit better:
...
- When the exit signal is specified to be 0, don't just assume they
meant SIGCHLD. In the Linux world, this appears to mean "don't deliver
an exit signal at all".
- Simplify P_EXITSIG(); don't check against initproc here, just change
the exit signal to SIGCHLD if reparenting to initproc.
A very simple clone(2) test program now works, and the MpegTV package
starts, but doesn't run properly yet (I believe there is a separate
bug which keeps it from working properly).
1999-07-15 23:18:41 +00:00
tron
c0567a6bc7
Add support for SETALL and GETALL to the Linux emulation of semctl()
...
and improve handling of SETVAL. Patches supplied by YAMAMOTO Jiro in
PR kern/7621.
1999-05-27 13:30:40 +00:00
thorpej
a2dc12021c
Oops, completely forgot to translate the exit signal in clone(2).
1999-05-17 19:26:33 +00:00