Commit graph

3993 commits

Author SHA1 Message Date
David Greenman cf17350a73 Added support for starting the experimental "vmdaemon" system process.
Enabled via REL2_1.

Submitted by:	John Dyson
1994-11-06 05:01:58 +00:00
David Greenman fc64ae2b4e Do a better job at preparing registers for the new process in setregs()
by setting them all to a known state.
1994-11-06 04:46:53 +00:00
Poul-Henning Kamp af3b22a544 remember to tell dialog that we leave. 1994-11-06 04:34:46 +00:00
Jordan K. Hubbard e9b2310837 Retreat from the idea of using gzip'd ascii files. 1994-11-06 04:10:13 +00:00
Jordan K. Hubbard cfc507cc8b 1. The gzip'd docs aren't going to work - there's no scroll-back for
process output dialogs (or any way to stop the output, for that matter!).
2. Install the very first cut of my bininst stage6 script.  VERY rough,
   it doesn't actually do anything just yet, but I need to make sure that
   it's at least executed for the moment.
1994-11-06 04:07:41 +00:00
Poul-Henning Kamp 6b25616b3b label.c Make sure we always show 8 disk-partitions.
main.c	sanitize the logic of what we do when:

if(getpid()!=1) do stage0 & stage1  (very useful actually)
else if (floppy-marker-file is there) stage0-2, reboot
else stage3-5
1994-11-06 04:05:45 +00:00
Jordan K. Hubbard 8a364f2218 Make a link for gzip so we actually have it available on the boot floppy. 1994-11-06 02:37:25 +00:00
Jordan K. Hubbard a0c7a3b3cf Sigh. My error message printing was still wrong. Wipe the sleep from
my eyes and do this properly (debugging is especially difficult when you have
to burn a floppy every time you want to test your changes! :-( ).
1994-11-06 02:24:45 +00:00
Jordan K. Hubbard e294dc8a7c Don't use a shell, silly, we don't have one! 1994-11-06 01:34:14 +00:00
Bruce Evans 2c305bdb3c Nuke the losing version of microtime. The assembler version now works
for all reasonable HZ's.  HZ > 1000 doesn't work because of sloppy
conversions in hzto() (division by (tick / 1000) == 0).  This was
fixed in 1.1.5.

Eliminate some extern declarations by including the appropriate header
files that now contain appropriate declarations.
1994-11-06 01:33:03 +00:00
Jordan K. Hubbard beeac5cded Get this braindead, mongoloid shell look in /stand for pwd if it can't
find it in /bin.  This is something of a kludge, I know, but consider
my limited alternatives:  I can't make this an execvp() without making
people scream that I introduced a failure point or slowed down pwd,
and I can't make it an optional macro since crunch doesn't let you pass
arbitrary command-line args to the build of one of its crunch-ees.
This is the simplest, if not the nicest looking, solution I could come up
with.
1994-11-06 01:29:26 +00:00
Jordan K. Hubbard e141581e6c Don't strip kernel after all - perhaps a bad idea. People may be stuck
with it for awhile.
1994-11-06 01:19:48 +00:00
Jordan K. Hubbard feec7965b6 Tweak tweak.. 1994-11-06 01:16:30 +00:00
Scott Mace 6831597a60 Make /usr/bin/crontab install setuid root. (doesn't work otherwise)
The distributed makefile in the package installs it setuid root..
Reviewed by:	jkh
1994-11-06 01:13:59 +00:00
Bruce Evans 94096616ab Public function declarations moved to <machine/npx.h>. 1994-11-06 00:58:06 +00:00
Bruce Evans 5eb4d8cfd4 Abort writes if a signal is received (don't ignore the value returned by
tsleep()).  Try `dd if=/dev/zero of=/dev/pcaudio bs=640k count=1'.  The
write takes a few hundred seconds to drain, and if it is killed by a
signal, it still takes a few hundred seconds to drain and all of those
seconds are spent busy-waiting.

Clean up includes and declarations.  Remove bogus casts of args to
timeout functions.
1994-11-06 00:46:21 +00:00
Bruce Evans 4a7472ce04 The style in my patch011 is inconsistent and out of date. It should
have been changed _before_ committing the patch.
1994-11-06 00:30:16 +00:00
Bruce Evans 2f31d30b01 Work around microtime() enabling interrupts. 1994-11-06 00:23:45 +00:00
Jordan K. Hubbard 9228b950e4 Twiddle newfs parameters to select for space optimization. We're
back under 1.2MB again.
1994-11-06 00:21:39 +00:00
Jordan K. Hubbard 69f4f39307 Strip kernel before installation. Anything to bum a few more bytes.. 1994-11-06 00:10:00 +00:00
Jordan K. Hubbard 49f61422b6 Add -lreadline for ncftp. 1994-11-06 00:00:17 +00:00
Jordan K. Hubbard 9d8db7f2f4 I misunderstood dialog_prgbox() - fix it. 1994-11-05 23:56:40 +00:00
Bruce Evans a3b33372b9 Maintain a new variable `timer0_overflow_threshold' so that microtime()
doesn't have to calculate it every call.

Rename `timer0_prescale' to `timer0_prescaler_count' and maintain it
correctly.  Previously we lost a few 8253 cycles for every "prescaled"
clock interrupt, and the lossage grows rapidly at 16 KHz.  Now we
only lose a few cycles for every standard clock interrupt.

Rename `*_divisor' to `*_max_count'.

Do the calculation of TIMER_DIV(rate) only once instead of 3 times each
time the rate is changed.

Don't allow preposterously large interrupt rates.  Bug fixes elsewhere
should allow the system to survive rates that saturate the system, however.

Clean up declarations.

Include <machine/clock.h> to check our own declarations.
1994-11-05 23:55:07 +00:00
Bruce Evans ae406484f0 Fix a bug introduced between 1.1 and 1.1.5. Loading the time was moved
outside the critical region.

Make it work with 2.0.  It wasn't designed to be called at splclock().

Make it work with prescaling.  The overflow threshold was bogus.

Make it work for any HZ.  Side effect of fixing prescaling.

Speed it up.  Allocate registers better.  Reduce multiplication and
division to multiplication and a shift.  Speed is now 5-6 usec on a
486DX/33, was about 3 usec more.

Optimize for the non-pentium case.  The pentium code got moved around
a bit and hasn't been tested.

Change #include's to 2.0 style.
1994-11-05 23:53:46 +00:00
Jordan K. Hubbard b2e3ee0a69 Make ShowFile() now show gzip'd text files. This should save a fair
bit of space on the install floppy.  Modify stage0 and the target names
accordingly.
1994-11-05 23:12:10 +00:00
Andrey A. Chernov e897bbe2ee Enable back dialog_msgbox in TellEm, real problem was delwin
into edit_line
1994-11-05 23:09:26 +00:00
Jordan K. Hubbard b0b538ae45 Install docs gzip'd. 1994-11-05 23:05:53 +00:00
Bruce Evans a1ca704e29 Declare all functions exported by the npx driver.
Uniformize idempotency ifdefs.
1994-11-05 22:59:09 +00:00
Bruce Evans 65af765646 Declare the full uglyness of the interfaces to the clock driver (except
things declared in machine-independent files).
1994-11-05 22:51:17 +00:00
Bruce Evans c342b9faa3 Disable the direct call from hardclock() to softclock(). Support
for it is incomplete and buggy.  There is no problem unless Xintr0()
is reentered or should be reentered, but high clock interrupt
frequencies for pcaudio cause Xintr0() to be reentered (or clock
ticks to be lost when Xintr0() should have been reentered but
wasn't), and we lose little by delaying the call to softclock().

Move declarations related to the clock driver to clock.h.

Move declarations related to the npx driver to npx.h.

Clean up the remaining declarations.
1994-11-05 22:44:34 +00:00
Andrey A. Chernov c897ebc21a Change -O2 to -O
With each gcc version -O2 can cause absolutely unpredicatable things
Second stage boot still fits in allowed size
1994-11-05 21:06:16 +00:00
Andrey A. Chernov 5b515dcb38 Fix group permissions check for group list size > 1
Pointed by Bruce
1994-11-05 20:48:06 +00:00
Andrey A. Chernov 20662469d5 Fix root -w case according to manpage (-x & -r cases already accords)
Pointed by Bruce.
1994-11-05 20:24:49 +00:00
Nate Williams 692a99c012 Date: Wed, 26 Oct 1994 15:44:49 -0600
From: Chris Torek <torek@bsdi.com>
Here is a semi-official patch (apply to /usr/src/lib/libc/stdio/fseek.c,
rebuild libc, install).  The current code fails when the seek:

  - is optimized, and
  - is to just past the end of the block currently in the buffer, and
  - is followed by another seek with no intervening read operation, and
  - the destination of subsequent seek is within the block left in the
    buffer (seeking to the beginning of a block does not force a read,
    so the buffer still contains the previous block)

so it is indeed rather obscure.

I may have a different `final' fix, as this one `loses' the buffer
contents on a seek that goes just past the end of the current block.

[Footnote: seeks are optimized only on read-only opens of regular
files that are buffered by the file's optimal I/O size.  This is
what you get with fopen(path, "r") and no call to setvbuf().]

Obtained from: [ BSDI mailing list ]
1994-11-05 18:49:34 +00:00
Andrey A. Chernov 01bb3d8e18 Cosmetique, missing tab/spaces after patch 1994-11-05 17:31:23 +00:00
Andrey A. Chernov ea8bd6e348 More complex implementation of previos superuser fix
because rw and x bit treats differently infact
1994-11-05 17:28:03 +00:00
Andrey A. Chernov 3b0beab69c test produce wrong results for superuser, i.e. tells
that file is unreadable when it is readable infact.
1994-11-05 17:07:14 +00:00
Jordan K. Hubbard fe3e9e3cb9 Add targets to crunch floppy to match Makefile. 1994-11-05 09:06:10 +00:00
Jordan K. Hubbard e7b28a06e1 Add ncftp. I needed it for "hands-free" ftp operation from the install
script.
1994-11-05 08:49:05 +00:00
Jordan K. Hubbard f90d7a2f31 Whoops! Knew I forgot something.. Bump the menu size. 1994-11-05 08:20:54 +00:00
Jordan K. Hubbard 3f5bee85a0 Add a chance to read the release notes, too. 1994-11-05 08:20:08 +00:00
Jordan K. Hubbard 8ebd7ffaac Add the release notes, so I can have the user read these too. 1994-11-05 08:16:01 +00:00
Jordan K. Hubbard adec1b64b3 Put this here instead. 1994-11-05 08:11:22 +00:00
Jordan K. Hubbard 6f902e3c21 Add new mount_* commands. 1994-11-05 07:55:30 +00:00
Jordan K. Hubbard eccb9db542 Add slattach. 1994-11-05 07:52:14 +00:00
Jordan K. Hubbard 2405ced306 Argh! Missing quotes. 1994-11-05 07:41:08 +00:00
Jordan K. Hubbard 4525c93ebf We need CD9660 and MSDOS filesystems built-in if the floppy is to have
a hope of getting at these types of filesystems without dragging all
the LKM stuff in.
1994-11-05 07:38:50 +00:00
Jordan K. Hubbard 33d3e14480 I'm not sure if we're just supposed to fall off the end like this,
but at least return something.
1994-11-05 07:34:02 +00:00
Jordan K. Hubbard 6e213286f4 Make stage5 go either to a shell, or on to the bindist installation. 1994-11-05 07:23:58 +00:00
Jordan K. Hubbard 0fe610487f Make this work the way it was really supposed to - less intrusively. 1994-11-05 07:03:55 +00:00