Commit Graph

16447 Commits

Author SHA1 Message Date
christos
3b17cac319 Make at_ifawithnet take an ifnet arg instead of an ifaddr. Suggested by
Ignatios.
1997-04-03 18:38:21 +00:00
kleink
8cfa44e947 Change O_NOCTTY from 0 to 0x8000; this is already BSD default
behavior, but POSIX.1 and the COMPAT_{LINUX,SVR4} code require
it to be distinct from other oflag values.
1997-04-03 17:51:47 +00:00
christos
eb6be97252 Add netatalk netisr 1997-04-03 17:49:08 +00:00
christos
738cdfd351 Add netatalk netisr 1997-04-03 17:35:56 +00:00
christos
ad36b6970e Add netatalk netisr 1997-04-03 17:25:18 +00:00
christos
dcb36500b8 Add netatalk netisr 1997-04-03 17:14:39 +00:00
christos
6c015f3a49 Add netatalk netisr 1997-04-03 15:59:54 +00:00
christos
c5257947c7 PR/3444: Erik Bertelsen: Eliminate warnings when -UINET 1997-04-03 15:25:20 +00:00
kleink
080aeda54f WERASE, REPRINT, STATUS and DSUSP are extensions to the POSIX.1 GTI
set of special characters: recognize them only if IEXTEN is set.
1997-04-03 14:24:45 +00:00
cgd
c492daaa6e fix ... potentially fatal typo (s/unix/unit/) 1997-04-03 00:57:03 +00:00
kleink
b27b6da672 It's STRIPDISC, not STRIPIPDISC. 1997-04-03 00:54:19 +00:00
perry
e32bb7d002 fix bad size calculation for kernel memory mappings, as in when
allocating 1 byte from a page alligned address.
reported (with fix) in pr-3441 from Matthias Drochner
1997-04-02 23:44:44 +00:00
scottr
aa88a240fe Fix printf() and other warnings when compiled with DEBUG defined. 1997-04-02 22:37:21 +00:00
christos
206e950042 Add netatalk netisr 1997-04-02 21:59:02 +00:00
christos
e0443987e7 Add netatalk netisr 1997-04-02 21:48:55 +00:00
christos
8af1def782 move atintr prototype to the header file. 1997-04-02 21:47:01 +00:00
christos
55e1055dc3 Add netatalk glue 1997-04-02 21:34:11 +00:00
christos
5bf5cd24de Appletalk networking stack. Code based on netatalk release beta-970220
from toccata.fugue.com. Ported to netbsd by Bill Studenmund.
Changes:
    - KNF
    - remove endian.h
    - adapt to the new arp code.
    - fix small biff's with spl/splx.
1997-04-02 21:31:01 +00:00
christos
0b1d82fb18 Add netatalk stubs. 1997-04-02 21:23:26 +00:00
christos
964633009c Sync with Lite2. 1997-04-02 21:17:28 +00:00
christos
ff9686fd79 Add netatalk 1997-04-02 21:14:29 +00:00
pk
332d00ad1d Take another register snapshot at the end of dumpsys() to refresh the PCB
which may have been altered while writing the dump. Also, save PC in
the PCB.
1997-04-02 20:56:28 +00:00
leo
ff152e48d5 The atari-TT really has no IDE-interface. 1997-04-02 20:33:10 +00:00
kleink
64f12ae12a Moved the `unlocking a lock-free inode' shortcut behind
the l_whence and starting offset sanity checks.
1997-04-02 18:42:46 +00:00
kleink
5610f6e774 Like in F_SETLK, check if F_GETLK is actually called with a
valid lock type.
1997-04-02 18:22:32 +00:00
kleink
8c04785710 Remove superfluous (uio_resid == 0) check. 1997-04-02 17:14:32 +00:00
oki
ecae3f3421 Add bits[64] declaration 1997-04-02 17:10:41 +00:00
kleink
c1779f82c3 added advisory record locking support 1997-04-02 17:09:47 +00:00
matthias
b7624c248a * Add missing & in plipioctl.
* Remove some dead code in plipioctl.
* Use splnet, not splimp to protect IF_PREPEND/IF_DEQUEUE.
1997-04-02 16:36:25 +00:00
christos
8e5e5d1667 Fix reverse test in O_NOCTTY; pointed out by Klaus Klein 1997-04-02 15:29:18 +00:00
mycroft
4df7e1dac7 Remove superfluous probe message. 1997-04-02 03:58:25 +00:00
kleink
2da2c50987 KNF glitch in last commit, pointed out by Chris G. Demetriou. 1997-04-02 03:23:01 +00:00
kleink
6b58679ffa Implement OCRNL "\r" -> "\n" tty output translation.
Fixes PR standards/3434.
1997-04-02 03:10:51 +00:00
mycroft
6d3685ab6c Add a SDEV_AUTOSAVE quirk for the Emulex SCSI<->ESDI bridge. 1997-04-02 02:36:02 +00:00
mycroft
aca1dae3c4 Push the buffer cleanup code into scsi_done(), and split it so that biodone()
is called *after* the driver `done' routine.  This fixes disk I/O statistics
on SCSI devices.

Also, calling the `done' routine with a `complete' argument of 0 and actually
having it do anything meaningful loses in at least 3 ways, so just nuke the
argument altogether and don't call it this way.  If the driver needs to do
some error handling, that's what `err_handler' is for.
1997-04-02 02:29:30 +00:00
scottr
40d1c295a2 Specify more aggressive warning options for C code. 1997-04-01 23:16:41 +00:00
gwr
0faac5faf2 Back-out the CWD hack... 1997-04-01 23:11:28 +00:00
gwr
1614a8ad2e Always schedule a timeout before the first occasion where
we return from the driver expecting to come back due to an
interrupt, because the interrupt might not happen...
Do the untimeout in ncr53c9x_done instead of just before
almost every call to ncr53c9x_done as was done previously.
Make ncr53c9x_sense schedule its own timeout for the new
command it is starting (request sense), separate from the
timeout for the command that just completed.
1997-04-01 22:10:04 +00:00
gwr
50b0bafbbb Allow separate control over the "per-target trace" feature
via the NCR53C9X_DEBUG value.  Add some padding for m68k.
1997-04-01 22:08:18 +00:00
leo
a6f5608814 Make it possible to remove the lpt device by making it 'needs-flag'.
Remove lpt-device from the BOOT kernel.
1997-04-01 20:14:06 +00:00
scottr
6c7f504b20 Add forward declarations for struct exec_package and struct exec_vmcmd,
to minimize the number of unnecessary #includes.
1997-04-01 20:05:14 +00:00
scottr
54c4c9b37f Catch up with COMPAT_HPUX changes, and make this compile with -Wall. 1997-04-01 19:59:59 +00:00
scottr
703bcd151c Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.
1997-04-01 19:58:58 +00:00
scottr
5be5fe416e Relocate some prototypes needed for COMPAT_HPUX to hilvar.h 1997-04-01 19:29:09 +00:00
cgd
044c6288bf slightly relax the block size checks; they were a bit to paranoid 1997-04-01 17:27:33 +00:00
cgd
776b6dcbca hack to fake up disklabel 1997-04-01 17:23:04 +00:00
matthias
e034d53f13 * Add new sysctl "machdep.ieee_disable". This can be used to disable the
in kernel ieee trap handler. Then a usermode version of the code can be
  used for debugging. Thank's to Ian Dall for this suggestion.
1997-04-01 16:37:43 +00:00
matthias
af88eb9d75 * Fixes from Ian Dall. Make the ieee handler compile with the new gcc warning
options, make it compile into a user mode library again and update the
  README.
1997-04-01 16:35:08 +00:00
matthias
d0c4177d0c * Add new sysctl "machdep.ieee_disable". This can be used to disable the
in kernel ieee trap handler. Then a usermode version of the code can be
  used for debugging. Thank's to Ian Dall for this suggestion.
1997-04-01 16:33:04 +00:00
matthias
d89b0839dc * Use movsdnu to copy pages.
* Just invalidate the tlbs for the affected mappings in pmap_zero_page
  and pmap_copy_page.
1997-04-01 16:32:58 +00:00
matthias
43064ade71 * Apply optimizations suggested by gwr & mycroft. 1997-04-01 16:32:52 +00:00
matthias
6231519c48 * Initialize the icu with a table driven method again. 1997-04-01 16:32:47 +00:00
matthias
88128328a9 * Only cosmetic changes. 1997-04-01 16:32:31 +00:00
matthias
9e6c9efed8 * Initialize the icu with a table driven method again. 1997-04-01 16:32:25 +00:00
matthias
9046ff4c6f * Initialize the icu with a table driven method again.
* Fix a bug in microtime that caused the generation of invalid timevals.
  Thank's to Ian Dall for finding and fixing this.
1997-04-01 16:32:16 +00:00
matthias
821b15ab3b * Add some missing casts to make this compile with -Werror when KGDB is
defined.
1997-04-01 16:31:53 +00:00
matthias
e2a1653bf0 * Only cosmetic changes. 1997-04-01 16:31:45 +00:00
matthias
b14adada8f * Include <sys/systm.h> to get printf prototype. 1997-04-01 16:31:37 +00:00
matthias
8a56a74823 * Add versions of movs{d,w,b} that do not update the source and destination
pointers.
* Add tlbflush_entry to flush a single tlb entry.
1997-04-01 16:31:19 +00:00
matthias
b78841616b * Add prototype for icu_init.
* Add new sysctl "machdep.ieee_disable". This can be used to disable the
  in kernel ieee trap handler. Then a usermode version of the code can be
  used for debugging. Thank's to Ian Dall for this suggestion.
1997-04-01 16:31:14 +00:00
matthias
b3d60fed7c * Add -Werror again. 1997-04-01 16:30:48 +00:00
matthias
6228d0c501 * Add Cabletron EA412/EA419 driver. 1997-04-01 16:30:35 +00:00
briggs
ca0531b7f4 Add DrHW for RasterOps CB264--From Scott Reynolds--and link it in to the
proper interrupt routine.
1997-04-01 13:31:38 +00:00
briggs
71bf5ccd79 Remove tag. 1997-04-01 13:31:03 +00:00
mycroft
3018d16337 Enable wdc1 at IRQ 15. 1997-04-01 13:12:13 +00:00
leo
061e737731 Add wd-driver. The driver is basically the driver present in the arm32
port (Thanks Mark!) with a few atari specific things and the bad block
handling disabled.
1997-04-01 08:17:44 +00:00
briggs
a3d5b32614 - Support DAFB machines mo' better. Actually detect if a monitor is
present and initialize a few things.  No color support, yet.
  - Properly disable interrupts for DAFB.
  - Rearrange for better nubus display card interrupt support.  Only register
    an interrupt if we know how to clear it.
  - Complain if we don't know about a given display card and can not install
    an interrupt handler.
  - Change MYSTERY stuff to cb264--still need to get the DrSW so we can
    actually call the routine to clear an interrupt from this card.
1997-04-01 05:41:59 +00:00
mikel
df25ccca49 loosen the version number check in the quirk list for the CDR-H98MV;
from Koji Imada in PR kern/3419.
1997-04-01 04:05:03 +00:00
mycroft
3a5d048d44 #ifdef DEBUG a variable to prevent compiler warning. 1997-04-01 03:38:50 +00:00
scottr
698c8410a2 Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.
1997-04-01 03:12:06 +00:00
scottr
66c9485803 Add prototypes, and make this compile with -Wall. 1997-04-01 03:10:57 +00:00
scottr
43b1b8c08a Relocate some prototypes needed by other MD code. 1997-04-01 03:07:19 +00:00
scottr
4c6e335897 Add prototypes as appropriate. 1997-04-01 03:03:56 +00:00
jeremy
68755b199e Physical page status functions pmap_clear_reference()
and pmap_clear_modify() weren't testing if the page whose status was being
changed was being managed.  This caused kernel panics with X11.
1997-04-01 02:15:33 +00:00
augustss
c56286529c Make it compile again by removing a cast to void of KFREE(). KFREE expands
to a statement, not an expression.
1997-04-01 00:07:07 +00:00
pk
102497370d Garbage-collect a few items. 1997-03-31 22:03:11 +00:00
pk
9c2ddb4a59 `*_get_fault_status' should not get profiled; use ALTENTRY for now. 1997-03-31 22:00:39 +00:00
gwr
5485e1ff75 Need a common <m68k/pcb.h> for gdb. 1997-03-31 21:39:51 +00:00
gwr
a09110f073 Use <m68k/pcb.h> 1997-03-31 21:35:39 +00:00
gwr
b43ee24829 Need a common <m68k/pcb.h> for gdb. 1997-03-31 21:32:26 +00:00
thorpej
b20341d54a If we don't match a known card ID, return "don't match". 1997-03-31 20:52:13 +00:00
jonathan
2e7e0f6ca0 Merge with Mattias Drochner's PCnet-PnP front-end. 1997-03-31 20:36:38 +00:00
pk
cd9e3a7b59 Remove bogon from otherwise unused fdchwintr() function. 1997-03-31 20:27:32 +00:00
jonathan
999f50b033 PCnet-PnP front-end driver for isapnp PCnet cards. 1997-03-31 20:22:19 +00:00
pk
b8cc0f044e Deal differently with physical memory gaps resulting from alignment
restrictions.
1997-03-31 19:53:41 +00:00
mycroft
9bc200ea19 Fix formatting error in Sun 4 printf(). 1997-03-31 17:21:00 +00:00
mycroft
ac89281245 Fix bogus preprocessor conditional that caused the trap page to
not be rounded up when it should be.
1997-03-31 16:42:52 +00:00
scottr
c008fc0aa0 Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.
1997-03-31 07:32:14 +00:00
scottr
ea23ab53c3 Add missing argument to diagnostic printf() 1997-03-31 07:30:41 +00:00
scottr
52cb2d2955 Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.

Also, handle sc_flags better so that we don't lose track of the
DCM_ISCONSOLE bit.
1997-03-31 07:29:49 +00:00
jeremy
b572daa4dc In-tree GNU ``as'' does not know of 'pmove <reg>,tt0' instruction. Changed
instances of this instruction to hardcoded opcode statements.  Thanks to
jthorpe for pointing this out.
1997-03-31 02:22:25 +00:00
thorpej
80631ee3b7 Keep the compile/ directory in the distribution. 1997-03-31 01:23:37 +00:00
thorpej
3878faec9c Fix a bogus argument to dmafree(), from Scott Reynolds. 1997-03-31 01:05:19 +00:00
thorpej
6a3ca35ec3 Build these kernels with full debugging symbols. 1997-03-31 00:03:10 +00:00
jonathan
c1f72bba37 Add ifmedia hooks: include <ifmedia.h> and add sc_media to softc. 1997-03-30 22:47:05 +00:00
jonathan
70e7856e42 Match missing variants:
3c900 twisted-pair only, 3c595 mii, 3c595 100bT4, 3c905 100bT4.
Is there an MII version of the 3c905?
1997-03-30 21:31:01 +00:00
leo
67c47d4b56 Remove a hardcoded interrupt handler. Now uses intr_establish() for the
SCSI-drq handler on the Hades.
1997-03-30 21:08:19 +00:00
leo
103e8967c4 Add a space to the attach message. 1997-03-30 21:04:13 +00:00
briggs
2606fe6cbd Some new SONIC code from Denny Gentry <denny1@home.com> with a couple of
tweaks and bug fixes by yours truly.

Here's what Denny had to say:

nubus.h:
        - add a drsw entry for my card
	[ I also added a couple of constants for more display cards ]
if_sn.c:
        - allocate sc->space using malloc (Scott wanted this).
        - make csr accesses use NIC_PUT/GET, remove sc->sc_csr.
        - add multicast and IFF_PROMISC support. multicast isn't
                well tested, but I made sure the unicast case still
                works.
        - finish the new arp interface, remove sc->sc_enaddr
if_snreg.h:
        - remove struct sonic_reg
if_snvar.h:
        - add NIC_PUT and NIC_GET macros a la if_ae
        - remove sc_txhead, it isn't used.
if_sn_nubus.c:
        - clean up support for my SE/30 card.
        - Move add_nubus_intr from if_sn.c (to keep if_sn.c MI)
if_sn_obio.c:
        - make Q610, C610, Q650, C650, Q800 use EXBUS.
        - PB500 had a "return" where "break" was intended. PB500
                probably wasn't working.
        - move add_nubus_intr from if_sn.c.
        - add an "explanation" why Apple's ethernet addr is encoded
                in token ring format in the PROM.
1997-03-30 19:51:44 +00:00
christos
c318eb0071 PR/3402: Volker Schmidt: Add missing prototype for hardpps. 1997-03-30 17:29:41 +00:00
christos
6c41fdc592 Handle NULL shmid_ds properly in shmctl. 1997-03-30 17:21:02 +00:00
christos
dd3f97976c Comment out DIAGNOSTIC panic in trap code translation. The DIAGNOSTIC is
correct, but unfortunately in trap.c trapsignal(p, SIGSEGV, code) passes
the address of the fault in code, instead of the trap code. So we punt for
now doing checking for trap code validity until this gets fixed.
1997-03-30 17:18:19 +00:00
is
1309901ce0 The DraCo has had a com driver for quite a while. 1997-03-30 11:06:40 +00:00
is
2672ddd9d5 ifdef NARP -> if NARP > 0 1997-03-30 10:38:51 +00:00
christos
ee29ff37a9 PR/3396: Klaus Klein: If CREAD is not set drop incoming data. 1997-03-29 23:26:27 +00:00
christos
68b10e62c4 PR/3407: Koji Imada: Modern BIOS's can boot from higher than second hard disk 1997-03-29 21:40:19 +00:00
christos
4c29beee46 PR/3409: Koji Imada: cdsize() timeout too short for cd changers. 1997-03-29 21:37:55 +00:00
thorpej
0226fc32e4 Don't attempt to include config(8)-generated headers if we're included
by userland.
1997-03-29 19:52:41 +00:00
thorpej
f090be431e Use control device names provided by <netinet/ip_fil.h> 1997-03-29 19:51:45 +00:00
thorpej
0684baea63 Define control device names here; they're needed by kernel and userland. 1997-03-29 19:50:51 +00:00
christos
3a56279cee PR/3408: From Koji Imada: mv_faults on SPP connections. 1997-03-29 17:01:38 +00:00
jtk
dd46e6280e partial fix for PR 3385: correctly identify JAZZ-16 when AUDIO_DEBUG is
enabled
1997-03-29 05:41:28 +00:00
mhitch
cb3b852a7f A couple of missed boot() -> cpu_reboot() changes. 1997-03-29 05:03:01 +00:00
darrenr
4d1eb7820e use IPLLOG instead of ipllog to easily mask parameters, fix up prototype
problems for compiling to user programs.
1997-03-29 04:39:15 +00:00
thorpej
169a339c7d Centralize the check for NetBSD PFIL_HOOKS code into ip_fil.h, and use
it consistently.
1997-03-29 03:05:14 +00:00
thorpej
85a327bb3b Make this compile again in light of recent changes:
- adjust for new ipl_attach()/ipl_detach() names.
	- In ipl_load(), so not implicitly call ipl_attach(), since
	  doing so would be inconsistent with the behavior exhibited
	  by the statically-configured version.
1997-03-29 03:03:08 +00:00
briggs
e15f7fac43 Fix bug that would have prevented PB5xx series from detecting the SONIC.
Bug noticed by Denny Gentry.
1997-03-29 02:34:40 +00:00
mycroft
11117540d2 Use a temporary data structure for holding probe information, rather than a
full softc.
1997-03-29 02:32:30 +00:00
mycroft
056fd71e85 General cleanup: bus.h, etc. 1997-03-29 02:11:09 +00:00
thorpej
7845ea0d16 Fix an ... interesting bug that resulted from namespace collision.
Description:

	- A BSD pseudo-device initialization routine is declared as
		void <pseudo-device name>attach __P((int count));
	  in ioconf.c by config(8).  main() calls these functions
	  from a table.

	- IP Filter has functions iplattach() and ipldetach() (or,
	  in the NetBSD case, were erroneously renamed ipfilterattach()
	  and ipfilterdetach()).  These functions are used to establish
	  and disestablish the IP Filter "filter rule check" hook in
	  the IP input/output stream.  They are declared:
		int iplattach __P((void));
		int ipldetach __P((void));
	  ..and are expected to return a value by iplioctl().

	- When main() calls (by sheer coincidence!) iplattach(),
	  the filter hook is established, and the IP Filter machinery
	  labeled as "initialized".  This causes all packets, whether or
	  not the user intents to use filter rules, to be passed to
	  the filter rule checker if "ipfilter" is configured into the
	  kernel.

	- As a result of the above, a kludge existed to default to
	  passing all packets (I can only assume that when this was
	  originally committed, the symptom of the bug was noticed by
	  the integrator, but the bug not actually found/fixed).

	- In iplioctl(), if the SIOCFRENB ioctl is issued with an
	  argument of "enable" (i.e. user executed "ipf -E"), iplattach()
	  will notice that the machinery is already initialized and
	  return EBUSY.

Fix:

	- Rename iplattach()/ipldetach() to ipl_enable() and ipl_disable().

	- Create a pseudo-device entry stub named ipfilterattach()
	  (NetBSD case) or iplattach() (all other).  This is a noop; none
	  of the machinery should be initialized until the caller expicitly
	  enables the filter with ipf -E.  Add a comment to note that.
1997-03-29 01:57:55 +00:00
thorpej
99f4b72f6c Resolve conflicts from merge.
XXX doesn't compile yet, but that will require some other changes, which
XXX I want to make separately.
1997-03-29 01:42:33 +00:00
thorpej
f30d8f327f Resolve conflicts from merge.
XXX !!! XXX !!!
I noticed a few semi-serious bugs while doing this merge, one of which
has existed for a fairly long time.  Some of them are addressed in this
commit (because they caused the kernel to not compile), and are annoted
by "XXX" and "--thorpej".  The other one will be addressed shortly in
a future commit, and, as far as I can tell, affects all operating systems
which IP Filter supports.
1997-03-29 00:54:55 +00:00
mycroft
080350dc0d Use a temporary data structure for holding probe information, rather than a
full softc.
1997-03-28 23:47:08 +00:00
cgd
d26286ab6b clean up (unify) the register mapping code a bit 1997-03-28 22:25:01 +00:00
cgd
874e7169a4 punt pci_mem_find's &cacheable arg, and pass NULL instead. We never
want to map the memory register cacheable.
1997-03-28 22:16:06 +00:00
cgd
359850c818 clean up isp_pci_prefer_io comment 1997-03-28 21:51:51 +00:00
christos
519527d9cf PR/3401 incorrect MANDIR after rule changes 1997-03-28 20:22:55 +00:00
veego
7e75a99bfc s/ae/le/ for the recent Ariadne changes. 1997-03-27 23:50:39 +00:00
veego
8116aa0fed Remove the ae entries for the Ariadne, it's now supported bye the le driver 1997-03-27 21:21:11 +00:00
veego
fd019e12b5 if_le supports now the Ariadne card. 1997-03-27 21:15:11 +00:00
thorpej
2268a2c7eb Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:52 +00:00
veego
7ae296c7de - new hardware reset hook, mainly for PCnet-ISA cards (79c960)
- new MD variable: sc_initmodemedia, 79c960 cards can select
  between two ports, but this needs to be done in the MI init mode page
- new defines for PCnet-ISA cards (79c960)
1997-03-27 21:01:50 +00:00
thorpej
161f6c6f6b Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:49 +00:00
veego
5aa9546783 - new hardware reset hook, mainly for PCnet-ISA cards (79c960)
- new MD variable: sc_initmodemedia, 79c960 cards can select
  between two ports, but this needs to be done in the MI init mode page
- new defines for PCnet-ISA cards (79c960)
1997-03-27 21:01:49 +00:00
thorpej
7a6a8eb391 Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:48 +00:00
veego
a715085e43 - new hardware reset hook, mainly for PCnet-ISA cards (79c960)
- new MD variable: sc_initmodemedia, 79c960 cards can select
  between two ports, but this needs to be done in the MI init mode page
- new defines for PCnet-ISA cards (79c960)
1997-03-27 21:01:47 +00:00
thorpej
cb24b0200a Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:20 +00:00
thorpej
76d601d33e Don't assume mbuf external storage is MCLBYTES. 1997-03-27 20:45:27 +00:00
thorpej
22ea1671cf Update for new mbuf code. 1997-03-27 20:40:09 +00:00
thorpej
667f747f9a m_copyback() is now in uipc_mbuf.c 1997-03-27 20:38:20 +00:00
thorpej
d1c9089a16 Update for the new mbuf code, in a slighly kludgy way. Basically, these
drivers played a somewhat evil trick with clusters, which is now
replaced by a somewhat evil trick with regular malloc'd memory.
1997-03-27 20:36:14 +00:00
thorpej
2a4b742e6a Update and enhancement to the mbuf code, to support use of non-cluster
external storage.  Highlights:

	- additional "void *" argument to (*ext_free)(), an opaque
	  cookie for use by the free function.
	- MCLALLOC() and MCLFREE() calls are gone.  They are replaced
	  by MEXTADD() (add external storage to mbuf), MEXTMALLOC()
	  (malloc() external storage and attach to mbuf), and
	  MEXTREMOVE() (remove external storage from mbuf).
	- completely new external storage reference counting
	  mechanism; mclrefcnt[] is gone.

These changes will eventually be used to pass driver DMA buffers up
the network stack, and reduce/eliminate copies in certain code paths
(e.g. NFS writes).

From Matt Thomas <matt@3am-software.com> and myself <thorpej@nas.nasa.gov>,
with some input from Chris Demetriou <cgd@cs.cmu.edu> and review by
Charles Hannum <mycroft@mit.edu>.
1997-03-27 20:33:07 +00:00
pk
6fee4ceb1f viking_cache_enable: clear caches only if not yet on.
viking_pcache_flush: don't use flash-clear; use hard-coded parms instead(XXX)
1997-03-27 16:02:10 +00:00
darrenr
fe3bc025d0 Bring in entire 3.2alpha2 source tree 1997-03-27 15:13:58 +00:00
mikel
4ab6dc7d2e allow examination of SIGKILL and SIGSTOP signal handlers (but still
disallow changes); from Klaus Klein in PR standards/3398.
1997-03-27 07:52:25 +00:00
scottr
1cc0fb9b24 Add SDEV_AUTOSAVE quirks for IBM 0663H{08,12} disks 1997-03-27 07:37:54 +00:00
scottr
b316767c92 Work around an ambiguity in the SCSI spec. Some implementations,
particularly older ones, don't do a SAVE DATA POINTER before disconnecting.
When the driver reconnects, it does an implicit RESTORE POINTERS, and
restores the data pointer from *before* the last transfer.  If the driver
calculates the residual using the data pointer and doesn't account for
this, the residual will be wrong.

What we do is test for the SDEV_AUTOSAVE quirk when we see a disconnect
message, falling through to do a SAVE DATA POINTER if the quirk applies
to this target.

The workaround was suggested by Mycroft, who also provided the explanation
of the problem.  Actual code was (mostly) ripped off from the 53C9x driver.
1997-03-27 07:30:40 +00:00
mikel
b81091e992 POSIX.1 specifies that a failed link() to a directory must return EPERM,
and EMLINK was not documented; from Klaus Klein in PR standards/3397.
Also documented EOPNOTSUPP for filesystems that don't support hard links.
1997-03-27 07:30:25 +00:00
mycroft
b9a022ebe6 Add EXEC_ELF32. 1997-03-27 06:18:31 +00:00
mikel
19fd4b60de make setpgid(pid, pgrp) return EINVAL if pgrp < 0 as required by POSIX.1;
from Klaus Klein in PR standards/3395.
1997-03-27 06:14:03 +00:00
cgd
bf22891897 update for current system configuration 1997-03-27 06:04:39 +00:00
gwr
8be7d1ef9e No longer need the hack that forced SCSI_POLL when cold. 1997-03-27 01:16:01 +00:00
pk
c5d5c54038 Add workaround for the "extraneous bytes after re-select" problem that
ESP100 chips may exhibit.
1997-03-27 00:29:57 +00:00
gwr
5b48e061ce cleanup 1997-03-27 00:15:31 +00:00
gwr
9228e630d5 s/boot/cpu_reboot/ 1997-03-26 23:44:27 +00:00
gwr
c29412f1bb fix a warning 1997-03-26 23:27:12 +00:00
gwr
37b247edde Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/ 1997-03-26 22:42:13 +00:00
gwr
71e43d14ab Move findroot/setroot stuff from configure() to cpu_rootconf(). 1997-03-26 22:38:40 +00:00
gwr
7b23790667 Add cdev_lpt_init(NPP,pp) for the 3/80 1997-03-26 17:29:10 +00:00
gwr
c304845074 Arrange to make pp.h needed by conf.c
(printer port driver is on the way).
1997-03-26 17:26:48 +00:00
leo
27228d890b Apply optimizations suggested by gwr & mycroft. 1997-03-26 15:50:39 +00:00
leo
c28576c255 Close disk after opening it to read the disklabel. The previous code did 2
opens...
1997-03-26 15:49:31 +00:00
leo
16bc86449a Use m68k/sig_machdep.c 1997-03-26 15:46:12 +00:00
leo
1bca40723b Add missing 'break'. 1997-03-26 15:44:03 +00:00
thorpej
66908db327 Resolve conflicts from merge. 1997-03-26 02:08:07 +00:00
thorpej
8443f8fad0 Resolve conflicts from merge. 1997-03-26 01:33:32 +00:00
thorpej
fecae4de60 Back out the previous change (add IFM_10_EXT) after some dicussion
w/ BSDI and Matt Thomas.
1997-03-26 01:19:27 +00:00
perry
51157fe131 Comment out the wt driver -- its rather dangerous to ed users, as it
turns out. Also, add a comment explaining this.
1997-03-26 01:16:23 +00:00
pk
b468feeebf In pmap_remove(), check for an empty segment before calling one of the
helper functions. This cuts down the number of needless function calls
by approx. 80%, which has a healthy effect on the responsiveness of
a machine under heavy process creation/teardown loads.
The VM system seems to be fond of asking to delete page mappings
which aren't there..
1997-03-25 23:04:02 +00:00
scottr
757d4ce5d4 Add SDEV_NOLUNS quirk for Seagate ST125N. 1997-03-25 22:33:50 +00:00
christos
d465daac1e make sure that the tty layer restarts the ppp layer when there is an error
such as out of buffer space.
1997-03-25 22:33:25 +00:00
cgd
6f1ffd0192 kill cfb and sfb in the standard configs 1997-03-25 20:35:03 +00:00
jonathan
3f9bb9b9e8 Add <if_media.h>, am7990var.h requires it. 1997-03-25 19:06:02 +00:00
christos
93b36b663d PR/3388 from Tatoku Ogaito: Add product id for another soundblaster PnP card. 1997-03-25 15:16:49 +00:00
mikel
eba3c11c27 some cleanup; still needs a *lot* of work 1997-03-25 07:57:14 +00:00
mark
b28684079f Fix broken vidcaudio_set_format() prototype. 1997-03-25 05:09:01 +00:00
jonathan
9a834c4127 Add ARP hardware type for Richochet "starmode" radio addresses. 1997-03-25 02:30:52 +00:00
gwr
90a79f75fe Change continue to break in a few places (as suggested by mycroft). 1997-03-24 23:49:39 +00:00
cgd
b1e061e899 Optimize the case of writing to /dev/zero, and clean up the
surrounding code a bit.  Partly suggested by gwr, them implemented
by mycroft in the i386 port, then cleaned up a bit to fit here.
1997-03-24 23:01:40 +00:00
pk
eb3b79e0f2 Move `#endif /* SUN4M */' downward. 1997-03-24 22:56:37 +00:00
mycroft
6962daa0f8 KNF police. 1997-03-24 21:50:48 +00:00
mycroft
13ca4f0381 Do not return generation counts to the user. 1997-03-24 21:44:53 +00:00
christos
261ef8aa5a Add missing slpx(); from Bill Sommerfeld 1997-03-24 21:23:10 +00:00
mycroft
46f55019b7 Optimize the case of writing to /dev/zero, and clean up the
surrounding code a bit.  Partly suggested by gwr.
1997-03-24 21:16:59 +00:00
pk
4a77b646a2 Add `c_associativity' field. 1997-03-24 19:56:58 +00:00
mycroft
86f68e3d77 Build fdboot. 1997-03-24 19:53:34 +00:00
mycroft
25d692da5e Fix calculation of fmem and fmemsz for old ROMs. 1997-03-24 19:51:28 +00:00
mycroft
1b9557e827 Make the segment rounding code consistent. (No functional change.)
If DEBUG_MEMORY_LIST, wait for a keypress before starting the kernel; never
time out.
1997-03-24 18:56:26 +00:00
mycroft
86818ac5a8 Kluge to allow building on a M68K4K system. 1997-03-24 18:52:46 +00:00
scottr
9614615f6f Add se driver 1997-03-24 18:28:40 +00:00
scottr
5fd56d4f40 Add se, and make some comsmetic changes for easier maintenance. 1997-03-24 18:20:10 +00:00
gwr
7c0bd080c9 No longer force boothowto=RB_SINGLE|RB_KDB
(Yes, it goes multi-user just fine! 8^)
1997-03-24 17:57:12 +00:00
gwr
8ac50ae86b Sync with sun3 (no longer need -DSUN_BOOTPARAMS) 1997-03-24 17:55:40 +00:00
gwr
8bec95da2c Use ${INSTALL} ... 1997-03-24 17:48:19 +00:00
gwr
199246e95f No longer need SYMTAB_SPACE now that sun3x/stand/* works.
(Thanks, Jeremy!)
1997-03-24 17:39:04 +00:00
gwr
b72b9f00ea Use "if_ether.h" (from sys/lib/libsa). 1997-03-24 17:32:21 +00:00
gwr
5c88d15269 When cold!=0 force SCSI_POLL (otherwise swapconf will hang) 1997-03-24 17:16:45 +00:00
thorpej
6adc9b82fd Add the IFM_10_EXT ("external") ethernet subtype, to accomodate cards
that have the notion of an "external media port".  Suggested by
Matt Thomas <matt@3am-software.com>.
1997-03-24 06:57:31 +00:00
jtk
983d7a8c15 use new name sc_drq8 and initialize sc_drq16 (reflect changes to SB driver) 1997-03-24 05:30:28 +00:00
mycroft
136c4013aa Expand the comment on the previous. 1997-03-24 01:36:43 +00:00