minix/kernel/arch/i386
Tomas Hruby cca24d06d8 This patch removes the global variables who_p and who_e from the
kernel (sys task).  The main reason is that these would have to become
cpu local variables on SMP.  Once the system task is not a task but a
genuine part of the kernel there is even less reason to have these
extra variables as proc_ptr will already contain all neccessary
information. In addition converting who_e to the process pointer and
back again all the time will be avoided.

Although proc_ptr will contain all important information, accessing it
as a cpu local variable will be fairly expensive, hence the value
would be assigned to some on stack local variable. Therefore it is
better to add the 'caller' argument to the syscall handlers to pass
the value on stack anyway. It also clearly denotes on who's behalf is
the syscall being executed.

This patch also ANSIfies the syscall function headers.

Last but not least, it also fixes a potential bug in virtual_copy_f()
in case the check is disabled. So far the function in case of a
failure could possible reuse an old who_p in case this function had
not been called from the system task.

virtual_copy_f() takes the caller as a parameter too. In case the
checking is disabled, the caller must be NULL and non NULL if it is
enabled as we must be able to suspend the caller.
2010-02-03 09:04:48 +00:00
..
include Fix brackets in kernel/arch/i386/include/archconst.h 2010-01-06 08:46:33 +00:00
apic.c Removed a number of useless #includes 2010-01-26 10:59:01 +00:00
apic.h NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00
apic_asm.h Local APIC 2009-11-16 21:41:44 +00:00
apic_asm.S Local APIC 2009-11-16 21:41:44 +00:00
arch_do_vmctl.c Fixed some type inconsistencies in the kernel. 2010-01-26 12:26:06 +00:00
clock.c Removed unused symbols. 2010-01-25 18:13:48 +00:00
clock.h Removed unused symbols. 2010-01-25 18:13:48 +00:00
do_int86.c This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
do_iopenable.c This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
do_readbios.c This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
do_sdevio.c This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
exception.c Removed a number of useless #includes 2010-01-26 10:59:01 +00:00
glo.h Local APIC 2009-11-16 21:41:44 +00:00
hw_intr.h Fixed some type inconsistencies in the kernel. 2010-01-26 12:26:06 +00:00
i8259.c Fixed some type inconsistencies in the kernel. 2010-01-26 12:26:06 +00:00
klib386.S Cooments to warn not to use certains instructions 2009-12-07 12:01:05 +00:00
Makefile NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00
memory.c This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
mpx386.S NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00
protect.c Removed unused symbols. 2010-01-25 18:13:48 +00:00
proto.h Removed unused symbols. 2010-01-25 18:13:48 +00:00
sconst.h NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00
system.c Removed a number of useless #includes 2010-01-26 10:59:01 +00:00
watchdog.c Fixed warnings in watchdog.c 2010-01-19 14:47:25 +00:00
watchdog.h NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00