Commit Graph

2380 Commits

Author SHA1 Message Date
mycroft e0afa4e4f9 Don't turn off the trace flag here; let sendsig() do it.
If in Linux emulation, send SIGSEGV for protection faults, rather than SIGBUS.
1996-04-15 00:20:32 +00:00
mycroft ad790f628e Turn off the trace flag when delivering a signal. 1996-04-12 08:44:35 +00:00
mycroft 035e9c211e Use the flag mask in a somewhat more sane fashion. 1996-04-12 05:57:43 +00:00
cgd 79e0a8a2b9 update for addition of a machine-dependent cookie as the first argument
to isa_intr_{,dis}establish().
1996-04-11 22:15:08 +00:00
cgd 5007f5e246 pass a new, machine-dependent cookie, in the ISA bus attach arguments.
On the i386, this is always NULL, and is unused.
1996-04-11 22:13:37 +00:00
cgd 8f40bb43a8 add an isa_attach_hook() function which currently does nothing, and update
isa_intr_establish() and isa_intr_disestablish() to take an opaque cookie
as their (new) first argument.
1996-04-11 22:11:32 +00:00
cgd f3b97d1287 prototype MD functions for use by MI ISA code (isa_attach_hook(),
isa_intr_{,dis}establish()) here.  Make this file safely includable by
<dev/isa/isavar.h> and by all of the places in the i386 that are currently
including it, which means multiple inclusion protection and a few
otherwise-extraneous 'forward' structure declarations.  isa_intr_establish()
and isa_intr_disestablish() now take as their first argument a
machine-dependent cookie of type isa_chipset_tag_t, which is also defined
here.
1996-04-11 22:10:11 +00:00
mycroft c8ab43244b Actually keep track of the naughty PSL bits.
Use VIF, rather than IF, by default, to be compatible with dosemu.  XXXX
1996-04-11 10:07:17 +00:00
mycroft 48643c6605 Export [gs]et_vflags(), and always use them when saving/restoring registers
in VM86 mode.
Allow changing of *all* PSL bits in VM86 mode; some applications don't work
right otherwise, and all the nasty bits are virtualized anyway.
Make sure PSL_VIF, PSL_VIP, and PSL_VM don't show up in the user's view of
the PSL.
1996-04-11 07:47:33 +00:00
mycroft b61f5e52cd Set the flag mask earlier.
Use SS_ONSTACK, not SA_ONSTACK.
1996-04-11 05:11:03 +00:00
mycroft ff8268cfea Fix a couple of 16-bit extension errors. 1996-04-11 03:21:42 +00:00
cgd cd9ef2be9c make the EISA code look a bit more like the PCI code, in the way
the bus is configured, interrupts are handled, etc.  define
eisa_chipset_tag_t and eisa_intr_handle_t types, and the following
functions:
        eisa_attach_hook()
        eisa_maxslots()
        eisa_intr_map()
        eisa_intr_string()
        eisa_intr_establish()
        eisa_intr_disestablish()
to do the right things for the i386.
1996-04-09 23:00:25 +00:00
cgd 4444d2866e there's now a eisa_machdep.c which must be included when including
EISA support.
1996-04-09 22:59:03 +00:00
cgd 3ccd8b454e it's now safe to include both isavar.h and eisavar.h. Also, pass
an appropriate cookie (NULL) to the EISA attach code for use with the
EISA functions.
1996-04-09 22:58:29 +00:00
thorpej 43411d2e96 Convert to use <machine/bus.h>. 1996-04-09 00:46:15 +00:00
jtc c4bd7796ba Add to DPADD for each library in LDADD; Reported by Mike Long <mike.long@analog.com> in PR #2301. 1996-04-08 21:21:54 +00:00
thorpej 84c7027789 Add bus_io_{read,write}_multi_{1,2,4,8}() to the <machine/bus.h>
interface, and implement them (except for the 8-byte versions) on
the i386.
1996-04-05 23:59:37 +00:00
cgd 83f9bdc359 update for the fact that config_found() and config_rootfound() now
return pointers.  (Check vs. NULL, rather than just boolean tests.)
1996-04-04 06:25:00 +00:00
cgd 5645e460ac apparently, it's now appropriate to use 'bt at isa' for bt54x SCSI
controllers, rather than the historic 'aha at isa'.
1996-04-04 05:01:51 +00:00
mycroft 46c087980e Add explicit return types. 1996-04-03 08:55:20 +00:00
mycroft deef34f203 Add explicit return types. 1996-04-03 08:18:27 +00:00
mycroft 4f6c412517 Remove an old `#define DIAGNOSTIC'. 1996-04-03 05:48:35 +00:00
chuck b9eb8ab773 change "pcvt25h" in the example ttys file to "pcvt25"
to match changes in NetBSD's /usr/share/misc/termcap.
1996-04-03 04:37:44 +00:00
chuck c132a81557 as per cgd:
temporarily revert bus config order back to isa->eisa->pci
	until port allocation/accounting is ready (XXX).

	works around problem of the if_ep driver's probe function trashing
	an adaptec 2940 if the BIOS maps it in at port 0xf000.  (the
	BIOS on my new P166 does this, ... the BIOS on my P133's does not).
	without this the P166 system will reset as soon as spl0() is called
	(autoconf.c) making it impossible to install the OS.
1996-04-03 04:26:38 +00:00
chuck 79ca6b2c5f removed references "updatefast" and "updateslow" as they are no longer
defined/used.
1996-04-02 05:07:21 +00:00
chuck 8b39fc7f9f removed refs to pcvtinfo.{updatefast,updateslow} as these are no longer
defined (or used).
1996-04-02 05:05:16 +00:00
scottr 47b5b87d08 Clean up, primarily KNF. 1996-04-01 06:39:17 +00:00
perry f825488c3c Added (commented out) line for joystick driver. 1996-03-30 23:57:09 +00:00
jtk 7ab53a4163 fix up ddb at boottime for pcvt--device not allocated yet, and not used by pcintr 1996-03-30 23:40:18 +00:00
mycroft bd6e60f0d5 Add explicit return types. 1996-03-30 07:51:51 +00:00
mycroft fba10af524 Add explicit return types. 1996-03-30 07:30:33 +00:00
mycroft e1ceb9a557 Add wds0 and wds1 to generic kernels. 1996-03-30 05:42:45 +00:00
mycroft df45c0b542 Prototype some internal functions. 1996-03-29 01:15:04 +00:00
mycroft 6424af4c10 Prototype delay(). 1996-03-29 00:23:28 +00:00
mycroft 6e2bbd2d92 Use offsetof() for structure offsets. 1996-03-28 23:44:04 +00:00
mycroft 42bfe3a4f3 Add a return type for main(). 1996-03-28 22:33:10 +00:00
perry ee2fa11baf add joystick driver from Matthieu Herrb (pr #2267) 1996-03-27 19:11:13 +00:00
perry 39ac1f2cad Remove obsolete rd_match_hook and sync with sun3 version again. 1996-03-27 16:38:33 +00:00
mycroft 30c174cdcf Use a more standard and more sane error cleanup convention... 1996-03-27 06:49:54 +00:00
cgd da3136aba8 modify these to provide a new, better-specified PCI interface
(soon to be documented on mailing lists; eventually in section 9 manual
pages), most importantly:
	(1) support interrupt pin swizzling on non-i386 systems with
	    PCI-PCI bridges (per PPB spec; done, but meaningless, on i386).
	(2) provide pci_{io,mem}_find(), to determine what I/O or memory
	    space is described by a given PCI configuration space
	    mapping register.
	(3) provide pci_intr_map(), pci_intr_string(), and
	    pci_intr_{,dis}establish() to manipulate and print info about
	    PCI interrupts.
	(4) deprecate the pci_map_* functions, and provide them only
	    as compatibility interfaces (in pci_compat.c) which will
	    eventually go away, implemented as wrappers around
	    the functions described above.
	(5) make pci functions take as an argument a machine-dependent
	    cookie, to allow more flexibility in implementation.
1996-03-27 04:01:10 +00:00
perry 0e05503b1b added to support rd (ramdisk) pseudodevice needed for new install system. 1996-03-25 18:49:18 +00:00
perry 0c01ef4333 Add changes to support rd (ramdisk) pseudodevice, needed for new
install system.
1996-03-25 18:47:47 +00:00
perry 4a9fd2c5f4 Added support for rd (ramdisk) pseudodevice, needed for new install system. 1996-03-25 18:44:29 +00:00
perry 3a7ebace87 Add COMPAT_11 option. 1996-03-25 05:45:08 +00:00
jtk 5e4b11dfc1 updated spkr attachment to use new pckbd attribute 1996-03-18 01:46:23 +00:00
jtk 83bdfcf5c9 attach the speaker device to pckbd (it falls in the I/O range of the
keyboard/console device cluster)
1996-03-18 01:26:10 +00:00
thorpej 82d914d090 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:26:49 +00:00
thorpej 0c71728320 Change the PS/2 mouse driver to be a child of the "pckbd" attribute,
which represents the "keyboard controller".  Give "pc" and "vt" drivers
the "pckbd" attribute.  In pcattach() (pccons and pcvt), attach children
of the keyboard controller.
1996-03-16 06:08:46 +00:00
jtc 2ce5f1478b Add _BSD_WINT_T_ definition so we can handle wint_t type added in NA1. 1996-03-16 01:31:45 +00:00
chuck 1079c8c2aa change Debugger() from an int function to a void function to match the
prototype in sys/systm.h (which was just put in in by christos)
with revision 1.43 of sys/systm.h
	revision 1.43
	date: 1996/03/14 18:59:12;  author: christos;  state: Exp;  lines: +1 -3
	systm.h: Bring Debugger() prototype into scope.
1996-03-15 00:07:18 +00:00