Commit Graph

3260 Commits

Author SHA1 Message Date
drochner
07fdccb3a4 Document new WD80x3 option. 1998-02-16 11:41:14 +00:00
drochner
509f891bd0 -Completely reset the card in EtherStop(), otherwise the next
open can fail.
-Disable interrupts in the mask register - EP_W0_RESOURCE_CFG is not
  sufficient for PCI cards.
1998-02-16 11:26:36 +00:00
drochner
b8cdacb8d5 Redo standalone driver for WD8013 / SMC Ultra boards.
(The old one was buggy.)
Frontend / backend splitup and most code taken from sys/dev/ic/dp8390.c
and sys/dev/isa/if_we.c.
1998-02-16 11:21:59 +00:00
mrg
7d9acb9bb6 add a commented out PMAP_NEW. 1998-02-13 04:12:33 +00:00
thorpej
cb9500aac0 Fix for defopt'd UVM and PMAP_NEW. 1998-02-11 03:05:35 +00:00
thorpej
e9017a5ab3 Use kernel_map in bus_dmamem_{map,free}(). 1998-02-11 03:03:52 +00:00
thorpej
30aa56fc66 Use M_DMAMAP where appropriate. 1998-02-11 01:37:51 +00:00
mrg
d90485202c - add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.
1998-02-10 14:08:44 +00:00
scottb
2ee5fa7f17 iBCS2 code cleanup
added support for ELF binaries
added support for ELF shared libs via mmap code borrowed from svr4_misc.c
incorporated a few XENIX patches from Andreas Wrede <andreas@planix.com>
1998-02-09 02:30:42 +00:00
thorpej
1305ecbe62 Allow callers of uvm_km_suballoc() to specify where the base of the
submap _must_ begin, by adding a "fixed" boolean argument.
1998-02-08 06:15:53 +00:00
thorpej
9eb328b495 RCS ID police. 1998-02-06 22:26:13 +00:00
thorpej
2d1cb11d5b Allow userland access to pd_entry_t and pt_entry_t, like the old pte.h
used to do.  Also, RCS ID police.
1998-02-06 21:58:05 +00:00
cgd
82bb6682da re-indent the EX_FAST change (try to keep a given argument on one line,
so that it's more apparent what the code is going).
1998-02-06 19:51:54 +00:00
mrg
30a584067f remove paging options from kernel files. 1998-02-06 11:20:27 +00:00
thorpej
c0c3c30be3 When allocating bus space in bus_space_alloc(), use EX_FAST to find
the first fit in the map.  The previous behavior violated the principle
of least surprise (especially annoying when you're debugging space allocation
problems).  Suggested by Chris Demetriou.
1998-02-06 10:06:51 +00:00
thorpej
374b6294f9 Back out previous change. Until the default VM system is UVM, these
"options" ARE required, and leaving them here doens't hurt anything in
the UVM case.
1998-02-06 08:19:23 +00:00
thorpej
10a076eee1 Kernel for zhadum.netbsd.org, soon-to-be CVS server. 1998-02-06 08:08:56 +00:00
thorpej
424e1858c4 Use __BROKEN_INDIRECT_CONFIG where appropriate. 1998-02-06 08:00:52 +00:00
thorpej
b16f0280e3 Add pceb at pci and {eisa,isa} at pceb attachments. 1998-02-06 07:53:26 +00:00
thorpej
9c9a25df29 Don't attach an EISA bus if it's already been configured. 1998-02-06 07:52:13 +00:00
thorpej
cacadb7fbe Erg, typi. 1998-02-06 07:51:46 +00:00
thorpej
fce12f0081 Notify other machine-dependent code that the EISA bus has been configured
in the attach hook.
1998-02-06 07:51:11 +00:00
thorpej
e56b1d0b2d Add an autoconfig node for PCI-EISA bridges. Configures EISA and ISA
bridges via callback.
1998-02-06 07:50:07 +00:00
mrg
6bcccb887c oops, forgot to add these new files 1998-02-06 07:41:33 +00:00
mrg
29e93b8bea add the i386 MD portions for UVM. 1998-02-06 07:21:42 +00:00
thorpej
939995c0dc On the 486 and higher, actually make the bus mem space mapping noncacheable
if mapped with BUS_SPACE_CACHEABLE unset.
1998-02-06 05:35:16 +00:00
drochner
ac884fce95 Allow DELAY() to be called anytime:
-don't enable interrupts at the end of gettick(), restore the previous
 state instead
-start timer/counter 0 from delay() if necessary
-comment out "findcpuspeed()", it would clobber the timer again, and it
 is unused anyway
1998-02-05 19:59:54 +00:00
drochner
3f38ea4063 provide pushfl/popfl to C code 1998-02-05 19:53:52 +00:00
thorpej
8abe76d2f0 Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.
1998-02-04 05:12:46 +00:00
thorpej
99cc8482d1 Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
and allow more than one synchronization operation to be specified in
a single call.  Dissallow mixing of PRE and POST operations.
1998-02-04 01:57:27 +00:00
thorpej
a7c5c1ef3c Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
BUS_DMA_COHERENT.
1998-02-04 00:32:55 +00:00
thorpej
b7b27cb6e4 Back out a change that wasn't supposed to be in here. 1998-02-03 19:16:04 +00:00
mycroft
b5c132e4d2 Prototype __flt_rounds() consistently. 1998-02-03 01:26:20 +00:00
tron
56ba21e271 Add option "#options IPFILTER_LOG", fixes port-i386/4858. 1998-01-29 01:53:03 +00:00
bouyer
2edc21452a The name of cyrix's CPU family 6 model 0 is 6x86MX. Also set this name
for the default name.
1998-01-28 17:08:05 +00:00
thorpej
5d3fc3e8bc Implement bus_dmamap_load_mbuf(). 1998-01-27 03:31:54 +00:00
mycroft
1f21545d93 Correct an oversight in the startup changes that caused the wrong exception
to be reported in one case.
1998-01-24 15:50:42 +00:00
mycroft
8661bee5de Minor change. 1998-01-24 14:22:44 +00:00
mycroft
d664bf39b8 Add some comments about what the control words do. 1998-01-24 14:00:36 +00:00
mycroft
a963fe5864 Store the initial NPX control word appropriate for the emulation in the saved
FPU state, and use it when initializing the FPU on demand.
1998-01-24 13:19:46 +00:00
mycroft
a9a7cc88d1 Need foo_exec.h. 1998-01-24 12:45:16 +00:00
drochner
ae1a2006c5 -take over debugging printf format fixes from sys/lib/libsa/nfs.c rev.1.23
-make error reporting for mount working as in sys/lib/libsa/nfs.c
1998-01-24 12:43:09 +00:00
mycroft
8bd9717302 Add local versions of setregs(), so I can tweak some registers later. 1998-01-24 12:42:22 +00:00
mycroft
4b8a102fbb Fix process_{read,write}_fpregs(). 1998-01-24 12:11:15 +00:00
mycroft
d15d246d32 Add wdc* at isapnp?. 1998-01-23 20:42:34 +00:00
mycroft
c1d56d473f Add wdc* at pcmcia. 1998-01-23 01:16:03 +00:00
mycroft
22c1670658 Some rearrangement of the startup code:
* Move some of the memory bootstrapping and the DDB startup earlier.
* Always put the IDT and the initial GDT and LDT in a separate page.
* Various minor changes.
1998-01-23 00:44:02 +00:00
mycroft
c654cd6a87 Fix a bogon that flared up when XSERVER was defopted. 1998-01-22 20:55:48 +00:00
drochner
9219f22775 strchr.c disappeared from libkern, use index.c instead
(we can't control the libkern build as we want, but it works...)
1998-01-22 15:48:02 +00:00
thorpej
dd4cb910db Generate dependenices on the XSERVER option. 1998-01-22 01:16:23 +00:00
thorpej
122364206a Generate dependencies on the DUMMY_NOPS option. 1998-01-22 00:44:06 +00:00
thorpej
54a35a6019 Generate dependencies on the USER_LDT option. 1998-01-22 00:39:16 +00:00
thorpej
9ba18e2255 Generate dependencies on the MATH_EMULATE option. 1998-01-21 23:29:08 +00:00
drochner
66e093ada9 remove unused and misleading KERNSIZE definition 1998-01-20 13:11:25 +00:00
drochner
ae5f11c8d7 fix typo in DEBUG code 1998-01-20 12:48:05 +00:00
drochner
32d94859ea adapt to changed <dev/ic/i8042reg.h> 1998-01-18 14:45:10 +00:00
thorpej
cf591e644b Generate dependencies on the VM86 option. 1998-01-15 22:25:52 +00:00
thorpej
032c433933 Just commit to using MACHINE_NEW_NONCONTIG. 1998-01-15 22:20:15 +00:00
thorpej
1484fa567d Generate dependencies on the CPU type options (I386_CPU, I486_CPU, ...) 1998-01-15 19:47:36 +00:00
thorpej
2cfef7a0ec Oops, something snuck in there that shouldn't have... 1998-01-15 07:40:06 +00:00
thorpej
525b092c2e Get include file paths correct. 1998-01-15 06:15:08 +00:00
thorpej
1f93872e5c Kludge around i/o port overlap w/ the "wdc" driver. 1998-01-15 06:11:55 +00:00
cgd
d6e5187749 add 'sd* at atapibus? drive ?' to all kernel configs already containing
an analogous line for 'cd'.
1998-01-15 02:26:26 +00:00
cgd
ad141a69a7 Shuffle wd/wdc driver files around (via repository copies). wdc
now lives in dev/ic, wd now lives in dev/ata.  there's now a 'ata'
interface attribute defined in conf/files, but wdc can't go there
yet because some ports still use private versions based on the old
ISA version.
1998-01-14 23:36:30 +00:00
drochner
09354842c5 from Dave Burgess per PR4620:
-base address 0x308 is supported by more Wangtek QIC tapes than 0x300
-Ultrastor ISA SCSI adapters can't be set to base address 0x334
  (changed to 0x340)
1998-01-14 15:27:43 +00:00
mrg
057795048f this is the i386 MD portion of the MACHINE_NEW_NONCONTIG code, as
written by chuck cranor.  thanks to mycroft for helping me find the
one little line of code i accidentally deleted while merging it.

this is not enabled by default.  `options MACHINE_NEW_NONCONTIG'
will use this code.  eventually, this should go into <machine/vmparam.h>
insteaed of MACHINE_NONCONTIG.
1998-01-13 12:52:16 +00:00
thorpej
36760d9d94 Update for changes to config. 1998-01-12 18:59:04 +00:00
perry
aceff90d16 add yet another PCI brige -- from pr 4780 from Nathan J. Williams 1998-01-10 01:15:14 +00:00
fvdl
83ef3d4928 Switch off CPU-PCI write posting for the Saturn chipset; it is known
to cause problems with PCI busmasters.
1998-01-09 22:34:58 +00:00
perry
6f57e5c573 multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom) 1998-01-09 22:23:44 +00:00
mycroft
59ea23516a Increase delays to the required 7us. 1998-01-09 21:28:32 +00:00
drochner
6757ab1b65 Remove conditional setting of "nfs_boot_rfc951" (introduced in previous
change). It's not needed anymore.
1998-01-09 16:01:27 +00:00
drochner
5b055c9032 enable diskless boot with BOOTP and BOOTPARAM configuration 1998-01-09 15:18:50 +00:00
mrg
aa39c43bc9 call vm_set_page_size(). 1998-01-09 04:37:56 +00:00
thorpej
3e7eb6c80a Garbage-collect pm_pdchanged; it's not used by anything. 1998-01-06 07:16:06 +00:00
jtk
fe87ac4104 fix for changes in bioscall structure and include files 1998-01-06 00:35:42 +00:00
perry
5646f55116 make script insert RCS ids into generated files 1998-01-05 21:28:21 +00:00
perry
015e898c02 RCSID Police. 1998-01-05 07:02:46 +00:00
thorpej
b9f1b716f3 Now that all ports have pmap_activate(), and it has an identical interface,
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
mycroft
61475326e0 Add delays for lame keyboard controllers, as in the keyboard driver. Do a
better job of flushing input in various cases.
1997-12-18 16:49:10 +00:00
mikel
718221a852 fix format string in FD_DEBUG printf(); from Eric Haszlakiewicz in PR 4692 1997-12-16 07:35:45 +00:00
drochner
fbe83dc02d Install "pcvt_ioctl.h" by normal "make includes". 1997-12-10 14:14:21 +00:00
tv
a7d1d15c39 KMEMSTATS is documented in options(4) as being a possible severe
performance hit, and on an 80386 processor, it most certainly is.  Pull it
from the GENERIC (and DISKLESS "generic") kernels--configure it in
yourself if you actually need it.
1997-12-09 13:32:32 +00:00
thorpej
b27ebeeac1 Work-around the situation where the buffer cache is larger than
16M, thus eating up all candidate bounce pages, which are not allocated
until autoconfiguration runs, by deferring allocation of the buffer
cache pages until after autoconfiguration has run.

XXX This is safe because the i386 port doesn't read any disklabels
XXX during autoconfiguration.
1997-12-08 05:07:29 +00:00
fvdl
be205fedc0 Define constants for the start and end VA of user page tables. 1997-12-07 21:30:11 +00:00
fvdl
4357e617d2 When getting a pagefault for a PT page, wire it. Normally we fault them in
ourselves, but this can still happen on a 386 in copyout & friends.

Fixes pmap_changebit panics seen on 386s. Thanks to Juergen Hannken-Illjes
for providing detailed info on bug occurances.
1997-12-07 21:28:56 +00:00
thorpej
d25c266af2 Use malloc()/free() for the temporary buffer, not geteblk()/brelse(). 1997-12-07 16:06:21 +00:00
thorpej
6e39ad36a6 In pccngetc(), don't treat cn_tab->cn_dev as a valid device number until
it's initialized.
1997-12-07 06:20:44 +00:00
bouyer
d45f82208d Add a cpu_setup() function to "struct cpu_nocpuid_nameclass" and
"struct cpu_cpuid_family", so that we can have a cpu_setup function per
known cpu type. For now use it only for cyrix 6x86 to enable suspend-on-halt
and implement cyrix's workaround to the "coma bug".
1997-11-27 11:53:45 +00:00
fvdl
b3de97c5c1 Revert I486_PCI_MEM_ENABLED change; it caused too many problems. 1997-11-27 10:10:50 +00:00
fvdl
4ee07a6d65 Revert I486_PCI_MEM_ENABLED change, it caused too many problems. 1997-11-27 09:58:26 +00:00
kleink
e85ad99e57 Add COMPAT_13. 1997-11-25 20:29:24 +00:00
thorpej
2524b071e8 Add commented-out "I486_PCI_MEM_ENABLED" option, and describe it. 1997-11-24 00:21:48 +00:00
thorpej
b6e3c093d8 defopt I486_PCI_MEM_ENABLED 1997-11-24 00:21:01 +00:00
thorpej
46c5ad921d Add a workaround for buggy i486 PCI chipsets that have trouble with
memory-mapped device access (manifested by an apparent wedging of the
PCI bus):
- If cpu_class == CPUCLASS_486, disable memory-mapped PCI device access,
  leaving only i/o-mapped access enabled.
- Provide a patchable kernel variable (i486_pci_mem_enabled) and a kernel
  option (I486_PCI_MEM_ENABLED) to re-enable it.
1997-11-24 00:20:32 +00:00
thorpej
978a8b60db Add SCSIVERBOSE 1997-11-23 23:40:45 +00:00
kleink
66c2794142 Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
cleanup
1997-11-23 20:20:53 +00:00
mikel
37d9430628 add ID for (brain-damaged) GUS PnP, and add comments describing what
hardware each ID describes.
1997-11-20 06:23:52 +00:00
mycroft
0afda495f5 Do the Pentium bug fix differently. Put the IDT in a read-only page and check
for a write fault on the illegal instruction descriptor.  Don't ask why this
works unless you have a strong stomach.
1997-11-19 11:11:22 +00:00
augustss
ee5628ee52 Add another PnP id. 1997-11-18 11:31:07 +00:00
thorpej
f56e6f631f Add an i/o address for iy0 (from GENERIC) 1997-11-17 03:42:52 +00:00
thorpej
9246032610 Put lc0 at i/o 0x320. 1997-11-17 03:39:42 +00:00
lukem
6c986561ee * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
christos
af27f4e9b5 PR/4506: Andreas Gustafsson: Finnish keyboard mapping for pccons. 1997-11-16 22:05:48 +00:00
mycroft
0963ca7386 Minor change. 1997-11-16 12:31:00 +00:00
mycroft
d7107be1c9 Fix a condition where we might keep interrupts blocked while servicing a soft
interrupt.
Fixes serial port silo overflow problems.
1997-11-16 12:30:00 +00:00
carrel
2030b7b104 Turn off reseting and disabling the device by default.
Document the option to turn them back on.
1997-11-15 20:18:50 +00:00
mycroft
93b31159bf When fixing up traps 1, 3 and 4, turn off the RF flag. 1997-11-15 04:47:30 +00:00
mycroft
6250567ba0 Make INTO actually work right. 1997-11-14 12:30:06 +00:00
mycroft
b1c7e79679 Map NMI in user-level code to SIGBUS. 1997-11-13 10:13:46 +00:00
mycroft
f946a9746d Oops; previous logic was wrong. 1997-11-13 07:21:23 +00:00
mycroft
da60005b96 Only do the Pentium trap fixup when we get a kernel mode page fault. 1997-11-13 05:31:04 +00:00
mycroft
4f8b60c6bb Implement the BSDI kluge for the Pentium `hang'; leave the first 7 IDT
descriptors in an unmapped page, and patch up the trap information inside
the page fault handler if the faulting VA is inside the IDT.
1997-11-13 03:25:27 +00:00
mycroft
6a310175c6 Some general cleanup:
* Call gdt_init() earlier on.
* Don't bother to check for TSS and LDT descriptors in verr_gdt().
* Nuke the sti special case for trace and breakpoint traps.
* Move some variable declarations into more appropriate locations.
1997-11-13 03:16:42 +00:00
thorpej
ce4c770f88 Make sure CPP, AR, AS, and RANLIB are defined. 1997-11-12 23:11:50 +00:00
thorpej
a421995756 Define LORDER, NM, and TSORT here, like we do the rest of the tools. 1997-11-12 22:25:31 +00:00
drochner
b80ad6c934 -point to console(4) manpage for serial console parameters
(suggested by Chuck Cranor)
-insert a reasonable IO base address for "iy at isa"
 (from Ignatios Souvatzis)
1997-11-11 20:31:38 +00:00
thorpej
6fcc8cd8b1 Add locators for "eg0" device, and enable it. 1997-11-11 05:53:06 +00:00
drochner
23e7d0a259 Adjust comment for new default fragment table size. 1997-11-07 17:01:45 +00:00
drochner
4ad496626c Double default fragment table size. For fragmented and / or small
blocksize filesystems the old default was too small.
1997-11-07 16:59:41 +00:00
thorpej
204a7b293b Sync ISA network device section with INSTALL. 1997-11-05 19:24:27 +00:00
thorpej
51460546c8 Add sm0 at isa? port 0x300 irq 10 1997-11-05 18:13:10 +00:00
mycroft
224cfc2d71 Fix spacing of `not connected' message. 1997-11-05 05:45:00 +00:00
thorpej
0b04d28454 Mark uses of long long with /* LONGLONG */ for lint. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej
023d8288ee asm -> __asm__ 1997-11-05 03:53:20 +00:00
perry
ba2ee23103 Small installation kernel for older machines; fits on 1.2M floppy but
doesn't support PCI or PCMCIA.
1997-11-05 03:25:52 +00:00
thorpej
4730a8cbec Bug fixes and cleanup from Chris Demetriou <cgd@pa.dec.com>:
- fix _C_LABEL so that it actually works.
- make __RENAME use _C_LABEL.
- fix __RENAME so that it expects an unquoted argument.
- fix __indr_reference and __warn_references so that they
  supply their own final semicolon.
- define __warn_references to nothing if not GNU C (required
  by the way it's used).

The __warn_references semicolon change has to be made
so that __warn_references can be defined into nothing.
(A ; all by itself isn't a great idea.)  The __indr_reference
change was made for consistency.
1997-11-04 23:09:23 +00:00
thorpej
15339d7ea8 Make pmap_{,de}activate() take a pointer to a proc. 1997-11-04 01:37:01 +00:00
thorpej
4436625795 Delete "ed" driver, add "we". 1997-11-03 21:33:33 +00:00
drochner
8539f2f3b9 ../lib/exec_fromdos.c doesn't use the memory size returned by XMS check
anymore if other methods work better. Sync banner output with this.
1997-11-03 18:17:19 +00:00
drochner
90e33ee203 When using XMS, use the XMS size returned by the BIOS only if the other
methods to detect extended memory didn't work well.
(this XMS size is always too small, typically by 68k)
1997-11-03 18:06:22 +00:00
thorpej
540caf5a8f Add "ec" driver. 1997-11-02 01:02:23 +00:00
lukem
3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
drochner
bdf1b13477 -Don't try to parse the bootfile path in DOS mode.
-Take "dev" command from "biosboot" for consistency.
1997-10-31 18:50:09 +00:00
mycroft
9870971b35 Format police. 1997-10-31 07:59:52 +00:00
thorpej
173f7c3b37 Defopt PCIC_ISA_ALLOC_IOBASE, PCIC_ISA_ALLOC_IOSIZE, and
PCIC_ISA_INTR_ALLOC_MASK.
1997-10-29 22:50:46 +00:00
wrstuden
de95bf8c30 Add pnp support for the OPTi Audio 16's joystick port. 1997-10-29 19:40:12 +00:00
thorpej
1d338698d7 Flush tty input queue when going in and out of X mode, PR #4321,
Chris Demetriou.
1997-10-29 01:39:40 +00:00
fvdl
d2016e2df0 Disable interrupts when frobbing the keyboard controller for A20, as
it may generate a reset on some (older) controllers. Introduce a delay
to make some kbd controllers happier.
1997-10-29 00:32:49 +00:00
drochner
ec78310453 Catch "timeout" return of serial port read BIOS call. 1997-10-27 19:53:20 +00:00
drochner
64550a14f3 Pass status byte to caller too. 1997-10-27 19:51:18 +00:00
mikel
135737c189 fix some typos and other misfeatures in comments; no functional change
note that bha driver supports BT44x cards as well
1997-10-23 05:49:42 +00:00
sommerfe
c83f212654 Fix PR4316: pcvt busted in 1.3.. 1997-10-22 18:24:30 +00:00
thorpej
665f7d1a6e Implement __RENAME() in <machine/cdefs.h> 1997-10-22 05:20:32 +00:00
bouyer
d29eab51f1 Correct spelling of 'ThunderLAN' 1997-10-21 06:01:16 +00:00
thorpej
5ea9d818ae Update for new location of i82365.c 1997-10-20 20:26:25 +00:00
thorpej
1d1fd17f73 Don't panic if we fail to remap i/o or mem space in the attach function.
Instead, print a diagnostic and return.  (Some drivers do this already.)

Also, normalize the diagnostic message, and fix some places where the
printfs were getting ugly.
1997-10-20 20:07:57 +00:00
perry
75473a6379 we don't need FDESC 1997-10-20 20:03:04 +00:00
explorer
32b7029647 Mark options RND_COM as broken on i386 port 1997-10-20 18:45:09 +00:00
explorer
9d0579d2fb Comment out pseudo-device rnd, mention options RND_COM, and mark experiemntal 1997-10-20 15:19:51 +00:00