Commit Graph

3003 Commits

Author SHA1 Message Date
joerg
ef9fb89c9a Fixed the problem where the floppy has incorrectly failed probing
when the drive had been left on a cylinder > 67 after kernel boot. The
most common case for this is booting a kernel that is located on
the inner cylinders of a floppy.

Also removed all occurences of spinwait(), replaced by DELAY.
Nuked a return line saying nothing, this might make Bruce happy 8^)

Submitted by:	partially by Bruce Evans
1994-09-17 18:08:36 +00:00
dg
02f7cccd8f Fix include path. 1994-09-17 17:55:03 +00:00
dg
01a23bac82 Added fdformat utility from 1.1.5. 1994-09-17 17:08:31 +00:00
dg
9e5034dab3 Updated driver to the 1.1.5 version:
date: 1994/05/22 12:35:38;  author: joerg;  state: Exp;  lines: +6 -6
First round of floppy changes. Try making `fd' more robust.

New features:
  .  ioctl command for setting the drive type (density etc.); restricted
     to the super-user
  .  ioctl for getting/seting `drive options'; currently only option
     is FDOPT_NORETRY: inhibit the usual retries; used when verifying
     a newly formatted track

Fixes:
  .  function prototypes
  .  made all internal functions `static'
  .  cleaned up & corrected .h files
  .  restructured, to make the chaotic function sequence more rational
  .  compiled with -Wall, and cleared all warnings
  .  introduced a mirror for the (write-only) `digital output register',
     to avoid the current kludge
  .  device probing completed by seeking/recalibrating, and looking
     for track 0 being found
  .  holding the controller down in reset state while it is idle (and
     thus saving allot of headaches)
  .  make requests fail that are not a multiple of the (physical)
     sector size
  .  removed the fixed physical sector size (512 bytes), allowing for any
     size the controller could handle (128/256/512/1024 bytes)
  .  replaced some silly messages
  .  fixed the TRACE* macro usage, debugging reports should be complete
     now again (debugging output is HUGE! though)
  .  removed fd_timeout for SEEK command; seeks are always reported by
     the controller to succeed, since the `success' only refers to the
     controller's idea of success - there is no hardware line to tell about
     the seek end (other than the `track 0' line)
  .  catch SENSEI's that report about a `terminated due to READY changed'
     status - could happen after a controller reset
  .  converted ``hz / <something>'' divide operations to divisors that are
     powers of two, so gcc can optimize them into shifts
  .  write/format operations are checked against a write-protected medium
     now *prior* starting the operation
  .  error reports of `invalid command' and `wrong cylinder' will cause
     shortcuts in the retrier() now
  .  fixed a bug in the retrier() causing bogus block numbers to be reported
  .  fdformat() does care for errors now

Known Bugs:
  .  no attempts have been made (yet) to improve the performance
  .  sometimes, bogus ``seek/recalib failed'' messages are logged; this
     is still a bug in the driver, but it's not harmful since it's
     usually caught by the retrier()

Reviewed by:
Submitted by:
Obtained from:
1994-09-17 16:56:10 +00:00
se
0b3d236f17 Include <i386/include/cpufunc.h> to have outb() defined ... 1994-09-17 16:51:47 +00:00
dg
46f6a6cf62 Got rid of compiler warnings. 1994-09-17 13:24:29 +00:00
se
1d53296b21 Changed CDOUTSTANDING back to a value of 2 (from 1), since this is now only
an upper limit, not a fixed value (ignoring the host adapter capabilities)
as before.
1994-09-16 23:43:28 +00:00
wollman
587e989a65 Per discussion on the mailing-lists, move LKMs from /sbin to /lkm, and
arrange for that directory to get created by mtree.  Also, process secure
directory after all the others, because the programs there may overlay
ones installed from the main part of the tree.
1994-09-16 20:24:29 +00:00
wollman
e199f6ca30 Delete unlikely-to-be-used filesystems from GENERIC kernels. 1994-09-16 20:14:03 +00:00
gclarkii
85d67cbad3 Added new entry 1994-09-16 18:51:50 +00:00
gclarkii
1b89a5e0e0 Added first system entry (mine)
Reviewed by:
Submitted by:
Obtained from:
1994-09-16 18:46:09 +00:00
gclarkii
945532c8da Added version string (All new FAQ stuff should have one) 1994-09-16 18:35:24 +00:00
gclarkii
772a740d28 Started cleaning up FAQ directory for 2.0.
Move old FAQ to FreeBSD-1.1.FAQ
Started new FAQ
Move old Systems to Systems-1.1.FAQ
Started new Systems
moved slip-dialup to Slip.FAQ (Needs to be reworked for 2.0)

More work to come...
1994-09-16 18:24:41 +00:00
dfr
346fdce9b6 Added code for FreeBSD-1.1.5 backwards compatibility. 1994-09-16 17:43:22 +00:00
jkh
24ea874ee2 Add support for DEBUG_FLAGS. If you say something like:
make DEBUG_FLAGS=-g2

You can compile something for debugging at debugging level 2.
It will also take care not to strip the resulting executable(s).
1994-09-16 14:30:25 +00:00
dg
9305e96e91 Removed inclusion of pio.h and cpufunc.h (cpufunc.h is included from
systm.h). Merged functionality of pio.h into cpufunc.h. Cleaned up some
related code.
1994-09-16 13:33:56 +00:00
paul
f5d4ca98b0 Moved include of cdefs.h outside of ifndef KERNEL so it always
gets included.
1994-09-16 11:44:45 +00:00
jkh
96db9edcfe Deal with outw being defined - the declaration clashes. 1994-09-16 11:22:33 +00:00
jkh
69b136a003 Add SYSV shm stuff back to LINT.
chflags noschg /kernel in Makefile.i386 so if our previous kernel
was installed by make install, the second won't fall over.
1994-09-16 10:23:46 +00:00
phk
745f775e9f Made the kernel compile even without "ether". 1994-09-16 05:47:06 +00:00
rgrimes
c36c4b9d82 Eliminate use of raw control characters in stty commands, make echo's and
stty commands self consistent.

Submitted by:	bde
1994-09-16 04:20:14 +00:00
ache
fd1eb76c9a Remove all ADJKERNTZ references, now all this stuff in cpu.h 1994-09-16 01:09:42 +00:00
ache
224cf8d7ca CPU_ADJKERNTZ added for resettodtr() 1994-09-16 01:05:24 +00:00
ache
9678b275a3 CPU_ADJKERNTZ added to cpu_sysctl 1994-09-16 01:00:38 +00:00
ache
934d10f7b9 KERN_ADJKERNTZ removed from here to cpu_sysctl MACHDEP section 1994-09-16 00:53:58 +00:00
ache
3c63b2bf9c KERN_ADJKERNTZ moved to MACHDEP section 1994-09-16 00:50:02 +00:00
se
a9dc507169 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de> + <se>
Improved bus probing, symbolic names for registers..
Chip set parameters get dumped for intel PCI chip sets
(82424+82434 only, for now).
1994-09-16 00:33:29 +00:00
se
f5664be83c Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
New version with support for the NCR 53c810 and 53c825.
Support for WIDE SCSI devices.
1994-09-16 00:22:32 +00:00
bde
5f995f154d Fix library dependencies. The clockstuff directory isn't used but I
fixed the Makefile before I knew that.
1994-09-15 20:55:44 +00:00
bde
dfd9d8220e Unmap hints file when finished with it, so that it can go away
completely when ldconfig unlinks it.  If init is shared, then the
referenced unlinked copy of the hints file created by running
ldconfig in /etc/rc caused the file system to be unclean after
every reboot.
1994-09-15 20:48:55 +00:00
bde
5a9d28f992 Add some prototypes. 1994-09-15 20:24:29 +00:00
bde
9bf7a8942d Don't exit early if the device is not character special or if the
device driver cannot supply a label (real or faked).  This allows
you to practice using fdisk on disposable media (e.g., "dd count=1
<dev/zero >/tmp/junk; fdisk /tmp/junk", "dd count=1 </etc/passwd
>/tmp/fix-up-the-mess; fdisk /tmp/fix-up-the-mess") and allows me
to test DOSpartitioning and labelling on floppies.
1994-09-15 20:19:51 +00:00
bde
c6a8288fd5 Install osreldate.h with the correct owner, group and mode. It is still
created at install time and not compared with the current version, so
it can't be installed using install and the timestamp of the target gets
clobbered.
1994-09-15 20:07:18 +00:00
bde
8878e58874 Install libregex.h with the correct owner, group and mode. 1994-09-15 19:52:50 +00:00
bde
91d2f60f72 Supply prototypes for some functions that were implicitly declared and
fix the resulting warnings.
1994-09-15 19:47:47 +00:00
bde
fc75376fae Obtained from:
Remove the unnecessary inclusion of disklabel.h in cd9660_vfsops.c so
that I don't have to worry about the latter when changing disklabel.h.

Supply prototypes for some functions that were implicitly declared and
fix the resulting warnings and errors (timevals were punned to timespecs).
1994-09-15 19:46:03 +00:00
pst
35401bce44 Add support for passive mode FTP (default off) to base FTP client to support
users behind packet filtering firewalls.
Obtained from: David Carrel <carrel@cisco.com>
1994-09-15 19:45:43 +00:00
paul
481e576cde Include pio.h so that all those drivers that only include cpufunc.h
get the faster io macros/inline code rather than call the routines
in support.s

This whole area needs some going over.....
1994-09-15 17:55:47 +00:00
dfr
f872aaba58 Added back the SYSV ipc files which somehow got removed. 1994-09-15 16:47:50 +00:00
paul
e674b0d90e Removed some macros that are now in cpufunc.h
Reviewed by:	Bruce
1994-09-15 16:32:07 +00:00
paul
96332e7720 Added MCOUNT_ENTER and MCOUNT_EXIT macros to profile.h
Removed inb function since it's more correctly in pio.h

Copied write_eflags and read_eflags over from npx.c

(Some changes to the macros suggested by Bruce were not made at this
time since his suggestions probably apply to all the macros and
these inlined/macro definitions need a lot of cleaning up at some
point in the future.)

Reviewed by:	Bruce
1994-09-15 16:27:14 +00:00
paul
65a4ad1875 Added support for kernel profiling to mcount.c 1994-09-15 16:00:41 +00:00
paul
71bdc2add9 Added -DKERNEL and added support for kernel profiling.
Reviewed by:	Bruce
1994-09-15 15:41:48 +00:00
jkh
d9e83da4dc Add NOMAN, fix Id. 1994-09-15 13:12:23 +00:00
jkh
6c21723e28 Add NOMAN, fix Id line. 1994-09-15 13:11:36 +00:00
jkh
6e84f48e3d Set NOMAN properly, correct Id line. 1994-09-15 13:10:41 +00:00
jkh
58c3348b39 Change install -c to install ${COPY} as per Rod's comments. At least
we've got one Makefile that uses this in the tree now! :-)
1994-09-15 12:42:45 +00:00
jkh
6dc2f6a0e8 Fix typo, add -c to install so that files aren't moved out on first
install! :-)
1994-09-15 12:10:03 +00:00
jkh
646275dad9 Cleaned up comments, added Id lines. 1994-09-15 12:09:36 +00:00
dg
61a26545ab Brought over from 1.1.5:
From Bruce Evans:
Protect against reentering Debugger().
1994-09-15 11:38:59 +00:00