Go to file
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
boot Fixed a number of complaints about missing return statements. 2010-01-28 13:17:07 +00:00
commands Man-pages on mkdep, cdprobe, loadramdisk and newroot; thanks to Antoine Leca 2010-02-02 15:10:00 +00:00
docs Drivers and servers are simply known as services. 2009-12-17 01:53:26 +00:00
drivers Fix some incorrect testing of bit flags. 2010-02-02 12:24:35 +00:00
etc dec21140A ethernet driver for virtualpc, contributed by nicolas tittley. 2010-01-26 10:20:18 +00:00
include Increase process table size 2010-01-27 18:37:12 +00:00
kernel This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
lib Fixed a number of complaints about missing return statements. 2010-01-28 13:17:07 +00:00
man Add smallbunzip2 to bzip2 man-page 2010-02-02 15:26:12 +00:00
servers Man-pages on mkdep, cdprobe, loadramdisk and newroot; thanks to Antoine Leca 2010-02-02 15:10:00 +00:00
test Man-pages on mkdep, cdprobe, loadramdisk and newroot; thanks to Antoine Leca 2010-02-02 15:10:00 +00:00
tools bump version number to 3.1.6, copyright year to 2010. 2010-01-27 16:19:50 +00:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00