Commit Graph

32184 Commits

Author SHA1 Message Date
KATO Takenori
6939f71026 Sync with sys/i386/i386/userconfig.c revision 1.111. 1998-10-08 12:09:38 +00:00
Jordan K. Hubbard
a34b53fbb3 Finally settle on a name for the mfsroot image. 1998-10-08 10:18:55 +00:00
Jordan K. Hubbard
9013d85dcb Only install boot blocks if !MFSKERN. Too big otherwise! 1998-10-08 10:02:28 +00:00
David E. O'Brien
d22889b821 Quiet many compiler warnings. 1998-10-08 09:56:10 +00:00
Jordan K. Hubbard
8198d9b044 Add boot bits to boot floppy. 1998-10-08 09:53:32 +00:00
Jordan K. Hubbard
e2d5656999 Make both types of boot targets. 1998-10-08 09:40:17 +00:00
Jordan K. Hubbard
bcfb491dfa Final cleanup pass over boot floppy changes. 1998-10-08 09:06:16 +00:00
Poul-Henning Kamp
0e8380df1f Avoid using dmesg to find devices, the buffer may not be big enough.
Reviewed by:	phk
Submitted by:	Mike Spengler <mks@networkcs.com>
1998-10-08 08:56:01 +00:00
Jordan K. Hubbard
c5a5d65bf8 Remove a gratuitous copy. 1998-10-08 07:12:37 +00:00
Jordan K. Hubbard
3b29c89296 Add some rudimentary documentation for my new functions. 1998-10-08 06:53:32 +00:00
Søren Schmidt
f8161cee7c Remove debug output on disk change. 1998-10-08 06:41:44 +00:00
Mark Murray
c67d21dd73 Add auth.conf. JKH Added the code to understand this to libutil, and
I will be following up with commits to use it in KerberosIV userland.
1998-10-08 06:12:04 +00:00
Kenneth D. Merry
8e35ba93ae Add the quirk entry framework to handle disabling the synchronize cache
command on drives that don't like it.  Right now, there's just a bogus
quirk entry in the table that doesn't do anything, but that should be
changed once we get actual inquiry data for drives that don't like the
synchronize cache command.

Also, add a shutdown hook that runs through all direct access peripherals
and runs a synchronize cache on them if they're still open, and if
synchronize cache isn't disabled via a quirk entry.

Add a synchronize cache call at the end of dadump() (again, conditionalized
on the quirk entry), so we can insure that the disk cache contents get
flushed to physical media after a dump.

Check the new quirk entry in daclose() to decide whether or not to
synchronize the cache for a disk at final close.

Reviewed by:	gibbs
1998-10-08 05:46:38 +00:00
Jordan K. Hubbard
69761016be Correct a build error that got past my build test somehow. 1998-10-08 01:56:49 +00:00
Alexander Langer
bdc2cdc5fe Check the timeval passed to BIOCSRTIMEOUT with itimerfix. Use tvtohz()
to convert the timeval into a tick count.

Suggested by:	bde
Reviewed by:	bde

Handle hz > 1000 in BIOCGRTIMEOUT.

Pointed out by:	bde
Reviewed by:	bde
Obtained from:	OpenBSD
1998-10-08 00:32:08 +00:00
Jordan K. Hubbard
47230ffe29 Unreverse a conditional and gzip the mfs image by default. 1998-10-07 22:58:22 +00:00
Jordan K. Hubbard
f21b983cbf Support 3 floppy images as standard now: boot kernel, mfs image and
kernel+mfs image.
1998-10-07 22:54:04 +00:00
Jordan K. Hubbard
44f93911b6 Fix typo. 1998-10-07 22:36:48 +00:00
Jordan K. Hubbard
91e19074b4 Fix typos. 1998-10-07 22:15:24 +00:00
Jordan K. Hubbard
6105ca57e3 Add MFSKERN flag to enable the combining of kernel and MFS fs.
At some point, it will always be off from the user's POV and used
only internally to build (optionall) both mfskern floppies and
ones where mfs root and kernel go in separate places.
1998-10-07 21:53:14 +00:00
Dag-Erling Smørgrav
dea468b2e9 By popular request, mention that mailq responds to the same options as
sendmail(8).

PR:		i386/8149
1998-10-07 19:45:36 +00:00
Jordan K. Hubbard
17ee5a3283 Read in all the nlist entries properly. 1998-10-07 19:42:46 +00:00
Jordan K. Hubbard
2370786109 Add isa_devtab_cam 1998-10-07 19:40:51 +00:00
Jordan K. Hubbard
b704025f3c Add a simple mechanism for reading property lists from files (which
I'll convert sysinstall to use shortly) and a simple call which uses
this mechanism to implement an /etc/auth.conf file.  I'll let Mark Murray
handle the format and checkin of the sample auth.conf file.
Reviewed by:	markm
1998-10-07 17:32:49 +00:00
Dag-Erling Smørgrav
a7eaa4dbf7 Add missing newline in probe message.
PR:		kern/8168
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de>
1998-10-07 14:42:24 +00:00
Luoqi Chen
523e3b0f7f Use vm_page_xxx() inline functions to manipulate vm_page::flags, vm_page::busy.
As a side effect, a few wakeup() calls are added, which might fix some of the
missing vm_page wakeups people have been seeing.

Reviewed by:	Doug Rabson	<dfr@nlsystems.com>
1998-10-07 13:59:26 +00:00
David E. O'Brien
abd931ff18 Fix syntax errors I introduced. 1998-10-07 13:51:46 +00:00
Mike Smith
745f11adb6 Add strcasecmp source file required for dosfs operation. 1998-10-07 13:50:17 +00:00
KATO Takenori
c668c15639 Use MACHINE_ARCH instead of MACHINE to detect x86 arch.
Pointed out by:	Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
1998-10-07 13:46:09 +00:00
Peter Wemm
e3de88f4ff Fix that pesky boot aguments parsing bug. (I think :-) 1998-10-07 10:55:46 +00:00
Mike Smith
ee4f7b62a0 Request the flags back when checking for keyboard status.
Submitted by:	rnordier
1998-10-07 07:34:31 +00:00
Justin T. Gibbs
859244a61e Add entries for the adw device driver. 1998-10-07 03:42:44 +00:00
Justin T. Gibbs
6405ed07d7 ahc_pci.c:
Disable DPARCKEN in the DSCOMMAND0 register on the aic7890/91/96/97.
	Parity checking is broken for some chip/MB combinations and this
	is the work around recommended by Adaptec.

dpt_pci.c:
	Remove a superflous '{' that prevented DPT_ALLOW_MEMIO from working.

pcireg.h:
	Add a definition for Parity Error Reponse bit in the PCI Space
	command register.
1998-10-07 03:40:51 +00:00
Justin T. Gibbs
9aa4621326 Fix a parent tag reference count bug during tag teardown.
Enable optimization for nobounce_dmamap clients by setting the map
held by the client to NULL.  This allows the macros in bus.h to check
against a constant to avoid function calls.

Don't attempt to 'free()' contigmalloced pages in bus_dmamem_free().
We currently leak these pages, which is not ideal, but is better than
a panic.  The leak will be fixed when contigmalloc is merged into the
bus dma framework after 3.0R.
1998-10-07 03:38:14 +00:00
Justin T. Gibbs
13cfc225b9 Add a missing newline. 1998-10-07 03:34:13 +00:00
Justin T. Gibbs
217a0a47e4 Don't set the active flag on a transaction resource until it has been
queued.

Perform dma segment setup outside of splcam protection as this can take
some time and the protection is not necessary.

Inline a function.

Clean up some whitespace.
1998-10-07 03:32:57 +00:00
Justin T. Gibbs
528784ed05 Add ADW_ALLOW_MEMIO and DPT_ALLOW_MEMIO. Until our configuration
framework properly detects broken PCI-PCI bridges, users will have to
manually enable memory mapped I/O for these drivers. <sigh>
1998-10-07 03:30:55 +00:00
Justin T. Gibbs
2ba01e6ff4 Add a quirk entry for the CFP2107, another drive with broken
tagged queuing support.

Ensure that we report that a device supports tagged queuing even if
the system is waiting a "command count delay" before starting to use
them.

If a user disables disconnects on a device ensure that tagged queuing
is also turned off.  We did the right thing during initial configuration,
but could be confused by manual changes.
1998-10-07 03:25:21 +00:00
Justin T. Gibbs
85186e4602 Add support for the ASC3550 AdvanSys SCSI Host Controller (aka 940UW). 1998-10-07 03:20:52 +00:00
Jordan K. Hubbard
3246202c72 Don't use boot2 on alpha. 1998-10-07 03:15:08 +00:00
Jordan K. Hubbard
a5ddb8cfc6 Remove hard-coded constants being passed to doFS.sh and add in a 386/alpha
configuration section.
1998-10-07 03:13:36 +00:00
Warner Losh
6a3722a752 Up the read capacity timeout from 20 seconds to 60 seconds to keep my
JAZ drive happy.  This shouldn't impact fast drives, and will keep cam
from failing on very slow ones (that are spinning up, say).  20
seconds was almost long enough, but not in all cases.

Suggested by: gibbs
1998-10-07 03:09:19 +00:00
Kenneth D. Merry
777cfc2acd Some fixes for the CD and DA drivers from bde. (and some of my own as
well)  Among them:

[ cd driver ]
1. Old labeling code was still there.
2. Error handling for dsopen() was broken (no test for the `error'
   returned by dsopen(); bogus test of an `error' that is known to be 0).
3. cdopen() closed the physical device after certain errors although there
   may still be open partitions on it.
4. cdclose() closed the physical device although there may still be open
   partitions on it.
5. Some printf format fixes was incomplete or missing.
6. cdioctl() truncated unit numbers mod 256.
7. cdioctl() was missing locking.

[ da driver ]
1. daclose() closed the physical device although there may still be open
   partitions on it.  This was fixed many years ago in sd.c rev.1.57.
2. A minor optimization (the dk_slices != NULL test) in sdopen() became
   uglier in daopen().  It is not worth doing.  da only regressed compared
   with od and my version of sd, since I never committed the change to sd.
   daopen() should probably do less if some partition is already open.
   This is not addressed by the diffs.
[ ... ]
5. "opt_hw_wdog.h" was not included, so the HW_WDOG code was unreachable.

- Added a getdev CCB call in the cdopen() and daopen() calls so that the
  vendor name and device name are available for the disklabel.  (suggested
  by bde)

- Removed vestigal devfs support in both drivers, since we can't properly
  work with devfs yet.  (ask bde for details on this)

- Cleaned up the probe code in both drivers in the failure cases.  There
  were a number of things wrong here.  The peripheral driver instances
  weren't getting properly cleaned up.  Sometimes the wrong probe message
  would get printed out (with the failure message appended), so it wasn't
  very clear that we failed to attach.  SCSI sense information was printed,
  even when the error in question wasn't a SCSI error.  I put similar fixes
  into the changer driver in revision 1.2 of scsi_ch.c.

Reviewed by:	gibbs
Submitted by:	bde (partially)
1998-10-07 02:57:57 +00:00
Jordan K. Hubbard
c47421bd7f Turn ALLLANG back on. 1998-10-07 02:57:16 +00:00
Jordan K. Hubbard
e19c816a01 Add spanish doc dirs.
Submitted by:	Motoyuki Konno <motoyuki@snipe.rim.or.jp>
1998-10-07 02:55:59 +00:00
Mike Smith
0bab8c3243 Enable the DOS filesystem. NOTE: you will have to rebuild libstand in
order to be able to build again.
1998-10-07 02:39:32 +00:00
Mike Smith
0f7d15efd8 - Drain the keyboard buffer when initialising.
- Be pedantic about the return from int 16 fn 01.
1998-10-07 02:39:06 +00:00
Mike Smith
b820c8e626 - VERBOSE_LS is obsolete, as the heap is much better behaved now.
- Don't whine about nodes we can't stat(); these are usually
   symlinks that lead out of the filesystem.
 - Autoboot is now controlled by $autoboot_delay, which is a value
   in seconds or NO to disable autoboot.
 - Don't autoboot at the end of boot.conf if we have already tried.
 - Add a 'read' command to complement 'echo'.  Both are still hidden.
 - Improve the 'source' command/function so that it is possible to
   source scripts off removable media.  The entire script is read and
   saved before beginning execution.  Script lines beginning with
   '@' will not be echoed when being executed.  Script execution will
   normally terminate at the first error, however if the script line
   begins with '-' this behaviour is overriden for that command.
1998-10-07 02:38:26 +00:00
Mike Smith
82bb1fb746 VERBOSE_LS is obsolete 1998-10-07 02:33:01 +00:00
Julian Elischer
29595ffd90 Fix a memory leak
PR: 7923
Submitted by: Archie Cobbs <archie@whistle.com>

        The scandir() function returns -1 if it fails.
	In many cases when this happens, it does not free
	the memory that it allocated, resulting in a memory
	leak, or close the directory opened with opendir().
	BAD DOG, BAD!
1998-10-07 01:30:02 +00:00