]> Zhao Yanbai Git Server - minix.git/log
minix.git
14 years agoNew options for release script: -m to make tiny image, ZIP to set compressor
Erik van der Kouwe [Mon, 10 May 2010 18:02:15 +0000 (18:02 +0000)]
New options for release script: -m to make tiny image, ZIP to set compressor

14 years agoPM signal handling check too strict
Tomas Hruby [Mon, 10 May 2010 14:27:22 +0000 (14:27 +0000)]
PM signal handling check too strict

- this panic may be unnecessarily triggered if PM gets the delayed
  stop signal from kernel before it gets reply from VFS to the UNPAUSE
  call.

- after this change PM does not proceed to delivering the signal until
  the reply from VFS is received. Perhaps PM could deliver the signal
  straight away as it knows that the process does not run. Possibly
 i dangerous.

- the signal is deliverd immediately after the UNPAUSE reply as the
  pending signals are always checked at the moment.

14 years agoRemoved defines not used since r6844.
Tomas Hruby [Mon, 10 May 2010 13:29:04 +0000 (13:29 +0000)]
Removed defines not used since r6844.

14 years agoUse of all NIL_* defines converted to NULL
Tomas Hruby [Mon, 10 May 2010 13:26:00 +0000 (13:26 +0000)]
Use of all NIL_* defines converted to NULL

14 years agokernel: new DEBUG_RACE option. try to provoke race conditions between processes.
Ben Gras [Sat, 8 May 2010 18:00:03 +0000 (18:00 +0000)]
kernel: new DEBUG_RACE option. try to provoke race conditions between processes.

it does this by
  - making all processes interruptible by running out of quantum
  - giving all processes a single tick of quantum
  - picking a random runnable process instead of in order, and
    from a single pool of runnable processes (no priorities)

This together with very high HZ values currently provokes some race conditions
seen earlier only when running with SMP.

14 years agovm: use arch_map2str to print pagefault info, to properly display code addrs
Ben Gras [Sat, 8 May 2010 17:25:54 +0000 (17:25 +0000)]
vm: use arch_map2str to print pagefault info, to properly display code addrs

14 years agokernel: print spurious interrupt message with increasing interval.
Ben Gras [Sat, 8 May 2010 17:21:37 +0000 (17:21 +0000)]
kernel: print spurious interrupt message with increasing interval.

14 years agoRS - fixed timeouts
Tomas Hruby [Fri, 7 May 2010 18:12:16 +0000 (18:12 +0000)]
RS - fixed timeouts

- rs does not assume hz==60

- rs adjusts its timeout ticks by the system clock frequency

- drivers have time to reply if hz is set too high (e.g. 1000+) for
  instance when debugging

14 years agopci synchronous start up
Tomas Hruby [Fri, 7 May 2010 16:23:07 +0000 (16:23 +0000)]
pci synchronous start up

- fixes a race between rs and pci

14 years agoA small mini_receive() cleanup
Tomas Hruby [Fri, 7 May 2010 11:22:49 +0000 (11:22 +0000)]
A small mini_receive() cleanup

- this patch substitutes *xpp for sender to increase readability of
  mini_receive().

- makes sure that the dequeued sender has p_q_link == NULL and that
  this condition holds when enqueuing the sender again.

- it is a sanity check to make sure that the new sender is not
  enqueued already. Before this change the dequeued sender's p_q_link
  may not be NULL and it was only set to NULL when enqueued again.

14 years agokernel: don't try to lookup ANY in debug output.
Ben Gras [Thu, 6 May 2010 22:39:11 +0000 (22:39 +0000)]
kernel: don't try to lookup ANY in debug output.

14 years agokernel: increase some per-process privilege limits.
Ben Gras [Thu, 6 May 2010 22:21:08 +0000 (22:21 +0000)]
kernel: increase some per-process privilege limits.

14 years agoFix Inet initialization race.
Cristiano Giuffrida [Thu, 6 May 2010 22:18:21 +0000 (22:18 +0000)]
Fix Inet initialization race.

14 years agoSmall cleanup of dead and/or redundant code.
Thomas Veerman [Thu, 6 May 2010 09:32:40 +0000 (09:32 +0000)]
Small cleanup of dead and/or redundant code.

14 years agovm: remove leftover diag print
Ben Gras [Wed, 5 May 2010 15:26:48 +0000 (15:26 +0000)]
vm: remove leftover diag print

14 years agofsctl.h doesn't exist.
Ben Gras [Wed, 5 May 2010 11:49:41 +0000 (11:49 +0000)]
fsctl.h doesn't exist.

14 years agosecondary cache feature in vm.
Ben Gras [Wed, 5 May 2010 11:35:04 +0000 (11:35 +0000)]
secondary cache feature in vm.

A new call to vm lets processes yield a part of their memory to vm,
together with an id, getting newly allocated memory in return. vm is
allowed to forget about it if it runs out of memory. processes can ask
for it back using the same id. (These two operations are normally
combined in a single call.)

It can be used as a as-big-as-memory-will-allow block cache for
filesystems, which is how mfs now uses it.

14 years agoLet memory allocation be aligned on 8-byte boundaries.
Kees van Reeuwijk [Tue, 4 May 2010 21:02:44 +0000 (21:02 +0000)]
Let memory allocation be aligned on 8-byte boundaries.

14 years agotty: don't use custom kputc; this fixes tty printf()s.
Ben Gras [Tue, 4 May 2010 09:26:01 +0000 (09:26 +0000)]
tty: don't use custom kputc; this fixes tty printf()s.

14 years agoawk Makefile: make yacc less chatty to stderr.
Ben Gras [Tue, 4 May 2010 09:23:31 +0000 (09:23 +0000)]
awk Makefile: make yacc less chatty to stderr.

14 years agolibc: malloc: don't enable SLOWDEBUG by default
Ben Gras [Mon, 3 May 2010 22:54:51 +0000 (22:54 +0000)]
libc: malloc: don't enable SLOWDEBUG by default

14 years agodriver.h: increase max no. of open minors.
Ben Gras [Mon, 3 May 2010 19:43:54 +0000 (19:43 +0000)]
driver.h: increase max no. of open minors.

14 years agoExtra assertions on free if SLOWDEBUG is enabled: check whether the block exists...
Erik van der Kouwe [Mon, 3 May 2010 19:42:08 +0000 (19:42 +0000)]
Extra assertions on free if SLOWDEBUG is enabled: check whether the block exists and has not been freed before

14 years agoAdd syslib function to obtain CPU frequency
Erik van der Kouwe [Mon, 3 May 2010 19:41:04 +0000 (19:41 +0000)]
Add syslib function to obtain CPU frequency

14 years agodeadlock() - more info
Tomas Hruby [Mon, 3 May 2010 17:38:54 +0000 (17:38 +0000)]
deadlock() - more info

- deadlock() is more verbose in case of a detected deadlock. First, it
  lists all processses in the deadlock group. Then it prints the proc
  extra info, not only  stack trace and register dump

14 years agodebugging - printing processes on serial
Tomas Hruby [Mon, 3 May 2010 17:37:18 +0000 (17:37 +0000)]
debugging - printing processes on serial

- this patch moves the former printslot() from arch_system.c to
  debug.c and reimplements it slightly. The output is not changed,
  however, the process information is printed in a separate function
  print_proc() in debug.c as such a function is also handy in other
  situations and should be publicly available when debugging.

14 years ago- Add test52 to test FPU context switching
Thomas Veerman [Mon, 3 May 2010 15:12:39 +0000 (15:12 +0000)]
- Add test52 to test FPU context switching
- Make test/run count how many tests it's going to perform instead of having to
  manually update it ourselves.

14 years agoPut the munmap and munmap_text trampolines in a separate .S file, so that they can...
Kees van Reeuwijk [Thu, 29 Apr 2010 20:12:56 +0000 (20:12 +0000)]
Put the munmap and munmap_text trampolines in a separate .S file, so that they can be overridden independenly of mmap.

14 years agoMake mdb compile in other places than just /usr/src.
Kees van Reeuwijk [Thu, 29 Apr 2010 20:05:01 +0000 (20:05 +0000)]
Make mdb compile in other places than just /usr/src.

14 years agocpufeature() - rename _SSEx and correct logic in cpufeature() in lib
Ben Gras [Thu, 29 Apr 2010 19:08:49 +0000 (19:08 +0000)]
cpufeature() - rename _SSEx and correct logic in cpufeature() in lib

14 years agoAllow loading images > 16M
Erik van der Kouwe [Thu, 29 Apr 2010 15:14:07 +0000 (15:14 +0000)]
Allow loading images > 16M

14 years agokernel: more diagnostics for privctl ENOMEM conditions.
Ben Gras [Thu, 29 Apr 2010 08:50:52 +0000 (08:50 +0000)]
kernel: more diagnostics for privctl ENOMEM conditions.

14 years agors: stacktrace if system process exits early.
Ben Gras [Thu, 29 Apr 2010 08:50:17 +0000 (08:50 +0000)]
rs: stacktrace if system process exits early.

14 years agoDon't panic when out of priv structures.
Cristiano Giuffrida [Wed, 28 Apr 2010 20:41:23 +0000 (20:41 +0000)]
Don't panic when out of priv structures.

14 years agoFix wrong word
Erik van der Kouwe [Wed, 28 Apr 2010 20:37:08 +0000 (20:37 +0000)]
Fix wrong word

14 years agoat_wini: remove unnecessary quirks debug message
Ben Gras [Wed, 28 Apr 2010 14:19:40 +0000 (14:19 +0000)]
at_wini: remove unnecessary quirks debug message

14 years agokernel: fpu_init: only enable OSXMMEXCPT in CR4 on at least SSE1 machines.
Ben Gras [Wed, 28 Apr 2010 13:51:02 +0000 (13:51 +0000)]
kernel: fpu_init: only enable OSXMMEXCPT in CR4 on at least SSE1 machines.

Found and debugged by totalinux at yandex.ru and Evgeniy Ivanov, thanks!

14 years agokernel: fpu init to separate function; also move fpu init down
Ben Gras [Wed, 28 Apr 2010 13:25:29 +0000 (13:25 +0000)]
kernel: fpu init to separate function; also move fpu init down

moving the fpu code causes exceptions raised by it to be trapped
neatly instead of causing a triple fault, before the IDT is initialized.

14 years agoScan all processes for that might be blocked on a lock
Thomas Veerman [Wed, 28 Apr 2010 11:54:22 +0000 (11:54 +0000)]
Scan all processes for that might be blocked on a lock

14 years agoat_wini: more general system to allow devices that behave like ata controllers.
Ben Gras [Wed, 28 Apr 2010 11:52:28 +0000 (11:52 +0000)]
at_wini: more general system to allow devices that behave like ata controllers.

(let silicon image sata controller that is pci class 1, subclass 0x80,
but works as a sata controller, work as such.)

14 years agopci: don't do sanity check for missing pci bus, the check can misfire.
Ben Gras [Wed, 28 Apr 2010 11:51:13 +0000 (11:51 +0000)]
pci: don't do sanity check for missing pci bus, the check can misfire.

14 years agotty: try more often to get the config byte.
Ben Gras [Wed, 28 Apr 2010 11:50:54 +0000 (11:50 +0000)]
tty: try more often to get the config byte.

14 years agoAvoid sbrk (in favour of malloc) in RS where possible
Erik van der Kouwe [Wed, 28 Apr 2010 08:35:54 +0000 (08:35 +0000)]
Avoid sbrk (in favour of malloc) in RS where possible

14 years agoFix types in debug register functions
Erik van der Kouwe [Wed, 28 Apr 2010 08:35:05 +0000 (08:35 +0000)]
Fix types in debug register functions

14 years agoEnable malloc assertions
Erik van der Kouwe [Wed, 28 Apr 2010 08:34:19 +0000 (08:34 +0000)]
Enable malloc assertions

14 years agoAdd timeout for test 7 to indicate which test (if any) hangs
Erik van der Kouwe [Wed, 28 Apr 2010 08:33:23 +0000 (08:33 +0000)]
Add timeout for test 7 to indicate which test (if any) hangs

14 years agopagefault() is private
Tomas Hruby [Tue, 27 Apr 2010 20:30:33 +0000 (20:30 +0000)]
pagefault() is private

14 years agomtree: no more /lib and /lib/i386.
Ben Gras [Tue, 27 Apr 2010 13:44:48 +0000 (13:44 +0000)]
mtree: no more /lib and /lib/i386.

14 years agoAdd missing newline at end of file
Erik van der Kouwe [Tue, 27 Apr 2010 13:30:46 +0000 (13:30 +0000)]
Add missing newline at end of file

14 years agoRemove debug printfs in breakpoints.c, they should never have been there
Erik van der Kouwe [Tue, 27 Apr 2010 12:25:04 +0000 (12:25 +0000)]
Remove debug printfs in breakpoints.c, they should never have been there

14 years agoUnified crash recovery and live update.
Cristiano Giuffrida [Tue, 27 Apr 2010 11:17:30 +0000 (11:17 +0000)]
Unified crash recovery and live update.

RS CHANGES:
- Crash recovery is now implemented like live update. Two instances are kept
side by side and the dead version is live updated into the new one. The endpoint
doesn't change and the failure is not exposed (by default) to other system
services.
- The new instance can be created reactively (when a crash is detected) or
proactively. In the latter case, RS can be instructed to keep a replica of
the system service to perform a hot swap when the service fails. The flag
SF_USE_REPL is set in that case.
- The new flag SF_USE_REPL is supported for services in the boot image and
dynamically started services through the RS interface (i.e. -p option in the
service utility).
- Fixed a free unallocated memory bug for core system services.

14 years agoRemoved unused prototype
Tomas Hruby [Mon, 26 Apr 2010 23:39:05 +0000 (23:39 +0000)]
Removed unused prototype

14 years agoChanged pagefault delivery to VM
Tomas Hruby [Mon, 26 Apr 2010 23:21:26 +0000 (23:21 +0000)]
Changed pagefault delivery to VM

this patch changes the way pagefaults are delivered to VM. It adopts
the same model as the out-of-quantum messages sent by kernel to a
scheduler.

- everytime a userspace pagefault occurs, kernel creates a message
  which is sent to VM on behalf of the faulting process

- the process is blocked on delivery to VM in the standard IPC code
  instead of waiting in a spacial in-kernel queue (stack) and is not
  runnable until VM tell kernel that the pagefault is resolved and is
  free to clear the RTS_PAGEFAULT flag.

- VM does not need call kernel and poll the pagefault information
  which saves many (1/2?) calls and kernel calls that return "no more
  data"

- VM notification by kernel does not need to use signals

- each entry in proc table is by 12 bytes smaller (~3k save)

14 years agocd boot workaround for bioses that didn't want to boot >4 image sectors.
Ben Gras [Mon, 26 Apr 2010 22:07:21 +0000 (22:07 +0000)]
cd boot workaround for bioses that didn't want to boot >4 image sectors.

boot is a normal binary with a.out again. use 'cdbootblock,' a CDBOOT
variant of bootblock, both from bootblock.s, as the first boot image
that then loads boot, exactly like the bootblock loads boot when booting
from harddisk. the sector numbers (2048 byte iso sectors) are patched in
by writeisofs, like installboot does for bootblock. bootblock unchanged.

14 years agovfs: start at vmnt[0] to sync mounted filesystems, not vmnt[1].
Ben Gras [Mon, 26 Apr 2010 17:12:34 +0000 (17:12 +0000)]
vfs: start at vmnt[0] to sync mounted filesystems, not vmnt[1].

14 years agoremove intr_disabled() as interrupts are always disabled in the kernel now.
Ben Gras [Mon, 26 Apr 2010 15:32:42 +0000 (15:32 +0000)]
remove intr_disabled() as interrupts are always disabled in the kernel now.

14 years agoFixed printf warning in the filter driver
Tomas Hruby [Mon, 26 Apr 2010 14:44:20 +0000 (14:44 +0000)]
Fixed printf warning in the filter driver

14 years agoSet IPC status code only for RECEIVE
Cristiano Giuffrida [Mon, 26 Apr 2010 14:43:59 +0000 (14:43 +0000)]
Set IPC status code only for RECEIVE

14 years agoRemove a redundant getdomainname() implementation.
Kees van Reeuwijk [Mon, 26 Apr 2010 12:43:43 +0000 (12:43 +0000)]
Remove a redundant getdomainname() implementation.

14 years agointercept puts() in libsys, for gcc
David van Moolenbroek [Fri, 23 Apr 2010 20:23:33 +0000 (20:23 +0000)]
intercept puts() in libsys, for gcc

14 years agofix make(1) error output
David van Moolenbroek [Fri, 23 Apr 2010 12:04:48 +0000 (12:04 +0000)]
fix make(1) error output

14 years agoAlso remove awk.old from makefile.
Kees van Reeuwijk [Thu, 22 Apr 2010 14:18:35 +0000 (14:18 +0000)]
Also remove awk.old from makefile.

14 years agoFix some compilation errors with the gcc compiler, fix some recent warnings.
Kees van Reeuwijk [Thu, 22 Apr 2010 13:59:34 +0000 (13:59 +0000)]
Fix some compilation errors with the gcc compiler, fix some recent warnings.

14 years agoRemove obsolete implementation of awk.
Kees van Reeuwijk [Thu, 22 Apr 2010 13:41:35 +0000 (13:41 +0000)]
Remove obsolete implementation of awk.

14 years agoRemove useless symbol declarations from headers, make symbols local where possible...
Kees van Reeuwijk [Thu, 22 Apr 2010 07:49:40 +0000 (07:49 +0000)]
Remove useless symbol declarations from headers, make symbols local where possible, add some explicit initialization to global variables.

14 years agoMore accurate make rule.
Kees van Reeuwijk [Wed, 21 Apr 2010 14:41:20 +0000 (14:41 +0000)]
More accurate make rule.

14 years agoRemove U16_t and most other similar types. Rewrite functions to ansi-style
Kees van Reeuwijk [Wed, 21 Apr 2010 11:05:22 +0000 (11:05 +0000)]
Remove U16_t and most other similar types. Rewrite functions to ansi-style
declaration if necessary.

14 years agoForgot to add two new files to SVN.
Kees van Reeuwijk [Tue, 20 Apr 2010 07:17:03 +0000 (07:17 +0000)]
Forgot to add two new files to SVN.

14 years agoAdd some support for wchar_t.
Kees van Reeuwijk [Mon, 19 Apr 2010 15:20:24 +0000 (15:20 +0000)]
Add some support for wchar_t.

14 years agoCode cleanup: remove unused #include, variables and code,
Kees van Reeuwijk [Thu, 15 Apr 2010 18:49:36 +0000 (18:49 +0000)]
Code cleanup: remove unused #include, variables and code,

14 years agofix mfs/isofs signal handling
David van Moolenbroek [Thu, 15 Apr 2010 16:10:28 +0000 (16:10 +0000)]
fix mfs/isofs signal handling

14 years agoAdd scancode reading capability to TTY
Erik van der Kouwe [Thu, 15 Apr 2010 07:08:04 +0000 (07:08 +0000)]
Add scancode reading capability to TTY

14 years agoAdd scancode reading capability to TTY
Erik van der Kouwe [Thu, 15 Apr 2010 06:55:42 +0000 (06:55 +0000)]
Add scancode reading capability to TTY

14 years agoAdd scancode reading capability to TTY
Erik van der Kouwe [Thu, 15 Apr 2010 06:55:32 +0000 (06:55 +0000)]
Add scancode reading capability to TTY

14 years agoAdd timerisclear() macro.
Kees van Reeuwijk [Wed, 14 Apr 2010 17:51:39 +0000 (17:51 +0000)]
Add timerisclear() macro.

14 years agounbreak _open for gcc-compiled programs
David van Moolenbroek [Wed, 14 Apr 2010 11:07:49 +0000 (11:07 +0000)]
unbreak _open for gcc-compiled programs

14 years agoProvide information on lethal signals (stacktrace and signo)
Erik van der Kouwe [Wed, 14 Apr 2010 09:06:34 +0000 (09:06 +0000)]
Provide information on lethal signals (stacktrace and signo)

14 years agoRemove some duplicate declarations in headers.
Kees van Reeuwijk [Tue, 13 Apr 2010 15:22:38 +0000 (15:22 +0000)]
Remove some duplicate declarations in headers.
Explicitly declare some functions as returning void.

14 years agovm: util.S not used currently; leave it out.
Ben Gras [Tue, 13 Apr 2010 15:02:32 +0000 (15:02 +0000)]
vm: util.S not used currently; leave it out.

14 years agovm: include no-caching bits in PTF_ALLFLAGS for flags sanity check.
Ben Gras [Tue, 13 Apr 2010 11:08:08 +0000 (11:08 +0000)]
vm: include no-caching bits in PTF_ALLFLAGS for flags sanity check.

14 years agovm: don't force physical addresses to be nonzero.
Ben Gras [Tue, 13 Apr 2010 11:01:40 +0000 (11:01 +0000)]
vm: don't force physical addresses to be nonzero.

14 years agoRemove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar.
Kees van Reeuwijk [Tue, 13 Apr 2010 10:58:41 +0000 (10:58 +0000)]
Remove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar.
Use ANSI-style function declarations where necessary.

14 years agoPM remembers what it should schedule
Tomas Hruby [Tue, 13 Apr 2010 10:45:08 +0000 (10:45 +0000)]
PM remembers what it should schedule

- while PM implements fork also for RS it needs to remember what to
  schedule and what not. PM_SCHEDULED flag serves this purpose.

- PM only schedules processes that are descendaints of init, i.e. normal
  user processes

- after a process is forked PM schedules for the first time only
  processes that have PM_SCHEDULED set. The others are handled iether
  by kernel or some other scheduler

14 years agovm: remove assert, map in of phys addr 0 is legit sometimes.
Ben Gras [Tue, 13 Apr 2010 10:39:46 +0000 (10:39 +0000)]
vm: remove assert, map in of phys addr 0 is legit sometimes.

14 years agoFix date in UPDATING
Erik van der Kouwe [Mon, 12 Apr 2010 17:56:07 +0000 (17:56 +0000)]
Fix date in UPDATING

14 years agovm: use assert() instead of vm_assert(); remove vm_assert().
Ben Gras [Mon, 12 Apr 2010 12:37:28 +0000 (12:37 +0000)]
vm: use assert() instead of vm_assert(); remove vm_assert().

14 years agolet vm use physically fragmented memory for allocations.
Ben Gras [Mon, 12 Apr 2010 11:25:24 +0000 (11:25 +0000)]
let vm use physically fragmented memory for allocations.

map_copy_ph_block is replaced by map_clone_ph_block, which can
replace a single physical block by multiple physical blocks.

also,
 . merge map_mem.c with region.c, as they manipulate the same
   data structures
 . NOTRUNNABLE removed as sanity check
 . use direct functions for ALLOC_MEM and FREE_MEM again
 . add some checks to shared memory mapping code
 . fix for data structure integrity when using shared memory
 . fix sanity checks

14 years agoipc server: don't print as many errors, to make ipc test less noisy.
Ben Gras [Mon, 12 Apr 2010 11:06:15 +0000 (11:06 +0000)]
ipc server: don't print as many errors, to make ipc test less noisy.

14 years agoFixed escape warning.
Cristiano Giuffrida [Mon, 12 Apr 2010 08:39:59 +0000 (08:39 +0000)]
Fixed escape warning.

14 years agoQuantum in fork
Tomas Hruby [Sat, 10 Apr 2010 15:27:38 +0000 (15:27 +0000)]
Quantum in fork

- This patch removes the time slice split between parent and child in
  fork.

- The time slice of the parent remains unchanged and the child does
  not have any.

- If the process has a scheduler, the scheduler must assign the
  quantum and priority of the new process and let it run.

- If the child does not inherit a scheduler, it is scheduled by the
  dummy default kernel policy. (servers, drivers, etc.)

- In theory, the scheduler can change the quantum even of the parent
  process and implement any policy for splitting the quantum as
  neither the parent nor the child are runnable.  Sending the
  out-of_quantum message on behalf of the processes may look like the
  right solution, however, the scheduler would probably handle the
  message before the whole fork protocol is finished. This way the
  scheduler has absolute control when the process should become
  runnable.

14 years agoRestructure and simplyfycation of the scheduling code in PM a little bit.
Tomas Hruby [Sat, 10 Apr 2010 15:24:49 +0000 (15:24 +0000)]
Restructure and simplyfycation of the scheduling code in PM a little bit.

- It introduces schedule_process() which makes a kernel call to set
  the scheduling parameters of a process. It is used in the next patch.

14 years agoThis tiny cleanup makes the naming a variables in createpde() more clear.
Tomas Hruby [Sat, 10 Apr 2010 15:22:41 +0000 (15:22 +0000)]
This tiny cleanup makes the naming a variables in createpde() more clear.

14 years agoA simpler test whether to use kernel's default scheduling
Tomas Hruby [Sat, 10 Apr 2010 15:19:25 +0000 (15:19 +0000)]
A simpler test whether to use kernel's default scheduling

- this is a small addition to the userspace scheduling.
  proc_kernel_scheduler() tests whether to use the default scheduling
  policy in kernel. It is true if the process' scheduler is NULL _or_
  self. Currently none of the tests was complete.

14 years agodo_schedule() cleanup
Tomas Hruby [Sat, 10 Apr 2010 15:17:09 +0000 (15:17 +0000)]
do_schedule() cleanup

- it is not neccessary to test whether the scheduler is a system
  process as the process already head permissions to make this call.

- it is better to test whether the scheduler has permission to make
  changes to this process before testing whether the values are valid.

14 years agoDriver mapping refactory.
Cristiano Giuffrida [Fri, 9 Apr 2010 21:56:44 +0000 (21:56 +0000)]
Driver mapping refactory.

VFS CHANGES:
- dmap table no longer statically initialized in VFS
- Dropped FSSIGNON svrctl call no longer used by INET

INET CHANGES:
- INET announces its presence to VFS just like any other driver

RS CHANGES:
- The boot image dev table contains all the data to initialize VFS' dmap table
- RS interface supports asynchronous up and update operations now
- RS interface extended to support driver style and flags

14 years agoport of netbsd's tr
Ben Gras [Thu, 8 Apr 2010 15:08:31 +0000 (15:08 +0000)]
port of netbsd's tr

14 years agonetbsd's original tr/extern.h as tr.h
Ben Gras [Thu, 8 Apr 2010 15:06:43 +0000 (15:06 +0000)]
netbsd's original tr/extern.h as tr.h

14 years agooriginal netbsd's tr(1)
Ben Gras [Thu, 8 Apr 2010 15:04:57 +0000 (15:04 +0000)]
original netbsd's tr(1)

14 years agono minix tr
Ben Gras [Thu, 8 Apr 2010 15:04:05 +0000 (15:04 +0000)]
no minix tr

14 years agoFixed gcc -Wall warnings.
Cristiano Giuffrida [Thu, 8 Apr 2010 15:02:32 +0000 (15:02 +0000)]
Fixed gcc -Wall warnings.