Commit Graph

53115 Commits

Author SHA1 Message Date
John Baldwin ee8f2f372c - Add atomic_cmpset_{acq_,rel_,}_long
- Add in atomic operations for 8-bit, 16-bit, and 32-bit integers
2000-10-25 21:56:16 +00:00
John Baldwin 083cc8729c This driver doesn't have a software interrupt handler, so don't attempt to
schedule a non-existant handler to run.
2000-10-25 21:29:36 +00:00
John Baldwin fbc9c4f042 Catch up to the new software interrupt code.
Noticed by:	phk
2000-10-25 21:24:08 +00:00
John Baldwin 49e0078b0f - Catch up to new software interrupt code.
- Add a missing curly brace.

Noticed by:	phk
2000-10-25 21:13:42 +00:00
Bruce A. Mah deb5cdfd95 Note the MFC of ATA support for new chipsets and tagged queueing,
ATA raid support (+MFC), snc(4) driver added (+MFC), ich(4) driver
added (+MFC), IFS, libisc now added, fix to netstat(1) "in use"
percentage (+MFC).
2000-10-25 21:04:09 +00:00
John Baldwin 62a010fecf - Remove unneeded machine/ipl.h #include.
- Change the softintr() macro to do nothing on FreeBSD.  Previously,
  this macro would set a bit in spending and schedule the softinterrupt
  thread to run.  However, the bs driver never actually registers a
  a software interrupt handler, so all this work achieved nothing.  From
  the code it is not clear what exactly the softintr() macro is actually
  supposed to be doing.  It looks like it is supposed to be possibly
  running the hardware interrupt handler maybe?  This handler is only
  present in the #ifdef __NetBSD__ code however.  I have no idea how this
  driver handles interrupts at all, but at least it compiles now.
2000-10-25 20:38:08 +00:00
John Baldwin cba5b33d1a Catch up to the new swi code.
Noticed by:	phk
2000-10-25 20:21:42 +00:00
Garrett Wollman 3b4d27f6d7 Merge from vendor branch. 2000-10-25 19:36:49 +00:00
Garrett Wollman 10b59911e8 This commit was generated by cvs2svn to compensate for changes in r67575,
which included commits to RCS files with non-trunk default branches.
2000-10-25 19:33:50 +00:00
Garrett Wollman 5d07889871 ../changes 2000-10-25 19:33:50 +00:00
Bruce A. Mah 131291ba1c Utilize the "-o" (origin) option recently added to pkg_create(1)
and pkg_info(1), for more accurate determination of the
"up-to-date-ness" of installed packages.
2000-10-25 17:10:20 +00:00
Nick Hibma dcafb17498 Do not include uscanner in the generated kernel config. Also, remove
ugen, uhid, ulpt from small as well.

Suggested by:	obrien
2000-10-25 15:21:19 +00:00
MIHIRA Sanpei Yoshiro d55a5fbd96 add Xircom CreditCard adapters and workalikes(xe driver) 2000-10-25 15:20:10 +00:00
Julian Elischer d1d3a97409 Slowly add more functionality as I learn more about newbus etc. 2000-10-25 15:08:11 +00:00
Daniel Eischen c418675341 Make pthread_kill() know about temporary signal handlers installed
by sigwait().  This prevents a signal from being sent to the process
when there are no application installed signal handlers.

Correct a typo in sigwait (foo -> foo[i]).
2000-10-25 11:46:07 +00:00
Jun Kuriyama b3530b8293 Trim right column messages to display correctly in 80-column terminal.
Reviewed by:	jkh
2000-10-25 11:36:31 +00:00
Ruslan Ermilov 8829f4ee0b We now keep the ip_id field in network byte order all the
time, so there is no need to make the distinction between
ip_output() and ip_input() cases.

Reviewed by:	silence on freebsd-net
2000-10-25 10:56:41 +00:00
Paul Saab fbdfe15620 Fast interrupts have no associated process, therefore do not try
and schedule it.  This fixes booting machines with broken MP tables.
2000-10-25 10:40:20 +00:00
Nick Hibma 2fd84f56d5 The USB scanner driver. To be used together with SANE. 2000-10-25 10:34:38 +00:00
Nick Hibma bebddc8cd2 Regen. 2000-10-25 10:14:44 +00:00
Nick Hibma 84b3d895ef Sync with NetBSD 2000-10-25 10:13:47 +00:00
Søren Schmidt 169d20b2ce Add the ATA_ENABLE_TAGS option 2000-10-25 08:25:37 +00:00
Mike Smith e6c12d85d0 Major update to the 'twe' driver.
- Layout reorganisation to enhance portability.  The driver now has
   a relatively MI 'core' and a FreeBSD-specific layer over the top.
   Since the NetBSD people have already done their own port, this is
   largely just to help me with the BSD/OS port.

 - Request ID allocation changed to improve performance (I'd been
   considering switching to this approach after having failed to come
   up with a better way to dynamically allocate request IDs, and seeing
   Andy Doran use it in the NetBSD port of the driver convinced me
   that I was wasting my time doing it any other way).  Now we just
   allocate all the requests up front.

 - Maximum request count bumped back to 255 after characterisation
   of a firmware issue (off-by-one causing it to crash with 256
   outstanding commands).

 - Control interface implemented.  This allows 3ware's '3dm' utility to
   talk to the controller.  3dm will be available from 3ware shortly.

 - Controller soft-reset feature added; if the controller signals a
   firmware or protocol error, the controller will be reset and all
   outstanding commands will be retried.
2000-10-25 06:59:06 +00:00
John Baldwin 8088699f79 - Overhaul the software interrupt code to use interrupt threads for each
type of software interrupt.  Roughly, what used to be a bit in spending
  now maps to a swi thread.  Each thread can have multiple handlers, just
  like a hardware interrupt thread.
- Instead of using a bitmask of pending interrupts, we schedule the specific
  software interrupt thread to run, so spending, NSWI, and the shandlers
  array are no longer needed.  We can now have an arbitrary number of
  software interrupt threads.  When you register a software interrupt
  thread via sinthand_add(), you get back a struct intrhand that you pass
  to sched_swi() when you wish to schedule your swi thread to run.
- Convert the name of 'struct intrec' to 'struct intrhand' as it is a bit
  more intuitive.  Also, prefix all the members of struct intrhand with
  'ih_'.
- Make swi_net() a MI function since there is now no point in it being
  MD.

Submitted by:	cp
2000-10-25 05:19:40 +00:00
Matt Jacob 650789cb1b Get rid of ridiculous ISP_PVS macro. Instead, just set an
ISP_SMPLOCK define based on the previous 5.4 major/minor release
define of PVS- because this allows us to turn it off easier.
2000-10-25 04:42:46 +00:00
Matt Jacob 3395b0568a Whoops! Forgot to commit this when I committed the other (turnin on locks)
change. Sorry about that.
2000-10-25 04:40:49 +00:00
John Baldwin 3127162743 Quite some warnings. 2000-10-25 04:37:54 +00:00
Joseph Koshy a62264fb74 Fail the 'buildkernel' target if not even one of the specified kernel configuration
files was found.

Reviewed by:	obrien
2000-10-25 04:31:32 +00:00
Andrew Gallatin 2acbb2b129 fix bogus cast in osf1_getrlimit/osf1_setrlimit 2000-10-25 00:37:34 +00:00
John Baldwin f6835fffeb Implement atomic_{set,clear,add,subtract}_{acq_,rel_,}_ptr() 2000-10-25 00:16:38 +00:00
John Baldwin 2a1c4d6378 Only use 1 set of memory barrier operations with the atomic_*_{acq,rel}_ptr
functions.
2000-10-25 00:15:21 +00:00
Andrew Gallatin 785640153d teach the osf1_getsysinfo() function about a few more fields
submitted by: Jim.Pirzyk@disney.com
PR: alpha/22263
2000-10-25 00:14:11 +00:00
John Baldwin 7ff9f88355 - Forward declare struct mtx instead of #include'ing sys/mutex.h 2000-10-25 00:07:09 +00:00
John Baldwin 915cf38b11 - Catch a machine/mutex.h -> sys/mutex.h I somehow missed.
- Close a small race condition.  The sched_lock mutex protects
  p->p_stat as well as the run queues.  Another CPU could change p_stat
  of the process while we are waiting for the lock, and we would end up
  scheduling a process that isn't runnable.
2000-10-25 00:04:16 +00:00
John Baldwin d543796f86 - Make the eventhandler_mutex mutex a private variable in
subr_eventhandler.c
- Move the extra #include's in sys/eventhandler.h to be protected by
  the #ifndef SYS_EVENTHANDLER/#endif
2000-10-25 00:01:39 +00:00
Tor Egge 5b93d1da3f Eliminate some bitrot (nonexisting member variable names).
Don't use curproc when a proc pointer is available.
2000-10-24 23:33:01 +00:00
Tor Egge 6d7518c134 Style fixes. 2000-10-24 22:40:18 +00:00
Bill Paul f709eddf9f Convert the USB ethernet drivers to use mutexes. Also convert
usb_ethersubr.c. This module maintains two queues for packets which
are each protected with one mutex. These are all the changes I can
do for now. Removing the USBD_NO_TSLEEP flag doesn't work yet: when
I tried it, the system would usually freeze up after a NIC had been
operating for a while. The usb_ethersubr module itself ought to
go away; this is the next thing I need to test.
2000-10-24 22:38:54 +00:00
Tor Egge f6ee793a3c Make RPC timeout message more readable.
Supply proc pointer to sosend.
2000-10-24 22:37:55 +00:00
Bruce A. Mah 8f112745af Add a relnote about large swap areas not panicking the system.
Submitted by:	grog
2000-10-24 22:10:23 +00:00
Archie Cobbs c06992e558 Build the ISC library as libisc. This library comes as part of the
bind distribution, but until now was not being built as a separate
entity. For documentation, see these man pages:

assertions(3), eventlib(3), heap(3), logging(3), memcluster(3), tree(3).

Reviewed by:	jdp
2000-10-24 20:10:25 +00:00
Doug Rabson ce97a5fc4e * Various fixes to breakage introduced by the atomic and mutex reorgs.
* Fixes to the signal delivery code. Not quite right yet.

I would have preferred to wait until I have signal delivery actually
working but the current kernel in CVS doesn't build.
2000-10-24 19:54:38 +00:00
David E. O'Brien 245824f1cf We were trying to dike out `apm0', but of course devices do not have
unit numbers in GENERIC any more.  So `apm' was acutally being compiled
in.
2000-10-24 19:08:40 +00:00
David E. O'Brien 9e239bc22f Remove /boot/boot[12] from the MFS installation floppies.
This saves us 8KB.

Submitted by:	Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
Reviewed by:	jhb
2000-10-24 19:05:39 +00:00
David E. O'Brien 127bc4f9e6 Dike out more for the i386 release build: NCR SCSI card; anchient WDC
SCSI card (should it ever find its way into GENERIC); LPT (we don't need
to print during install time); the parallel 'geek' port; generic USB
driver (thus some attached USB devices will not be detected and thus the
user may wonder what is going on, we couldn't do anything with the device
if only ugen attached to it anyway and we are getting very, very low on
available space; USB "Human Interface Devices" as we don't do anything
with them during installation; and USB printers (same argument as LPT).
2000-10-24 18:48:16 +00:00
David Malone caf6015598 Fix two typos in comments.
PR:		22268
Submitted by:	Daniel S. Lewart <d-lewart@uiuc.edu>
2000-10-24 18:47:57 +00:00
Wilko Bulte db93a288e0 Document that pci_device_override requires a recent SRM rev on Miata.
Submitted by: Ralph Schreyer <schreyer@th.physik.uni-bonn.de>
2000-10-24 18:45:42 +00:00
Julian Elischer ed2f9d4e88 Change archie's and my email addresses from Whistle.com to FreeBSD.org 2000-10-24 18:01:45 +00:00
Bruce A. Mah 287c68a25a Catch up on some release notes: write combining for crash dumps,
bktr(4) update to 2.17, MFC new make(1) variable modifiers, note
the addition of style.perl.7.
2000-10-24 17:59:28 +00:00
Julian Elischer cc3bbd68c5 Since neither archie nor I work at Whistle any more, change our email
addresses to be the more usefu @freebsd.org ones
so we can keep getting bug-reports.
- man pages to follow..
2000-10-24 17:32:45 +00:00