Commit Graph

16762 Commits

Author SHA1 Message Date
thorpej
b7f72bd8a9 Remove redundant file directives. 1997-04-09 20:11:33 +00:00
thorpej
81f55f1cc8 regdump() is prototyped in m68k/cpu.h now. 1997-04-09 20:08:25 +00:00
thorpej
7c20e290df regdump() takes a struct trapframe * 1997-04-09 20:07:13 +00:00
thorpej
9cf4ffce0a - Garbage-collect signal-related stuff; use m68k/m68k/sig_machdep.c
- Garbage-collect regdump() and friends
- Convert hp300 to new crash dump format
1997-04-09 20:05:20 +00:00
thorpej
577dabb739 Use <m68k/m68k/proc_subr.s> 1997-04-09 20:03:21 +00:00
thorpej
f0f9811df2 Use the %x printf format where appropriate 1997-04-09 20:01:04 +00:00
thorpej
62a635ac7e - Remove redundant file directives
- Pull in m68k/m68k/sig_machdep.c
1997-04-09 19:59:57 +00:00
thorpej
c3c59721e2 kcore.h for hp300 - just pulls in the common m68k kcore.h 1997-04-09 19:51:36 +00:00
thorpej
06e6038b3f regdump() is prototyped in <m68k/cpu.h> now 1997-04-09 19:46:04 +00:00
thorpej
74c3023038 Remove redundant file directives. 1997-04-09 19:44:47 +00:00
thorpej
b6eb01fa72 Remove extra "options FPU_EMULATE" 1997-04-09 19:44:13 +00:00
thorpej
ef79334f24 regdump() takes a struct trapframe * 1997-04-09 19:41:08 +00:00
thorpej
31b105f845 Garbage-collect regdump() and friends. 1997-04-09 19:40:20 +00:00
thorpej
28a9417279 Use <m68k/m68k/proc_subr.s> 1997-04-09 19:39:14 +00:00
thorpej
0e5ab3b5f1 Adjust for new <m68k/kcore.h> 1997-04-09 19:37:53 +00:00
thorpej
e2b0388ed8 regdump() is prototyped in <m68k/cpu.h> now. 1997-04-09 19:34:53 +00:00
thorpej
702b4aa67b remove redundant file directives 1997-04-09 19:34:01 +00:00
thorpej
1cd753c689 regdump() takes a struct trapframe * 1997-04-09 19:33:18 +00:00
thorpej
7294a6f1e3 - Adjust for new <m68k/kcore.h>
- garbage-collect regdump() and friends
1997-04-09 19:32:09 +00:00
thorpej
2dbc4afec2 Use <m68k/m68k/proc_subr.s> 1997-04-09 19:29:05 +00:00
thorpej
c739bf6e79 New kcore.h for m68k, includes all possible m68k formats in a self-describing
layout, facilitating sharing libkvm on all m68ks.

NOTE: This changes the crash dump format of all m68k ports that use the
new libkvm!
1997-04-09 19:25:00 +00:00
thorpej
309169617d Factor out a few process manipulation routines found in all m68k
locore.s's.  Currently includes run queue manipulation.
1997-04-09 19:22:49 +00:00
thorpej
175da6b4a7 Factor out the regdump() function used by all m68k ports. 1997-04-09 19:21:47 +00:00
thorpej
2f5b398ad4 Prototype regdump(). 1997-04-09 19:21:06 +00:00
thorpej
0a089bceec Add bcopy.s, copy.s, copypage.s, and regdump.c; they're common to all
m68k ports.
1997-04-09 19:20:23 +00:00
mycroft
f2746e9620 Update for new com driver. 1997-04-09 16:44:21 +00:00
mrg
bb07095632 as per discussion with torek, allow TC=1. also add option
to allow TC=0.  the zilog documentation says not to allow
TC=0 -- however, i tested this and it "does work", as far
as i could tell, so, allow this use if so desired.
1997-04-09 13:15:13 +00:00
scottr
a2a2afbe56 Sigh. Bracket a label used only #ifdef COMPAT_SUNOS. 1997-04-09 07:22:12 +00:00
jeremy
fa9f5b2448 Constants for the p4 register. 1997-04-09 04:50:43 +00:00
jeremy
3c962bb544 First working version. 1997-04-09 04:49:09 +00:00
scottr
63d0d33c86 Make C-\\ work; from Bill Studenmund, who noticed the swapped keycodes.
Closes PR #3294.
1997-04-09 04:48:57 +00:00
jeremy
5efd258691 Add p4 register pointer to softc struct. 1997-04-09 04:47:13 +00:00
jeremy
085494c2d9 Add location of P4 register. Maybe this should go in obmem.h? 1997-04-09 04:46:11 +00:00
jeremy
d4285e0617 Add needed support for P4 register. Works with X now. 1997-04-09 04:43:52 +00:00
jeremy
b7dd41d4e2 Location of printer port registers for 3/80 was off. 1997-04-09 04:42:25 +00:00
jeremy
ee8819cf64 Obio and obmem busses now support devices with vectored interrupts. Needed
for floppy driver.
Made comments about soon-to-be introduced parallel port driver more specific.
1997-04-09 04:38:49 +00:00
jeremy
60d41bb34e Add floppy controller and floppy drive. Also add MS-DOS filesystem for
use with floppies.  Remove 'SYMTAB_SPACE' now that we have our own
bootloader.
1997-04-09 04:36:56 +00:00
jonathan
5725025bdc typo in cfattach. 1997-04-09 02:10:48 +00:00
mycroft
448427b7ba Document a requirement of vm_object_bypass(). 1997-04-08 22:35:49 +00:00
gwr
69b70455c9 Zap AFLAGS 1997-04-08 22:04:16 +00:00
chuck
cf0f247359 prevent multiple inclusions 1997-04-08 21:29:26 +00:00
leo
92b96871ea Turn the 'extern' definition of mcount() into a full prototype. 1997-04-08 20:39:01 +00:00
pk
242d365b70 Move "range" property description out of generic `romaux'.
Add getproplen() function.
1997-04-08 20:08:53 +00:00
pk
cc7899605a Move "range" property description out of generic `romaux'.
Allocate room for this property when needed in bus attachment.
1997-04-08 20:08:20 +00:00
pk
bb1d4e0540 Move "range" property description out of generic `romaux'. 1997-04-08 20:06:26 +00:00
fvdl
b4e49cf0e9 Avoid nfsiods acquiring/releasing a lock, then acquiring it again, before
anyone else can get to it, by checking if a reply was received, and it
has thus become unnecessary to take the lock. From FreeBSD.

XXX I don't really like this, "locks" potentially suffer from the same
problem throughout the whole kernel; they should probably be FIFO everywhere.
1997-04-08 17:57:16 +00:00
scottr
63d11b7577 Add another IBM disk that needs SDEV_AUTOSAVE. 1997-04-08 17:35:06 +00:00
kleink
513465cc2c Added a sanity check to the force-directory routine, as the CREATE and
RENAME namei() operations may succeed without returning a vnode.
1997-04-08 16:11:48 +00:00
kleink
43bd8d5456 POSIX.1 changes to namei():
(1) "" no longer refers to the current working directory;
	    looking this up will now result in ENOENT.

	(2) by stripping off trailing slashes and setting a `forcedir'
	    flag, make code such as {  mkdir("dir", m); rmdir("dir/"); }
	    actually work.
1997-04-08 10:11:55 +00:00
scottr
58d41d0f98 Fix several more instances where the volatile modifier was needed.
From Allen.
1997-04-08 06:53:28 +00:00
scottr
a051dc4e0f Fix typo: MRG_DEBUG -> MRG_ADB 1997-04-08 06:16:07 +00:00
scottr
042e6d3b98 Add 'done' symbol for last change. (oops.) 1997-04-08 06:02:04 +00:00
scottr
bd9967862f Clean up unused code, KNF bus_probe() 1997-04-08 05:27:28 +00:00
briggs
df0a7e0440 Changes from Michael R. Zucca <mrz5149@cs.rit.edu> for 16-bit and 32-bit
console support.
1997-04-08 04:47:08 +00:00
scottr
f1c1f7e54d Make new ADB driver the default. 1997-04-08 04:21:15 +00:00
scottr
4d9095b0b0 Updates from John Wittkoski for new ADB driver. 1997-04-08 03:19:04 +00:00
scottr
76c66a06b3 Direct-to-hardware ADB interface/driver, written by John P. Wittkoski. 1997-04-08 03:16:18 +00:00
scottr
484820c623 Power Manager interface/driver, written by Takashi Hamada. 1997-04-08 03:11:37 +00:00
scottr
bf23759b27 Add MRG_ADB option. 1997-04-08 03:00:37 +00:00
scottr
b6a4a3826c Update for current configuration, including sbc reselect mode. 1997-04-08 02:59:16 +00:00
cgd
f2b60ad624 align after RCS ID strings if placing them in text 1997-04-08 00:24:16 +00:00
cgd
519551a681 include RCS IDs for assembler files, disabled with NO_KERNEL_RCSIDS 1997-04-08 00:19:01 +00:00
cgd
25ba9df324 clean up some wording 1997-04-08 00:18:25 +00:00
cgd
effe625a3a note NetBSD/alpha's (intentional) deviations from KNF 1997-04-07 23:57:10 +00:00
cgd
fa0c4d6cb1 clean up options.h inclusion slightly 1997-04-07 23:56:39 +00:00
jonathan
f11d74c508 Remove IFF_LINK[01] "connector" support.
Add if_media support.   Still missing a software autosense FSM.
1997-04-07 23:49:47 +00:00
cgd
90789b53dd by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory.  (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)
1997-04-07 23:39:37 +00:00
scottr
396cf17033 Fix SunOS user trace trap handling, from Gordon. 1997-04-07 22:54:44 +00:00
jeremy
eabfcc3f00 Removed spurrious ``#ifdef ISO''. 1997-04-07 21:26:19 +00:00
pk
efeeba419f sun4c and sun4m `aux' register bits differ slightly. 1997-04-07 21:00:34 +00:00
scottr
d7a6762ae8 Fix a debugging printf() format. 1997-04-07 16:28:26 +00:00
kleink
a0dca5145e Fix a CRNL/NLCR botch I made after looking this up in the X/Open spec.
Fixes PR 3453; from John Kohl and Enami Tsugutomo.
1997-04-07 16:09:28 +00:00
augustss
52e73da1a4 Regen. 1997-04-07 14:15:06 +00:00
augustss
bc5c0f6530 Add Linux nice() syscall. 1997-04-07 14:13:16 +00:00
cgd
80c27e8c49 include machine/options.h 1997-04-07 06:36:24 +00:00
cgd
f9f2e742af include machine/options.h 1997-04-07 06:24:24 +00:00
cgd
21598de043 use machine/conf.h instead of sys/conf.h and/or machine/cpuconf.h 1997-04-07 06:09:00 +00:00
scottr
f65f7e9b21 Always enable SCSI IRQ interrupt; the SBC_INTR flag now controls only
the SCSI DRQ interrupt, for "blind" transfers.
1997-04-07 05:56:28 +00:00
cgd
98f47c009f add machine/conf.h, right now a minimal placeholder 1997-04-07 05:52:34 +00:00
scottr
29c981b924 Rework PDMA read/write functions based on Matthias Pfaller's pc532 ncr
driver.  Major highlights:

 - Protect with splbio(), now that interrupts from the chip might be
   enabled by default;
 - Wait for current transfer to complete before returning, rather than
   wait for previous transfer to complete before starting another;
 - Instead of logging a "timeout" message when a target disconnects,
   just return, letting the sbc_ready() and sbc_wait_not_req() print
   timeout messages if such really did occur.

With interrupt changes to sbc_obio.c, disconnect/reselect now works if
configured into the kernel.
1997-04-07 05:48:35 +00:00
cgd
b2f768130d include machine/options.h 1997-04-07 05:46:48 +00:00
cgd
3775a7d0a0 more correctly conditionalize ARP code use 1997-04-07 05:40:45 +00:00
cgd
6093a85bde clean up eb164 #ifdefs 1997-04-07 05:40:10 +00:00
cgd
831292c29e clean up NetBSD RCS ID strings 1997-04-07 05:34:39 +00:00
cgd
8c56b1a0c9 clean up NetBSD RCS ID strings 1997-04-07 05:19:01 +00:00
jonathan
7fcfe9e0f5 Print explanatory message before each panic, or "goto abort" (which panics). 1997-04-07 03:21:14 +00:00
cgd
a60b90caa9 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-07 02:01:16 +00:00
cgd
51f119d429 clean up NetBSD RCS ID strings 1997-04-07 01:59:51 +00:00
mycroft
69e0aacce3 Remove the `backing_object still referenced' panic, since there's an expected
race with vnode_pager_sync().
1997-04-07 01:57:14 +00:00
jtk
e096ee0e10 add newlines at end of debugging log messages which were missing them 1997-04-07 01:48:30 +00:00
cgd
aa2b0a7f9f clean up NetBSD RCS ID strings, include machine/options.h 1997-04-07 00:19:11 +00:00
cgd
2677cb7ed8 clean up NetBSD RCS ID strings 1997-04-07 00:18:51 +00:00
kleink
9300dedf8e Back out last change to rename(2) until a sane solution for the coexistence
of both BSD and POSIX semantics is available.
1997-04-07 00:04:16 +00:00
augustss
91aba3ab34 Improve setting of record source. 1997-04-06 23:49:32 +00:00
cgd
a145382bd2 clean up some #ifdefs 1997-04-06 23:32:18 +00:00
jonathan
aee0270b51 Add changes to make vic-2.8 Ultrix binaries work on NetBSD with COMPAT_ULTRIX:
* Add IPmulticast setsockopt emulation.
* Add Ultrix shmsys emulation (untested).
* tidy up use of stackgap.
1997-04-06 23:26:52 +00:00
cgd
cf01fa7db7 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 23:22:26 +00:00
cgd
cca70e8ea5 clean up NetBSD RCS ID strings 1997-04-06 23:17:52 +00:00
cgd
84fb4bbf51 fix bogon in comment (s/PCI/ISA/) 1997-04-06 23:13:10 +00:00
cgd
f3ca02ac35 add options NETATALK 1997-04-06 23:11:22 +00:00
cgd
4c72137737 clean up NetBSD RCS ID strings 1997-04-06 23:03:02 +00:00
cgd
38d98acc9f clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 22:55:59 +00:00
cgd
23e6c43870 clean up NetBSD RCS ID strings 1997-04-06 22:55:46 +00:00
cgd
059aaedd65 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 22:31:45 +00:00
cgd
aca6fadc11 clean up NetBSD RCS ID strings 1997-04-06 22:30:21 +00:00
pk
fab7831bfc sun4c `nbuf' workaround: make threshold dependend on value of MAXBSIZ. 1997-04-06 21:41:36 +00:00
mycroft
1929ddf09c Fix some #ifdef lossage if HP340, HP360, or HP375 is defined, but HP370 is not. 1997-04-06 21:40:35 +00:00
jonathan
b28097e684 * Fix typo in SIOGIFCONF handling.
* Change explicit SunOS-compat ioctl codes to Ultrix-compat codes.
1997-04-06 21:33:44 +00:00
ragge
b7973034b4 & should be |. 1997-04-06 20:37:05 +00:00
cgd
d6292c87e8 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 20:09:04 +00:00
cgd
af228d12ab clean up NetBSD RCS ID strings 1997-04-06 20:08:28 +00:00
cgd
1d4f43d56f add <machine/options.h>, to allow 'defopt' option headers to be easily
included.
1997-04-06 20:07:17 +00:00
jtk
73cfcd9f66 fix compile error if AUDIO_DEBUG 1997-04-06 17:21:45 +00:00
kleink
4256cf1898 Add some clarification about the TTBREAKC macro's purpose; suggested by
Chris G. Demetriou.
1997-04-06 14:44:44 +00:00
leo
9c9b9aefc9 Make Hades DMA transfers work in polling mode with all interrupts
disabled. This makes dumps to scsi work.
1997-04-06 12:42:44 +00:00
leo
79987d75ee Calculate dumpsize correctly (in pages). 1997-04-06 12:39:41 +00:00
jonathan
2f1aae7d37 Commit message for previous revision (lost due to Ultrix-compat bug):
* Don't print DMA_OUT message in the `normal' case of a 16-byte residual.
* ioasic-connected 53c94 devices are always clocked  at 25MHz even on
  machines with 12.5MHz TurboChannel.
1997-04-06 10:07:54 +00:00
jonathan
055fff0581 *** empty log message *** 1997-04-06 09:58:30 +00:00
cgd
562fa9b97d clean up NetBSD RCS ID strings 1997-04-06 08:39:37 +00:00
cgd
c65f7b2d9a fix missing parenthesis in TTBREAKC() 1997-04-06 08:15:17 +00:00
augustss
7dcb9bed4c Make sure the bus tag is set where we need it. 1997-04-06 00:54:22 +00:00
augustss
29e9c34ad3 Add RCS id. 1997-04-06 00:35:19 +00:00
augustss
0a999294f5 Add support for MAD16 based audio cards.
XXX Change the way we determine to probe for it when
    multiple I/O ranges are available.
1997-04-06 00:33:07 +00:00
augustss
7dedd37033 Busify the WSS driver. 1997-04-05 23:50:23 +00:00
mjacob
6d4d1f8852 Okay, Charles convinced me that XS_DRIVER_STUFFUP is better than XS_SELTIMEOUT. 1997-04-05 22:36:56 +00:00
kleink
dbf70fddf5 If TOSTOP is set, and the process group of the writing process is orphaned,
and the writing process is not ignoring or blocking SIGTTOU, do not signal
the process but return EIO.
1997-04-05 21:40:34 +00:00
kleink
c028733220 Recognize EOL2 as a delimiter/"break" character only if IEXTEN is set. 1997-04-05 19:50:18 +00:00
mjacob
0d321a7e29 Add 60 (MHz) value for PCI clock frequency value. Also enable DMA bursting. 1997-04-05 02:55:28 +00:00
mjacob
ddc693c299 A) Attempt to get clock rate from ISP chip prior to bashing it over the head
in reset. If none there, try and get from the bus/platform specific code.
If a nonzero value for either, set the clock rate. This is why the PCI
card versions weren't working- they need to be set at 60MHZ, rather than
the default 40MHZ (which worked fine for the internal ISP chips on the
Alpha 8X00).

B) If a isp_poll returns failure (command never completed) to the caller
and no error is set in the xs struct, set XS_SELTIMEOUT. And then call...

C) Added isp_lostcmd function to try and ask the ISP chip about it's current
state as well as the state of commands for a particular target/lun. This is
going along to try and figure out why the very first command to the ISP always
seems to get swallowed up.
1997-04-05 02:53:22 +00:00
mjacob
8f28eaab67 Need a bus/platform specific clock speed variable. 1997-04-05 02:48:36 +00:00
pk
c59dd873f4 Remove alignment requirement of ether_cmp(): turn it into a series of
byte comparisons. Compare the ethernet addresses backwards on the
assumption that address number byte 6 has the most random distribution,
so packets not for us spend the least time in here.
1997-04-04 22:35:36 +00:00
mycroft
c4cd861045 Remove unintended piece of last change. 1997-04-04 21:05:00 +00:00
leo
c3d261e977 Add chrtoblk table entry for wd device. 1997-04-04 21:02:39 +00:00
mycroft
00f128b69f Fix several bugs related to MDMBUF. Also, remove the partial handling from
ttymodem(); it's not complete, it's better done in the driver, and only the
com driver ever supported it anyway.
1997-04-04 21:02:28 +00:00
pk
c124058e0b Undo previous change; it can't have any effect (thinko..) 1997-04-04 21:01:49 +00:00
mycroft
9448a01404 New version of com driver. Uses a different queueing mechanism and a split
hardware/software interrupt mechanism for improved performance.  Many odd
protocols bugs also fixed.
1997-04-04 20:56:34 +00:00
mycroft
925f3b37f7 comdefaultrate -> comconsrate
comconsbah -> comconsioh
1997-04-04 20:50:58 +00:00
mycroft
232ade1b2b comdefaultrate -> comconsrate
comconsbah -> comconsioh
Only use comconsrate on the console.
1997-04-04 20:49:49 +00:00
gwr
b5f838ad77 Add a comment. 1997-04-04 20:48:59 +00:00
pk
d1603d004b Use sc_hwreset() hook to reset ledma (if applicable). 1997-04-04 20:29:23 +00:00
matthias
470e2a9983 * Do some KNFing.
* Make all local functions static.
* Add some untested netatalk support.
1997-04-04 19:02:43 +00:00
christos
ef8d40a999 Busify the driver (from perry). 1997-04-04 18:59:35 +00:00
scottr
be3e57de4a Changes to make a dcm-based console work properly:
- While servicing an rx, tx, or modem status interrupt:  if we have a
   NULL struct tty * or if the tty isn't open, just return.
 - Skip the self test if we are the console; it manages to do funny
   things to autoconfig messages.  (XXX - this should be fixed)
1997-04-04 18:16:07 +00:00
augustss
32801cf383 * Move the Linux audio emulation into its own directory and rename it
OSS (aka VoxWare) audio emulation.
* Use the OSS audio emulation for Linux and FreeBSD.
* Add mixer emulation to the OSS emulator.
1997-04-04 15:35:54 +00:00
augustss
56f33727b5 Include OSS audio emulation. 1997-04-04 15:35:06 +00:00
briggs
99d2687e23 Mask off 'internal slot' in check to see if we should enable nubus intrs. 1997-04-04 15:33:30 +00:00
kleink
4d65b07afa As specified in POSIX.1 (and termios(4)!), when cc[VMIN]==0 a read() shall
be satisfied by any amount of data actually read.
1997-04-04 15:10:34 +00:00
briggs
28af7de8a4 Do not set DCR_SYNC for the C/Q[68]xx systems.
Thanks to Steve Brown <sbrown@best.com> for working with me to find this.
1997-04-04 14:54:44 +00:00
christos
8810289c14 Add netatalk domain. 1997-04-04 14:22:21 +00:00
kleink
2cfcc6c893 Return immediately upon zero byte reads, as updating st_atime in this case
violates POSIX.1 read() semantics.
1997-04-04 14:21:32 +00:00
kleink
9d8538dd8b Changed lseek(2): return EINVAL upon attempt to seek to negative offset. 1997-04-04 13:57:06 +00:00
kleink
50ccaeca39 Converted rename(2) to proper POSIX.1 behavior: if "from" and "to"
are links to the same file, do nothing. This also eliminates the
previous (and incorrect) check, which was far more complicated.
1997-04-04 13:32:48 +00:00
thorpej
2c0d2cb557 #ifdef DIOVERBOSE a variable needed only in such code. 1997-04-04 09:53:43 +00:00
thorpej
b5f9e1cdd1 kill an unused variable 1997-04-04 09:52:40 +00:00
matthias
9fea258541 * if queues have to be protected by splimp. Back out last change. Thank's
to Charles for watching out and notifying me about my mistake.
1997-04-04 09:51:26 +00:00
leo
fd52d826aa Add IDE driver (Markus Kilbinger). 1997-04-04 08:17:30 +00:00
is
e60bbb3b89 Actually ask for ARP initialization on this interface.
Somehow this commit was forgotten. Sorry folks.
1997-04-04 06:27:32 +00:00
mycroft
c50b8e4fa8 Make the names of the member of struct __va_list namespace-clean. 1997-04-04 04:17:06 +00:00
cgd
ce54b19fd3 include <stdlib.h> if !_KERNEL for malloc declaration/proto 1997-04-04 01:53:22 +00:00
augustss
e52219bae7 Regen. 1997-04-04 00:24:36 +00:00
augustss
a987ede509 Two more PCI devices. 1997-04-04 00:22:00 +00:00
kleink
5ec0772a62 In checkalias(), initialize the speclockf structure member invented
with the specfs advisory locking support; this could cause a panic.
1997-04-03 23:15:52 +00:00
kleink
c9c13ef470 Changed killpg1() to 'succeed' even if a process group consists of
SZOMB processes only; the POSIX.1 definition of a background process
group implies that kill(2)ing such a process group must succeed.
1997-04-03 21:08:27 +00:00
christos
bd1db9fd84 Fix compile problems (from Veego) 1997-04-03 21:07:42 +00:00
christos
11754cdf41 Update for argument change in at_ifawithnet 1997-04-03 18:48:28 +00:00
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