]> Zhao Yanbai Git Server - minix.git/log
minix.git
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).

19 years agoAdded note to indicate how touchy MAX_BLOCK_SIZE is at the moment.
Ben Gras [Fri, 20 May 2005 12:30:37 +0000 (12:30 +0000)]
Added note to indicate how touchy MAX_BLOCK_SIZE is at the moment.

19 years agoRemoved root filesystem blocksize restriction by reducing boot monitor
Ben Gras [Fri, 20 May 2005 12:30:19 +0000 (12:30 +0000)]
Removed root filesystem blocksize restriction by reducing boot monitor
stack size from 16kB to 8kB. No apparent adverse affects.

19 years agomade time use times() system call to get higher resolution (1/60s clock
Ben Gras [Fri, 20 May 2005 10:06:33 +0000 (10:06 +0000)]
made time use times() system call to get higher resolution (1/60s clock
ticks instead of 1s) for real time measurement.

19 years agoNew system call added to PM: getprocnr(int *proc_nr) (like getpid);
Jorrit Herder [Fri, 20 May 2005 09:37:43 +0000 (09:37 +0000)]
New system call added to PM: getprocnr(int *proc_nr) (like getpid);
Minor update to scheduling code (unready().

19 years agoNew NOTIFY trap (IPC call) to send queued notification messages.
Jorrit Herder [Thu, 19 May 2005 14:05:51 +0000 (14:05 +0000)]
New NOTIFY trap (IPC call) to send queued notification messages.
The call works. Permission check, restriction of outstanding notifications
to be added. Low level code to make it work from within interrupt handlers
will be added as well.

19 years agoAdded fxp driver for the Intel Pro/100 series ethernet cards
Philip Homburg [Thu, 19 May 2005 13:27:05 +0000 (13:27 +0000)]
Added fxp driver for the Intel Pro/100 series ethernet cards
Print PC in hex for easier debugging.

19 years ago*** empty log message ***
Jorrit Herder [Thu, 19 May 2005 09:38:29 +0000 (09:38 +0000)]
*** empty log message ***

19 years agoIntermediate update---please await next commit.
Jorrit Herder [Thu, 19 May 2005 09:36:44 +0000 (09:36 +0000)]
Intermediate update---please await next commit.

19 years agoFixed some comments and reorganized some code.
Jorrit Herder [Wed, 18 May 2005 10:36:23 +0000 (10:36 +0000)]
Fixed some comments and reorganized some code.
Fixed minor bug in notify() function.

19 years agoMinor fixes. (Skip test 28 LINK_MAX links generation, it takes too long.)
Ben Gras [Tue, 17 May 2005 08:40:32 +0000 (08:40 +0000)]
Minor fixes. (Skip test 28 LINK_MAX links generation, it takes too long.)

19 years agopre-release cleanup nit
Ben Gras [Fri, 13 May 2005 14:57:29 +0000 (14:57 +0000)]
pre-release cleanup nit

19 years agoOops, set hash table size to non-power-of-two
Ben Gras [Fri, 13 May 2005 14:57:09 +0000 (14:57 +0000)]
Oops, set hash table size to non-power-of-two

19 years agoDon't cache /dev/ram blocks
Ben Gras [Fri, 13 May 2005 13:42:07 +0000 (13:42 +0000)]
Don't cache /dev/ram blocks

19 years agoRelease process to use and create 16MB root; FS setcache call removed
Ben Gras [Fri, 13 May 2005 12:47:35 +0000 (12:47 +0000)]
Release process to use and create 16MB root; FS setcache call removed

19 years agoStarted rs232 porting to userland; increased version number for new cd.
Ben Gras [Fri, 13 May 2005 12:29:10 +0000 (12:29 +0000)]
Started rs232 porting to userland; increased version number for new cd.

19 years agoIf the file (created by setup) exists, use boot parameters from there
Ben Gras [Fri, 13 May 2005 12:27:42 +0000 (12:27 +0000)]
If the file (created by setup) exists, use boot parameters from there
for the boot floppy instead of copying it from the current root partition.
This makes making a boot floppy at installation time before booting from
the new system possible (conveniently).

19 years agoAdded feature to remember root parameter in /usr/src/tools, so make fdboot
Ben Gras [Fri, 13 May 2005 12:26:40 +0000 (12:26 +0000)]
Added feature to remember root parameter in /usr/src/tools, so make fdboot
will know how to make a boot floppy before actually booting from the new
system.

19 years agoremoved dead code bits
Ben Gras [Fri, 13 May 2005 11:45:12 +0000 (11:45 +0000)]
removed dead code bits

19 years agoDONT_SWAP not used
Ben Gras [Fri, 13 May 2005 11:44:16 +0000 (11:44 +0000)]
DONT_SWAP not used

19 years agoFixed tick_delay; it now reschedules a previous synchronous alarm.
Jorrit Herder [Fri, 13 May 2005 09:33:53 +0000 (09:33 +0000)]
Fixed tick_delay; it now reschedules a previous synchronous alarm.

19 years ago*** empty log message ***
Jorrit Herder [Fri, 13 May 2005 09:00:59 +0000 (09:00 +0000)]
*** empty log message ***

19 years agoRenamed header file.
Jorrit Herder [Fri, 13 May 2005 08:59:19 +0000 (08:59 +0000)]
Renamed header file.

19 years agoRemoved 'system process' magic from PM and FS.
Jorrit Herder [Fri, 13 May 2005 08:57:08 +0000 (08:57 +0000)]
Removed 'system process' magic from PM and FS.

19 years agominor boot floppy beautifications
Ben Gras [Thu, 12 May 2005 16:07:31 +0000 (16:07 +0000)]
minor boot floppy beautifications

19 years agoSome #defines for removing registered irq handler
Ben Gras [Thu, 12 May 2005 16:07:15 +0000 (16:07 +0000)]
Some #defines for removing registered irq handler

19 years ago . added rm_irq_handler which un-links an irq handler from the linked
Ben Gras [Thu, 12 May 2005 16:06:37 +0000 (16:06 +0000)]
 . added rm_irq_handler which un-links an irq handler from the linked
   list of handlers, callable by irqctl system call
 . workaround for hanging keyboard bug after shutdown.. if key is pressed
   during or after shutdown procedure, keyboard stops working. It looks like
   irq 1 gets stuck high if no keyboard reading is done (e.g. because the
   irq is masked or tty driver has exited). Workaround is to leave irqs
   enabled until the last second, and call shutdown() immediately after the
   last driver has stopped (tty task). This way the chance of an unserviced
   interrupt occuring is negligible.

19 years agoadded code to un-register tty's interrupt at exit time; fixed compiler
Ben Gras [Thu, 12 May 2005 16:03:43 +0000 (16:03 +0000)]
added code to un-register tty's interrupt at exit time; fixed compiler
warnings

19 years agoUser-space networking!
Jorrit Herder [Wed, 11 May 2005 09:02:00 +0000 (09:02 +0000)]
User-space networking!
- RTL8139 driver moved to user-space;
- PCI code moved to user-space;
Fixed IRQ hook dump at IS server.

19 years agoFixed some system call checks;
Jorrit Herder [Tue, 10 May 2005 11:06:24 +0000 (11:06 +0000)]
Fixed some system call checks;
Added SYS_PHYSVCOPY system call;
Fixed IRQ hooks dump in IS server;

19 years agouserlandified and enabled PTY's
Ben Gras [Mon, 9 May 2005 14:35:26 +0000 (14:35 +0000)]
userlandified and enabled PTY's

19 years agoMake output of partition visible
Ben Gras [Mon, 9 May 2005 13:40:54 +0000 (13:40 +0000)]
Make output of partition visible

19 years agohide non-copying install Makefile actions
Ben Gras [Mon, 9 May 2005 13:40:08 +0000 (13:40 +0000)]
hide non-copying install Makefile actions

19 years agochanged [skip]ped tests to start working, even with the large LINK_MAX
Ben Gras [Mon, 9 May 2005 13:39:23 +0000 (13:39 +0000)]
changed [skip]ped tests to start working, even with the large LINK_MAX

19 years agoFixed compiler warnings about kprintf() argument
Ben Gras [Mon, 9 May 2005 08:54:18 +0000 (08:54 +0000)]
Fixed compiler warnings about kprintf() argument

19 years agoHide messages about install (changing stack+data size)
Ben Gras [Mon, 9 May 2005 08:52:21 +0000 (08:52 +0000)]
Hide messages about install (changing stack+data size)

19 years ago/ install partition size 1440kB -> 16MB (ast)
Ben Gras [Mon, 9 May 2005 08:51:07 +0000 (08:51 +0000)]
/ install partition size 1440kB -> 16MB (ast)

19 years agorename run.sh to run (ast)
Ben Gras [Mon, 9 May 2005 08:44:55 +0000 (08:44 +0000)]
rename run.sh to run (ast)

19 years agoMade us a mighty pretty progress indicator for the setup script.
Ben Gras [Mon, 9 May 2005 08:38:47 +0000 (08:38 +0000)]
Made us a mighty pretty progress indicator for the setup script.

19 years agoSome permissions issues with installs fixed
Ben Gras [Wed, 4 May 2005 13:47:05 +0000 (13:47 +0000)]
Some permissions issues with installs fixed

19 years ago*** empty log message ***
Ben Gras [Wed, 4 May 2005 13:46:34 +0000 (13:46 +0000)]
*** empty log message ***

19 years agoinstalled some binaries in /bin too
Ben Gras [Wed, 4 May 2005 13:45:29 +0000 (13:45 +0000)]
installed some binaries in /bin too

19 years agoNew message, typo
Ben Gras [Wed, 4 May 2005 13:43:57 +0000 (13:43 +0000)]
New message, typo

19 years agoinstall scripts executable (even if they aren't in the working directory)
Ben Gras [Wed, 4 May 2005 09:37:12 +0000 (09:37 +0000)]
install scripts executable (even if they aren't in the working directory)

19 years ago*** empty log message ***
Ben Gras [Wed, 4 May 2005 09:31:54 +0000 (09:31 +0000)]
*** empty log message ***

19 years agoNotice
Ben Gras [Wed, 4 May 2005 09:31:32 +0000 (09:31 +0000)]
Notice

19 years agopolish
Ben Gras [Wed, 4 May 2005 09:30:49 +0000 (09:30 +0000)]
polish

19 years ago/boot and /minix -> /boot/boot and /boot/image changes
Ben Gras [Wed, 4 May 2005 09:29:52 +0000 (09:29 +0000)]
/boot and /minix -> /boot/boot and /boot/image changes

19 years agoMade building of homedirs actually work ($ -> $$ makefile/shell variable issue)
Ben Gras [Wed, 4 May 2005 09:29:24 +0000 (09:29 +0000)]
Made building of homedirs actually work ($ -> $$ makefile/shell variable issue)

19 years agofixed compile warning
Ben Gras [Wed, 4 May 2005 09:28:58 +0000 (09:28 +0000)]
fixed compile warning

19 years agomm -> pm fixes
Ben Gras [Wed, 4 May 2005 09:28:37 +0000 (09:28 +0000)]
mm -> pm fixes

CTRL nitpick in setup ;)

un-executable scripts fixes

19 years agomm -> pm fixes
Ben Gras [Wed, 4 May 2005 09:27:47 +0000 (09:27 +0000)]
mm -> pm fixes

19 years agoMade setup.sh more CD-aware (understand that the system looks like an
Ben Gras [Tue, 3 May 2005 15:43:12 +0000 (15:43 +0000)]
Made setup.sh more CD-aware (understand that the system looks like an
installed system already, but isn't).

Install sed in /bin too, so /etc/rc can use it for some /usr magic before
/usr is mounted.

19 years agoMust be able to run FP.compile if FP.compile isn't an executable script.
Ben Gras [Tue, 3 May 2005 15:41:39 +0000 (15:41 +0000)]
Must be able to run FP.compile if FP.compile isn't an executable script.

19 years agoFixed an mtree bugs that caused permissions and ownerships for / to
Ben Gras [Tue, 3 May 2005 15:41:02 +0000 (15:41 +0000)]
Fixed an mtree bugs that caused permissions and ownerships for / to
be wrong.

Made the install process quieter when install already done.

rc and daily now is more readonly-/usr aware (for cd).

19 years agoRaised version to 3.0.2 in config.h
Ben Gras [Tue, 3 May 2005 15:39:41 +0000 (15:39 +0000)]
Raised version to 3.0.2 in config.h

Told the Makefile not to panic if creating /usr/include due to it existing
(due to bin not being allowed to create it) fails, this smoothens installs
done by bin (instead of root).

19 years agoDevice variables get copies of their contents in *_n variables for scripts
Ben Gras [Tue, 3 May 2005 15:38:41 +0000 (15:38 +0000)]
Device variables get copies of their contents in *_n variables for scripts
that want the device name (as opposed to the number for the kernel).

19 years agoMore polishing to the boot and release process. Highlights:
Ben Gras [Tue, 3 May 2005 15:37:34 +0000 (15:37 +0000)]
More polishing to the boot and release process. Highlights:
. Less dependency on scripts to be executable (they're in cvs)
. issue.install is the /etc/issue that goes on an install CD
  for instructions (but not on the installed system)
. /usr/src goes on the CD uncompressed

19 years agoRename mm (memory manager) to pm (process manager), involved renaming
Ben Gras [Tue, 3 May 2005 15:35:52 +0000 (15:35 +0000)]
Rename mm (memory manager) to pm (process manager), involved renaming
dir..

19 years agoFixed compile break (no install target)
Ben Gras [Tue, 3 May 2005 09:15:37 +0000 (09:15 +0000)]
Fixed compile break (no install target)

19 years agoFixed clean target a little more
Ben Gras [Tue, 3 May 2005 09:05:17 +0000 (09:05 +0000)]
Fixed clean target a little more

19 years agobugfix from jnherder
Ben Gras [Tue, 3 May 2005 09:03:55 +0000 (09:03 +0000)]
bugfix from jnherder

19 years ago. FS: removed half-baked stack trace code
Ben Gras [Tue, 3 May 2005 09:02:47 +0000 (09:02 +0000)]
. FS: removed half-baked stack trace code
. inet: removed silly error message from inet that ends up in the console
  regularly
. Makefile: added some files to the incomplete clean target

19 years ago*** empty log message ***
Ben Gras [Tue, 3 May 2005 08:59:28 +0000 (08:59 +0000)]
*** empty log message ***

19 years agomade 2 error messages less ambiguous
Ben Gras [Tue, 3 May 2005 08:59:13 +0000 (08:59 +0000)]
made 2 error messages less ambiguous