Commit Graph

4014 Commits

Author SHA1 Message Date
Poul-Henning Kamp
13cd44971d Only so savecore if people ask for it. 1994-11-07 04:02:26 +00:00
Poul-Henning Kamp
544f693f5a Get us back on fd1200 floppies. Fix extract.sh to right filenames. 1994-11-07 03:53:14 +00:00
Poul-Henning Kamp
98020fdd6c Added a kernel variable, "dodump" defaulting to zero, which disables dumps.
Somebody should make a mib variable for it.
Just now it is pointless to dump the kernel, since we have nothing which
can read the dump.
Furthermore is should never be the default to dump.
	options	DODUMP
will enable dumps.
1994-11-07 03:51:32 +00:00
Poul-Henning Kamp
c4f1695923 Only Mount relative to Written disklabel. 1994-11-07 00:41:38 +00:00
Poul-Henning Kamp
ae7d223f92 Add extract-script. 1994-11-06 23:47:06 +00:00
Poul-Henning Kamp
44a88072bd Never have more than one active partition. 1994-11-06 23:33:20 +00:00
Poul-Henning Kamp
89c8eae117 Initialize %fs and %gs from %ds.
This seems to stabilize the APM-bios on my Gateway Handbook, and it makes
sense in general too.
1994-11-06 22:18:45 +00:00
Andreas Schulz
f0e1ab7bc7 Put a small hack into a large hack named makeyscall.sh. Generate only
one lkmnosys() entry in init_sysent.c.
1994-11-06 21:57:16 +00:00
Bruce Evans
374047c149 Restore my fixes to 2.6.0. The changes should not affect anything except
profiling and wchar_t.  Profiled libraries will shrink.

tm.h:
Our wchar_t is int, not unsigned short.
Always link statically if profiling.
Define all the SPECs together.

final.c, tm.h:
Don't emit unused profiling code and data.

aux-output.c:
Always preserve the PIC register if profiling.

aux-output.c, tm.h:
Implement FUNCTION_PROFILER_EPILOGUE (currently not used).

New:
tm.h:
Set the target defaults in the correct way.
1994-11-06 21:32:11 +00:00
Poul-Henning Kamp
3dfc7586e5 Always make the salt a 8 char string (incl '\0') for algorithms that can use it 1994-11-06 21:08:19 +00:00
Andrey A. Chernov
7bcf49f368 After fixing curses bugs use LINExCOLS in show file 1994-11-06 15:35:50 +00:00
Andrey A. Chernov
5970372325 This curses fix allows to print something in lower right corner
if insert_character is available or don't print, if not
1994-11-06 15:30:37 +00:00
Jordan K. Hubbard
55c92c2040 Default boot floppies are 1.44MB again - I ran out of space. HOWEVER,
there is an extra target now for creating a 1.2MB floppy at the cost
of a few of the doc files.  Just do a `make small.floppies' instead of
a `make floppies' to make a small set.
1994-11-06 11:24:58 +00:00
Andrey A. Chernov
08ee5d13ae Security nitpicking: don't make *.core world readable 1994-11-06 11:13:02 +00:00
Jordan K. Hubbard
1d317df96c If a file is not present, it's not an error. This means you're using the
1.2MB floppy image.
1994-11-06 11:09:18 +00:00
David Greenman
1e8ee278b6 From Johannes Stille:
When we get an EN8 response while we're already sending the file using
the i protocol, this can happen:

In send.c, flocal_send_await_reply() is called. This function calls
flocal_send_fail() to process the aborted transfer. After this, we run
into the branch that calls ffileseekend() to force the end of the
actual transfer.

Now flocal_send_fail() frees qtrans, but qtrans is still used later!

I propose to fix this by moving the usfree_send(qtrans) out of
flocal_send_fail(), as in the patch I append to this mail.

...

I have found a race condition in the uucp 1.05 code. The typical result
is that the connections mysteriously fails with "conversation failed",
even while all files were transmitted. This is the problem:

At least for the i protocol, the code to send a packet can receive and
process packets after sending.
In several places in the code, we send a command and then prepare to
receive an answer.
Now the answer might already arrive during the call that sends the
command while we aren't ready to process it.

The general solution is IMHO first to do all preparations and only as a
last step to send out the command.

Reviewed by:	John Dyson
Submitted by:	Johannes Stille
1994-11-06 10:17:13 +00:00
David Greenman
a83c285c7e Fixed return status from pagers. Ahem...the previous method would manufacture
data when it couldn't get it legitimately. :-(

Submitted by:	John Dyson
1994-11-06 09:55:31 +00:00
Andrey A. Chernov
02ebab5bf9 Several fixes for 'back_color_erase' curses problem 1994-11-06 09:30:36 +00:00
Andrey A. Chernov
65eaa00bfb Fix curses bug with delete character and standout 1994-11-06 08:33:34 +00:00
Paul Traina
a0334cef15 Add end of line check so mkinit doesn't produce garbage if you have a
MKINIT line that doesn't have a comment on it (we have at least two).

This mkinit program was written by someone who obviously doesn't believe
in defensive programming. :-(  There's a LOT of work that needs to be done
on this thing. :-( :-( :-(
1994-11-06 06:27:04 +00:00
David Greenman
2fe6e4d71e Added support for starting the experimental "vmdaemon" system process.
Enabled via REL2_1.

Added support for doing object collapses "on the fly". Enabled via REL2_1a.

Improved object collapses so that they can happen in more cases. Improved
sensing of modified pages to fix an apparant race condition and improve
clustered pageout opportunities. Fixed an "oops" with not restarting page
scan after a potential block in vm_pageout_clean() (not doing this can result
in strange behavior in some cases).

Submitted by:	John Dyson & David Greenman
1994-11-06 05:07:53 +00:00
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