]> Zhao Yanbai Git Server - minix.git/log
minix.git
19 years agoFixed bug that caused the PM to brutalize the contents of the 'memory'
Ben Gras [Sun, 19 Jun 2005 23:16:08 +0000 (23:16 +0000)]
Fixed bug that caused the PM to brutalize the contents of the 'memory'
variable. Parsing worked, but future requests for the variable (such as
by the sysenv command) returned truncated data. This caused the system
(e.g. setup script) to think the amount of memory was tiny, and caused
the enabling of swapspace, while it is unnecessary.

19 years agoselect-test-set compile fixes.
Ben Gras [Sun, 19 Jun 2005 23:13:57 +0000 (23:13 +0000)]
select-test-set compile fixes.

19 years agoFixed nasty bug that would cause FS to loop forever in rw_scattered (while
Ben Gras [Sun, 19 Jun 2005 22:33:49 +0000 (22:33 +0000)]
Fixed nasty bug that would cause FS to loop forever in rw_scattered (while
syncing, for instance) if blocks are unwritable. This could happen if:

  . write goes beyond device boundary to a block device
  . write is done for a complete block or more; thus the
    block is not retrieved first (at which point it would be noticed
    it doesn't exist), but the buffer is simply allocated
  . at write time, the device i/o doesn't succeed, but rw_scattered
    doesn't understand this and loops forever trying to get the block
    written.

Currently, if no blocks can be written, the loop aborts, leaving all
buffers intact but potentially dirty. When invalidate() is called on the
device, the buffers will disappear (even if dirty). Same story for if
the buffer is removed due to rmed from lru chain. There's not much we
can do about this, however - we can't keep these blocks around, forever
occupying a buffer in the buffer cache.

The second part of the solution is not to let unwritable buffers be
created in the first place. How to do this, however, without doing a
wasteful read first?

It looks like this code was in 2.0.4 too.

19 years agoMade mkfs a little smarter about how to report empty devices.
Ben Gras [Sun, 19 Jun 2005 22:28:05 +0000 (22:28 +0000)]
Made mkfs a little smarter about how to report empty devices.

Also a little smarter about manually specified number of blocks that is
larger than the device capacity.

19 years agoMade libpci recognize my pci controller at home (again)
Ben Gras [Sun, 19 Jun 2005 22:11:04 +0000 (22:11 +0000)]
Made libpci recognize my pci controller at home (again)

19 years agoFixed various nits in the make/release process.
Ben Gras [Fri, 17 Jun 2005 16:28:36 +0000 (16:28 +0000)]
Fixed various nits in the make/release process.

19 years agoPart of fs timers library, forgot to add this in previous commit.
Ben Gras [Fri, 17 Jun 2005 13:49:56 +0000 (13:49 +0000)]
Part of fs timers library, forgot to add this in previous commit.

19 years agoFixes for /root homedir.
Ben Gras [Fri, 17 Jun 2005 13:48:16 +0000 (13:48 +0000)]
Fixes for /root homedir.

19 years agoAdded (fake) readlink().
Ben Gras [Fri, 17 Jun 2005 13:47:29 +0000 (13:47 +0000)]
Added (fake) readlink().

Compile fix for fslib (BITS_PER_BLOCK was renamed to FS_BITS_PER_BLOCK).

Added extra arg to various timer functions.

19 years agoSelect test-set imported from the minix contributions, with permission
Ben Gras [Fri, 17 Jun 2005 13:45:40 +0000 (13:45 +0000)]
Select test-set imported from the minix contributions, with permission
to modify and distribute from Jose Manuel Gomez, the author
(jmgomez@linuxmail.org).

19 years agoVarious compile fixes.
Ben Gras [Fri, 17 Jun 2005 13:42:53 +0000 (13:42 +0000)]
Various compile fixes.

Imported gzip.

Changed setup script not to insist cwd is / when running from cd.

19 years agoRenamed commands to cmds - make is confused that the commands directory
Ben Gras [Fri, 17 Jun 2005 13:42:06 +0000 (13:42 +0000)]
Renamed commands to cmds - make is confused that the commands directory
exists.

19 years agoStarted select() implementation.
Ben Gras [Fri, 17 Jun 2005 13:41:12 +0000 (13:41 +0000)]
Started select() implementation.

Added interface to select() for pipes (also named pipes), and select()
stubs for regular files.

Added timer library in FS that select() is the first customer of.

This is unfinished, but committed anyway to get a new release out to
Al and testers.

19 years agoChanged timer library function args.
Ben Gras [Fri, 17 Jun 2005 13:37:41 +0000 (13:37 +0000)]
Changed timer library function args.

Added select() support for tty fd's (not ptys yet).

19 years agoChanged arguments of timer library functions.
Ben Gras [Fri, 17 Jun 2005 13:36:01 +0000 (13:36 +0000)]
Changed arguments of timer library functions.

19 years agoStarted select() manpage.
Ben Gras [Fri, 17 Jun 2005 13:35:21 +0000 (13:35 +0000)]
Started select() manpage.

Added lstat() comment to stat().

19 years agoVarious select() support flags, prototypes, definitions.
Ben Gras [Fri, 17 Jun 2005 13:34:47 +0000 (13:34 +0000)]
Various select() support flags, prototypes, definitions.

Major numbers for inet, tty, ctty.

Defined _MINIX_VERSION to check for major minix version in applications.

Prototype for (fake) readlink().

19 years agoAdded back boot banner for CD
Ben Gras [Fri, 17 Jun 2005 13:25:06 +0000 (13:25 +0000)]
Added back boot banner for CD

19 years agoApplied MINIX 2.0.4 pathes provides by Al Woodhull.
Jorrit Herder [Fri, 17 Jun 2005 13:00:04 +0000 (13:00 +0000)]
Applied MINIX 2.0.4 pathes provides by Al Woodhull.

19 years agoUpdated boot monitor help menu.
Jorrit Herder [Fri, 17 Jun 2005 11:52:55 +0000 (11:52 +0000)]
Updated boot monitor help menu.

19 years agoAdded dummy readlink() call that returns an error (we don't have symlinks
Ben Gras [Fri, 17 Jun 2005 11:43:24 +0000 (11:43 +0000)]
Added dummy readlink() call that returns an error (we don't have symlinks
yet)

also select() stub

19 years agoRemoved unnecessary call to unlock() from exception().
Jorrit Herder [Fri, 17 Jun 2005 09:50:12 +0000 (09:50 +0000)]
Removed unnecessary call to unlock() from exception().

19 years agoFixed code passed to boot monitor after shutdown.
Jorrit Herder [Fri, 17 Jun 2005 09:40:02 +0000 (09:40 +0000)]
Fixed code passed to boot monitor after shutdown.

19 years agoRemoved duplicate 'done' output after calling readall.
Jorrit Herder [Fri, 17 Jun 2005 09:36:08 +0000 (09:36 +0000)]
Removed duplicate 'done' output after calling readall.

19 years ago*** empty log message ***
Jorrit Herder [Fri, 17 Jun 2005 09:34:44 +0000 (09:34 +0000)]
*** empty log message ***

19 years agoCapitalized output.
Jorrit Herder [Fri, 17 Jun 2005 09:33:00 +0000 (09:33 +0000)]
Capitalized output.

19 years ago*** empty log message ***
Jorrit Herder [Fri, 17 Jun 2005 09:15:39 +0000 (09:15 +0000)]
*** empty log message ***

19 years agoRemoved mem chunks dump. (No longer available from kernel.)
Jorrit Herder [Fri, 17 Jun 2005 09:13:32 +0000 (09:13 +0000)]
Removed mem chunks dump. (No longer available from kernel.)

19 years agoParsing of free memory chunks is now done at the process manager.
Jorrit Herder [Fri, 17 Jun 2005 09:10:30 +0000 (09:10 +0000)]
Parsing of free memory chunks is now done at the process manager.

19 years ago* Fixed bug relating to nested locking in interrupt handlers. The nested lock
Jorrit Herder [Fri, 17 Jun 2005 09:09:54 +0000 (09:09 +0000)]
* Fixed bug relating to nested locking in interrupt handlers. The nested lock
caused interrupts to be reenabled (due to unlock), which caused a race. The
problems were especially visible on slower machines.
* Relocated free memory parsing to process manager. This saved quite some
code at the kernel level. Text size was reduced by about 650 bytes.
* Removed locks for updating the realtime in the clock's main loop and the
get_uptime function. Interrupts are no longer reentrant, so realtime is
immediately updated.

19 years agoRelocated echo "Multiuser startup in progress ..." to top.
Jorrit Herder [Fri, 17 Jun 2005 09:00:31 +0000 (09:00 +0000)]
Relocated echo "Multiuser startup in progress ..." to top.

19 years agoChanged uname to retrieve actual OS release and version number at runtime.
Jorrit Herder [Fri, 17 Jun 2005 08:53:33 +0000 (08:53 +0000)]
Changed uname to retrieve actual OS release and version number at runtime.

19 years agoMinor changes in PM interface affected these commands.
Jorrit Herder [Fri, 17 Jun 2005 08:52:53 +0000 (08:52 +0000)]
Minor changes in PM interface affected these commands.
Getty now retrieves the actual release and version number at runtime.

19 years agoFixed typo in run output;
Jorrit Herder [Fri, 17 Jun 2005 08:51:28 +0000 (08:51 +0000)]
Fixed typo in run output;
Reduced NR_ITERATIONS for tests dealing with MAX_LINKS.

19 years agoUndid \c from default leader and trailer
Ben Gras [Fri, 17 Jun 2005 08:00:13 +0000 (08:00 +0000)]
Undid \c from default leader and trailer

19 years agoImproved compatibility with other Unix systems.
Philip Homburg [Fri, 10 Jun 2005 15:12:03 +0000 (15:12 +0000)]
Improved compatibility with other Unix systems.

19 years agoHack for buffer overflow, should be fixed properly.
Philip Homburg [Wed, 8 Jun 2005 11:05:27 +0000 (11:05 +0000)]
Hack for buffer overflow, should be fixed properly.

19 years agoRemoved debug dumps from the PM and FS servers. The dumps are now done by the
Jorrit Herder [Tue, 7 Jun 2005 14:43:35 +0000 (14:43 +0000)]
Removed debug dumps from the PM and FS servers. The dumps are now done by the
IS servers, which obtains a copy of the data through the getsysinfo() system
call. CTRL-F1 now is a special TTY key to shows function key mappings.

19 years agofix for ~root being / and buggering up system with chroot -R
Ben Gras [Tue, 7 Jun 2005 13:33:57 +0000 (13:33 +0000)]
fix for ~root being / and buggering up system with chroot -R

19 years agoKernel cleanup.
Jorrit Herder [Tue, 7 Jun 2005 12:34:25 +0000 (12:34 +0000)]
Kernel cleanup.
Reduced kernel size by 512KB by moving private buffer into cstart() function.
Replaced assertions with erroneous return values. Removed assertions relating
to isuserp(rp), since all processes should become user processes; system
processes are now treated similar to other processes.

19 years agoAdded welcome message to POSIX test suite.
Jorrit Herder [Tue, 7 Jun 2005 11:52:35 +0000 (11:52 +0000)]
Added welcome message to POSIX test suite.

19 years agoUse relative paths.
Philip Homburg [Mon, 6 Jun 2005 16:18:05 +0000 (16:18 +0000)]
Use relative paths.

19 years agoremoved debug message
Ben Gras [Mon, 6 Jun 2005 14:58:47 +0000 (14:58 +0000)]
removed debug message

19 years agoFixed 'ps' utility: now get process table addresses with getsysinfo() calls.
Jorrit Herder [Mon, 6 Jun 2005 13:51:50 +0000 (13:51 +0000)]
Fixed 'ps' utility: now get process table addresses with getsysinfo() calls.
To be done: get copies of process tables instead of using /dev/(k)mem.

19 years agocheck relaxation for bios memory
Ben Gras [Mon, 6 Jun 2005 11:54:58 +0000 (11:54 +0000)]
check relaxation for bios memory

19 years agosmall compile fixes; initial select() stubs; release.sh script doesn't
Ben Gras [Mon, 6 Jun 2005 11:40:32 +0000 (11:40 +0000)]
small compile fixes; initial select() stubs; release.sh script doesn't
need /tmp any more since 16MB root device; increase to 3.0.5 to make new
CD with working FXP driver. (not tagged 3.0.5 yet as at driver bios-copy
workaround hasn't been done.)

19 years agobugfix
Ben Gras [Mon, 6 Jun 2005 11:31:20 +0000 (11:31 +0000)]
bugfix

19 years agoFixed bug relating to FS and MEMORY during startup;
Jorrit Herder [Mon, 6 Jun 2005 09:30:44 +0000 (09:30 +0000)]
Fixed bug relating to FS and MEMORY during startup;
Relocated some syslib functions to utils library;
Changed location of 'Multiuser startup ..." echo in /etc/rc

19 years agoVarious updates.
Jorrit Herder [Fri, 3 Jun 2005 13:55:06 +0000 (13:55 +0000)]
Various updates.
* Removed some variants of the SYS_GETINFO calls from the kernel;
  replaced them with new PM and utils libary functionality. Fixed
  bugs in utils library that used old get_kenv() variant.
* Implemented a buffer in the kernel to gather random data.
  Memory driver periodically checks this for /dev/random.
  A better random algorithm can now be implemented in the driver.
  Removed SYS_RANDOM; the SYS_GETINFO call is used instead.
* Remove SYS_KMALLOC from the kernel. Memory allocation can now
  be done at the process manager with new 'other' library functions.

19 years agoprocess manager must be able to send to rtl driver
Ben Gras [Fri, 3 Jun 2005 09:02:19 +0000 (09:02 +0000)]
process manager must be able to send to rtl driver

19 years agoprettified rtl driver:
Ben Gras [Fri, 3 Jun 2005 08:59:54 +0000 (08:59 +0000)]
prettified rtl driver:
 . no more kmalloc
 . no more umaps + physcopies / abscopies
 . the status register is directly readable from the drivers own
   address space now, and no physcopy is needed to read it
 . map+physcopy call combinations are replaced by vircopy calls

19 years agoUndid usage of vector-copy function. It's a good idea but there's a bug
Ben Gras [Thu, 2 Jun 2005 16:49:33 +0000 (16:49 +0000)]
Undid usage of vector-copy function. It's a good idea but there's a bug
there somewhere. I'll debug first, then recommit.

19 years agoCreated new findproc system call to the PM (to replace similar kernel
Jorrit Herder [Thu, 2 Jun 2005 12:43:21 +0000 (12:43 +0000)]
Created new findproc system call to the PM (to replace similar kernel
functionality). Currently working on memory allocation (not yet finished).

19 years agoMinor commit to remove conflict with update.
Jorrit Herder [Wed, 1 Jun 2005 14:34:59 +0000 (14:34 +0000)]
Minor commit to remove conflict with update.

19 years agoCleaned up src/lib/utils library. Renamed server_ functions to more logical
Jorrit Herder [Wed, 1 Jun 2005 14:31:00 +0000 (14:31 +0000)]
Cleaned up src/lib/utils library. Renamed server_ functions to more logical
names. All system processes can now either use panic() or report() from
libutils, or redefine their own function. Assertions are done via the standard
<assert.h> functionality.

19 years agofixed bug that caused number of inodes to make estimation to be terrible
Ben Gras [Wed, 1 Jun 2005 11:39:45 +0000 (11:39 +0000)]
fixed bug that caused number of inodes to make estimation to be terrible
in most cases

19 years agoMake needs a little more memory
Ben Gras [Wed, 1 Jun 2005 11:14:08 +0000 (11:14 +0000)]
Make needs a little more memory

19 years agoRemoved mm files (obsolete; it's pm now)
Ben Gras [Wed, 1 Jun 2005 09:40:42 +0000 (09:40 +0000)]
Removed mm files (obsolete; it's pm now)

19 years agoAble to dump lock()/unlock() timing data
Ben Gras [Wed, 1 Jun 2005 09:40:27 +0000 (09:40 +0000)]
Able to dump lock()/unlock() timing data

19 years agofunction key notifications became notifies fix
Ben Gras [Wed, 1 Jun 2005 09:40:02 +0000 (09:40 +0000)]
function key notifications became notifies fix

19 years agoexec now uses phys_zero system call to zero bss segments (instead of
Ben Gras [Wed, 1 Jun 2005 09:39:45 +0000 (09:39 +0000)]
exec now uses phys_zero system call to zero bss segments (instead of
using phys_copy to copy zeroes there for every kb), which is a big
optimisation in some cases

fixed a bug that was introduced when function keys became notifies

19 years agoAdded args to lock() and unlock() to tell them apart, for use
Ben Gras [Wed, 1 Jun 2005 09:37:52 +0000 (09:37 +0000)]
Added args to lock() and unlock() to tell them apart, for use
when lock timing is enabled in minix/config.h.

Added phys_zero() routine to klib386.s that zeroes a range of memory, and
added corresponding system call.

19 years agoAdded sys_physzero library call for corresponding system call; modified
Ben Gras [Wed, 1 Jun 2005 09:36:07 +0000 (09:36 +0000)]
Added sys_physzero library call for corresponding system call; modified
system-printf() so it returns number of characters printed (for use in
smart formatting)

19 years agoMoved timing structs around to be more standard
Ben Gras [Wed, 1 Jun 2005 09:34:37 +0000 (09:34 +0000)]
Moved timing structs around to be more standard

19 years agoAdded support for lock()/unlock() timing registration; also phys_zero system
Ben Gras [Wed, 1 Jun 2005 09:34:18 +0000 (09:34 +0000)]
Added support for lock()/unlock() timing registration; also phys_zero system
call

19 years agodifferent way of dealing with fd's so chmem <arg> <long list of files>
Ben Gras [Wed, 1 Jun 2005 09:31:14 +0000 (09:31 +0000)]
different way of dealing with fd's so chmem <arg> <long list of files>
doesn't fail due to file descriptor leaks

19 years agoFixed minor bug in PM's child time administration.
Jorrit Herder [Wed, 1 Jun 2005 08:55:22 +0000 (08:55 +0000)]
Fixed minor bug in PM's child time administration.

19 years agoFix for 'the kermit problem' (keyrepeats happening before the keyrepeat
Ben Gras [Tue, 31 May 2005 15:22:06 +0000 (15:22 +0000)]
Fix for 'the kermit problem' (keyrepeats happening before the keyrepeat
timeout). A fix is to treat the alarm and interrupt cases differently and
only call the interrupt handler when an actual interrupt has been seen. No
apparent adverse effects.

19 years ago*** empty log message ***
Jorrit Herder [Tue, 31 May 2005 14:44:49 +0000 (14:44 +0000)]
*** empty log message ***

19 years agoReplaced flagalrm() timers with another technique to check for timeouts.
Jorrit Herder [Tue, 31 May 2005 14:43:04 +0000 (14:43 +0000)]
Replaced flagalrm() timers with another technique to check for timeouts.
This allowed removing the p_flagarlm timer from the kernel's process table.
Furthermore, I merged p_syncalrm and p_signalrm into p_alarm_timer to save
even more space. Note that processes can no longer have both a signal and
synchronous alarm timer outstanding as of now.

19 years agocompile fixes for kermit and postmort
Ben Gras [Tue, 31 May 2005 12:32:35 +0000 (12:32 +0000)]
compile fixes for kermit and postmort

19 years agoFixed some compiler warnings.
Ben Gras [Tue, 31 May 2005 11:14:37 +0000 (11:14 +0000)]
Fixed some compiler warnings.

19 years agoReverse trailer/delay order (delay first)
Ben Gras [Tue, 31 May 2005 11:11:47 +0000 (11:11 +0000)]
Reverse trailer/delay order (delay first)

19 years agoAdded time.c
Jorrit Herder [Tue, 31 May 2005 10:57:19 +0000 (10:57 +0000)]
Added time.c

19 years agoMoved stime, time, times POSIX calls from FS to PM. Removed child time
Jorrit Herder [Tue, 31 May 2005 09:50:51 +0000 (09:50 +0000)]
Moved stime, time, times POSIX calls from FS to PM. Removed child time
accounting from kernel (now in PM).  Large amount of files in this commit
is due to system time problems during development.

19 years agoDisabled clearing screen in tty driver, started console printing after an
Ben Gras [Mon, 30 May 2005 15:09:51 +0000 (15:09 +0000)]
Disabled clearing screen in tty driver, started console printing after an
initial 1-line scroll at last line. If clearing screen in trailer of boot
monitor is disabled, all previous boot monitor and console messages are
preserved on rebooting.

All that's needed now is a scrollback buffer to see all old messages..
(Even from the boot monitor, bios, previous boots...)

19 years agoAdded 'bootdelay' feature in boot monitor, it pauses a given number of ms
Ben Gras [Mon, 30 May 2005 15:02:52 +0000 (15:02 +0000)]
Added 'bootdelay' feature in boot monitor, it pauses a given number of ms
so the list of programs in the image and their sizes can be seen before the
kernel starts filling the screen.

Added some formatting fixes in installboot and boot monitor itself,
some of the segments were larger than the formatting allowed.

19 years agoSENDREC now always has flag FRESH_ANSWER to prevent pending notifications
Jorrit Herder [Mon, 30 May 2005 11:11:40 +0000 (11:11 +0000)]
SENDREC now always has flag FRESH_ANSWER to prevent pending notifications
to be used as answer to a SENDREC call.

19 years agoFixed clear_proc(): properly release resources (IRQ hooks, notify buffers);
Jorrit Herder [Mon, 30 May 2005 11:05:42 +0000 (11:05 +0000)]
Fixed clear_proc(): properly release resources (IRQ hooks, notify buffers);
Cleaned up comments in proc.c (old code still present for comparison);

19 years agoImported kermit v2.11
Ben Gras [Mon, 30 May 2005 10:55:32 +0000 (10:55 +0000)]
Imported kermit v2.11

19 years agoFixed PM send() failed warning: don't reply to killed process that did reboot.
Jorrit Herder [Mon, 30 May 2005 09:29:48 +0000 (09:29 +0000)]
Fixed PM send() failed warning: don't reply to killed process that did reboot.

:  `VS: Enter Log.  Lines beginning with `CVS:' are removed automatically

19 years agoImproved shared device driver code: use SELF instead of 'getprocnr'.
Jorrit Herder [Mon, 30 May 2005 08:51:23 +0000 (08:51 +0000)]
Improved shared device driver code: use SELF instead of 'getprocnr'.

19 years agoKinfo counts lock_notify() and lock_send() calls.
Jorrit Herder [Fri, 27 May 2005 14:54:40 +0000 (14:54 +0000)]
Kinfo counts lock_notify() and lock_send() calls.

19 years agoCreated ECHO system call for testing purposes.
Jorrit Herder [Fri, 27 May 2005 13:57:00 +0000 (13:57 +0000)]
Created ECHO system call for testing purposes.
Furthermore, a quick way to get one's own process number.

19 years agoFixed a bug in PM: sending of reply messages didn't check if destination
Jorrit Herder [Fri, 27 May 2005 13:10:58 +0000 (13:10 +0000)]
Fixed a bug in PM: sending of reply messages didn't check if destination
process is still alive. This caused a panic in some situations, e.g., when
all processes are killed on a shutdown.

19 years agoImproved NOTIFY system: fixed a minor error, ignore pending notifications
Jorrit Herder [Fri, 27 May 2005 12:44:14 +0000 (12:44 +0000)]
Improved NOTIFY system: fixed a minor error, ignore pending notifications
on SENDREC system calls. To be done: resource (buffer pool) management;
make it structurally impossible to run out of buffers.

19 years agoOptimized scheduling code. Old code is still available withing DEAD_CODE
Jorrit Herder [Thu, 26 May 2005 13:17:57 +0000 (13:17 +0000)]
Optimized scheduling code. Old code is still available withing DEAD_CODE
and NEW_SCHED_Q definitions. Some minor problems are being traced at the
moment. This commit is meant to backup my files.
  --- Jorrit

19 years agothis test breaks on the new pre-i/o i/o buffer check. it wants to read
Ben Gras [Tue, 24 May 2005 14:57:45 +0000 (14:57 +0000)]
this test breaks on the new pre-i/o i/o buffer check. it wants to read
more than its buffer allowed, so it is reasonable that it breaks. reducing
read request size 'fixes' it.

19 years agoFixed some minor issues with the NOTIFY call.
Jorrit Herder [Tue, 24 May 2005 14:35:58 +0000 (14:35 +0000)]
Fixed some minor issues with the NOTIFY call.

19 years agofixed compile breakage
Ben Gras [Tue, 24 May 2005 13:18:29 +0000 (13:18 +0000)]
fixed compile breakage

19 years agoadded a debugging functionality in system/debugging.c (to check sanity of
Ben Gras [Tue, 24 May 2005 12:33:03 +0000 (12:33 +0000)]
added a debugging functionality in system/debugging.c (to check sanity of
run queues) and associated prototype in system.h

19 years ago. fixed a recently introduced scheduler (run-queue) bug in proc.c
Ben Gras [Tue, 24 May 2005 12:32:34 +0000 (12:32 +0000)]
. fixed a recently introduced scheduler (run-queue) bug in proc.c
. a little (optional) debugging code added to proc.c and associated
  data in proc.h

19 years agoInitialisation required for optional debugging code.
Ben Gras [Tue, 24 May 2005 12:30:51 +0000 (12:30 +0000)]
Initialisation required for optional debugging code.

19 years agoAdded 2 checks to mapping function - one for overflow (virtual address +
Ben Gras [Tue, 24 May 2005 12:30:29 +0000 (12:30 +0000)]
Added 2 checks to mapping function - one for overflow (virtual address +
size wraparound), one to see if the size fits in the designated segment.

It seems this check wasn't done. This came to light when trying to pre-check
the users buffer for read() and write() in using the vectored virtual
copy system call in servers/fs/read.c.

19 years agoMake use of vectored virtual copy system call
Ben Gras [Tue, 24 May 2005 12:28:09 +0000 (12:28 +0000)]
Make use of vectored virtual copy system call

19 years agosync after install in case of trouble while shutdowning
Ben Gras [Tue, 24 May 2005 12:03:42 +0000 (12:03 +0000)]
sync after install in case of trouble while shutdowning

19 years agoNew NOTIFY system call! Queued at kernel. Duplicate messages (with same source
Jorrit Herder [Tue, 24 May 2005 10:06:17 +0000 (10:06 +0000)]
New NOTIFY system call! Queued at kernel. Duplicate messages (with same source
and type) are overwritten with newer flags/ arguments. The interface from
within the kernel is lock_notify(). User processes can make a system call with
notify(). NOTIFY fully replaces the old notification mechanism.

19 years agofreed up use of name 'offset'
Ben Gras [Fri, 20 May 2005 13:27:38 +0000 (13:27 +0000)]
freed up use of name 'offset'

19 years agoChanged something in default no. of inodes in mkfs (I run out of inodes
Ben Gras [Fri, 20 May 2005 12:40:46 +0000 (12:40 +0000)]
Changed something in default no. of inodes in mkfs (I run out of inodes
often with the defaults).

Made setup script not make root filesystem with 1kB filesystem blocks,
as that restriction is out of the boot monitor now.

19 years agoFix to let FXP driver send messages.
Ben Gras [Fri, 20 May 2005 12:39:36 +0000 (12:39 +0000)]
Fix to let FXP driver send messages.
Removed banner talking about the known hang-bug (it's fixed,
practically speaking).