Commit Graph

2714 Commits

Author SHA1 Message Date
jtk
517f2ace37 One more fix as pointed out by enami tsugutomo <enami@ba2.so-net.or.jp>:
check slen before accessing cp[1] in GETNUM macro.
1996-07-21 04:01:01 +00:00
jtk
a6c08ef5e8 fix PRs 219, 2295, 2612: speaker bugs on i386 port: remove overruns due to
faulty bounds checking; repair faulty octave limiting.
1996-07-14 01:03:13 +00:00
explorer
41239f1024 Suggestion from Noriyuki Soda <soda@sra.co.jp> to update the comments for
these files, since the driver was updated to deal with more devices.
1996-07-14 00:10:11 +00:00
fvdl
8e6a25cd1d Make this compile with PCVT_SCANSET == 2 (PR #2622) 1996-07-13 23:26:03 +00:00
mycroft
353cfc3523 Oops; remove something that shouldn't be here. 1996-07-09 09:23:03 +00:00
chuck
59896583e3 add softnet interrupt for native mode atm 1996-07-04 03:17:53 +00:00
mycroft
de867628ce Migrate m->m_data and m->m_len into Q regs to enable 10% code size reduction. 1996-07-03 18:20:38 +00:00
mycroft
7217b32126 Eliminate an instruction. 1996-07-03 14:05:16 +00:00
mycroft
b056ddef2a Add a few mbuf fields. 1996-07-03 13:10:46 +00:00
mycroft
8663d62627 Minor cleanup. 1996-07-03 13:07:17 +00:00
mycroft
5f51da7a03 Translate in_cksum() to assembler, and speed it up a bit. 1996-07-03 13:01:40 +00:00
thorpej
698844254e A few simple changes:
- Use an extent map to manage the ISA memory "hole", much like
	  how i/o port space is manged with an extent map.  Do the actual
	  accounting in bus_mem_{,un}map().

	- When creating the ioport and iomem extent maps, pass the
	  EX_NOBLOB flag, which tells the extent map code to disallow
	  fragmenting of regions.  This will make it easier to catch
	  simple i/o and memory mapping bugs (like the if_ed.c bug I just
	  fixed) in the future.

	- In bus_mem_map(), a chunk of code was indented using spaces.
	  Make the indentation use tabs.

	- In bus_io_unmap(), fix the format passed to printf().
1996-06-25 21:22:48 +00:00
thorpej
9b69016c08 Now that we have i/o port accounting, change the mainbus attach
order back to the (correct) pci -> eisa -> isa ordering.
1996-06-23 20:11:27 +00:00
thorpej
8c2f15c6fc New implementation of bus_io_{,un}map() for the i386. Details:
- A fixed extent map (statically allocated descriptor storage) is
	  created in init386(), just before the call to consinit().  The
	  fixed descriptor storage has enough room for 8 region entires,
	  which is plenty for early initialization, but doesn't chew up
	  that much memory.

	  This extent map (ioport_ex) manages the i386 i/o port
	  space (0x0 - 0xffff).

	- Just before the call to configure() in cpu_startup(), a
	  flag is set which notifies the bus_io functions that it is
	  safe to use malloc() to allocate descriptor storage, in the
	  event that more than 8 regions are needed.

	- bus_io_map() attempts to allocate the specified region from
	  ioport_ex.  If the allocation succeeds, the io handle is
	  filled in.  If the allocation fails, it is implied that
	  something else is already using that io space, and an
	  error condition is returned.

	- bus_io_unmap() frees a region previously allocated from
	  ioport_ex in bus_io_map().  If the free fails, a warning
	  is printed on the conole.

These changes implement "port accounting".  This is required for
proper autoconfiguration on the i386 port, and makes dealing with,
among other things, PCMCIA io mappings _much_ easier.
1996-06-23 19:59:06 +00:00
mycroft
60f46fb10b Increment the boot block version. 1996-06-18 07:51:26 +00:00
mycroft
584f242944 Don't advance to the next default name if the user typed something.
Make gets() return void.
1996-06-18 07:47:02 +00:00
mycroft
398b638fbb Add comments on #else and #endif. Move #ifndefs outside of comment blocks. 1996-06-18 07:17:47 +00:00
mycroft
b360b90a92 Save %esi and %edi around BIOS calls. Also, reference arguments through
%esp rather than %ebp, to avoid needing to change %ebp on entry.
1996-06-18 07:03:44 +00:00
mycroft
f2d34a2c9a Compare device types with strcmp(). Remove special case for `wt'. 1996-06-18 06:10:33 +00:00
mycroft
8a706cd17f Add a ONEDISK option to elide the getc(). 1996-06-18 06:06:38 +00:00
mycroft
0ca0eeec5f Clean up the install target. 1996-06-18 06:05:44 +00:00
mycroft
36720c448c Use the BIOS memory sizes passed in by the boot program, to preserve the BIOS
data area.
1996-06-18 01:53:07 +00:00
cgd
78937ab274 change > to >= in #endif comment, too. 1996-06-04 20:01:58 +00:00
cgd
6110ea9366 #ifdef tty_attach() with PCVT_NETBSD >= 120 (rather than just >),
since tty_attach() is now in the 1.2 release.
1996-06-04 19:53:28 +00:00
cgd
abc294c9d9 don't tty_attach() the mouse emulator tty. 1996-06-04 19:47:51 +00:00
cgd
d4b462666e if PCVT_NETBSD > 120, do tty_attach() calls so that pstat -t will work.
If these changes are pulled up to the 1.2 release branch, they should
be changed so that they are included if PCVT_NETBSD >= 120.
1996-05-31 00:03:59 +00:00
cgd
311886cbbe add call to tty_attach() so pstat -t will work with pccons ttys. 1996-05-30 23:59:11 +00:00
cgd
a6539cd434 add options LKM, INSECURE 1996-05-30 22:36:49 +00:00
cgd
00a630739d don't use pcvt any longer 1996-05-30 22:35:46 +00:00
fvdl
b7a6989848 NetBSD1_1 -> NetBSD1_2, so use it properly (PR 2475) 1996-05-28 12:28:45 +00:00
christos
be8ad0bbb0 Recognize MFII keyboard ids for BIM ThinkPad 76X's. Closes PR/2468 1996-05-25 18:19:07 +00:00
christos
0bc76ac7c3 make this compile again; remove CONF_SLOW_INTERRUPT 1996-05-21 20:46:45 +00:00
mrg
1af2be6068 document PORTAL 1996-05-20 18:15:11 +00:00
thorpej
59865f3154 Remove references to the "ahe" device, and add ahc at eisa. Lingering
junk pointed out by Greg Earle <earle@isolar.Tujunga.CA.US>.
1996-05-20 03:32:16 +00:00
thorpej
4564027c48 Add the DEFEA EISA FDDI controller to the catch-all kernels. 1996-05-20 00:50:33 +00:00
christos
15ac7da805 - remove cpu_exec_aout_prep_oldzmagic and use exec_aout_prep_oldzmagic
- add exec_aout_prep_oldnmagic and exec_aout_prep_oldomagic. Now we support
  all BSDI executable formats.
1996-05-18 15:54:59 +00:00
thorpej
5179f14567 This hasn't been kept up to date. 1996-05-15 23:52:44 +00:00
mycroft
b3d8a261b9 Make imask[] larger, to match other changes. 1996-05-13 06:11:28 +00:00
mycroft
635c72115c Add multiple-inclusion protection. 1996-05-13 01:35:06 +00:00
mycroft
417bb90896 Move spl*() and soft interrupt definitions into intr.h. For now, include it
from psl.h.  XXX Will change after release.
1996-05-13 01:28:01 +00:00
mycroft
db4ceee7f8 Remove the PCVT_SLOW_INTERRUPT option. It is required. 1996-05-12 23:33:32 +00:00
mycroft
f7624a5fd1 Use intr.h. 1996-05-12 23:24:47 +00:00
mycroft
eda98d375d Use intr.h. 1996-05-12 23:11:54 +00:00
mycroft
a8e2ce97e4 Implement IPL_HIGH. 1996-05-12 23:06:06 +00:00
mycroft
9f8f77f8f6 Move IPL_* and IST_* constants into intr.h. 1996-05-12 22:52:23 +00:00
thorpej
645664c6f1 In bus_mem_unmap(), pass kernel_map to kmem_free(), rather than
kmem_map (the VA space is allocated from kernel_map).

In both bus_mem_map() and bus_mem_unmap(), adjust some arithmetic to
avoid wasting a page of VA space per call to bus_mem_map().
1996-05-12 19:02:19 +00:00
thorpej
ea8aad3319 Use <machine/bus.h> ... on the right track to making this an MI driver. 1996-05-12 01:37:02 +00:00
mycroft
540f9550c0 Make `make depend' work for libraries. 1996-05-11 16:11:30 +00:00
jtc
0edf3579f4 Revert last change.
Changing types from unsigned {long,short} to u_int{32,16}_t causes problems
in a lot of userlevel code because those types aren't defined when machine/
endian.h is included.  And IMO including sys/types.h in machine/endian.h
is clearly wrong.

XPG4.2 defines new types in_addr_t and in_port_t for the {h,n}to{n,h}{l,s}
functions.  But we don't have time to figure out the implementation issues
given the current release schedule.
1996-05-08 20:00:38 +00:00
thorpej
3fd8e58e67 Add the DEC DEFPA FDDI interface to the catch-all kernel configs. 1996-05-07 00:59:53 +00:00
thorpej
a331638311 Make the MI LANCE driver standalone, and use cfattach to resolve
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.
1996-05-07 00:58:36 +00:00
christos
cd2b07ab7c We have our own prototype now for fillw() 1996-05-05 22:20:51 +00:00
christos
079631f59d Remove unneeded casts to fillw() since now it takes a void * argument. 1996-05-05 19:48:15 +00:00
christos
db7563a62d Fix gcc -Wall warnings 1996-05-05 19:46:15 +00:00
christos
f8f10e569e Make this compile again.
- use the abs function from libkern
- fix prototypes
1996-05-05 19:31:25 +00:00
christos
59fdcbc7ad Change the prototype of fillw from (int, caddr_t, size_t) to
(short, void *, size_t).
1996-05-05 19:29:26 +00:00
christos
573f5e0cd6 Add the joystick 1996-05-05 19:28:34 +00:00
mycroft
62c8d3c70c Fix obvious bug introduced in last change. 1996-05-05 06:50:02 +00:00
christos
8571e85c28 fix gcc -Wall warnings 1996-05-03 20:16:56 +00:00
christos
3464a4032b Prototype fixes. 1996-05-03 20:11:57 +00:00
christos
5503f7b749 Prototype and gcc -Wall cleanups 1996-05-03 19:41:56 +00:00
christos
ffdbd55cb2 savectx comment about altreturn was not true. 1996-05-03 19:41:19 +00:00
christos
df8b4512f0 cleanup fdopen->Fdopen and prototypes 1996-05-03 19:40:20 +00:00
christos
b927d7be11 Fwd declarations for MD drivers. 1996-05-03 19:34:11 +00:00
christos
8fd0f1f8b3 Add missing prototypes. 1996-05-03 19:26:28 +00:00
christos
391a4ddc7c use u_int32_t instead of unsigned long
and u_int16_t instead of short in the {h,n}to{n,h}{l,s} inline routines
and macros.
1996-05-03 19:25:23 +00:00
christos
0b3580eb25 Comment out unused routines; add prototype for kdb_trap 1996-05-03 19:23:59 +00:00
christos
dc3ce37d53 Add prototypes from other files. 1996-05-03 19:22:49 +00:00
christos
1044435088 Avoid unused variable warnings, by using the first argument to the bus
functions.
1996-05-03 19:22:18 +00:00
christos
f77d0368e6 - add missing prototypes
- add missing braces in array and struct declarations.
- fix gcc warnings.
1996-05-03 19:17:28 +00:00
christos
099b45aa2a - Add missing prototypes.
- Fix gcc warnings
1996-05-03 19:14:50 +00:00
mycroft
7511a5540e Remove BIOSSEG.
Don't mess with the flags when entering a software interrupt.
Use IF, not VIF.
NOTE: These changes break dosemu, but are required for proper emulation.
1996-04-30 10:35:25 +00:00
scottr
5282131d76 Add ie1, appropriate for EtherExpress support 1996-04-25 20:14:13 +00:00
thorpej
09407a4201 Document the VM86 option by adding it to the GENERIC* kernel config
files.  Note, the option is disabled by default (comment out).  This
is meant as an example for others.
1996-04-25 18:59:14 +00:00
mycroft
f1f45fae7c Emulate the INTO instruction. 1996-04-25 13:50:21 +00:00
thorpej
aff40e2a72 Break up the ep driver into isa, eisa, and pci front-ends and a
bus-independent core driver.  Tested on all three bus types, including
an isa 3c509 masquerading as an eisa device (use ep* at eisa? slot ? in
your kernel config file to catch this one).
XXX Driver still needs to be converted to <machine/bus.h>
1996-04-25 02:15:42 +00:00
christos
b8a3e738c6 Make the minimum function signature for this file to compile with the latest
changes to vm_extern.h.
1996-04-25 01:15:41 +00:00
ghudson
585e1044c8 aic0 belongs at IRQ 11 (the card default); the entry was apparently
changed to 12 by mistake when GENERIC was created after NetBSD 1.0.
Change confirmed by Perry and several others.  Fixes PR 1878.
1996-04-21 20:55:25 +00:00
mycroft
901483b57b Sigh. Send a trace trap only if we are still in VM86 mode. 1996-04-18 21:21:11 +00:00
mycroft
15d4e17598 Send a trace trap only if the trace flag is set at the *beginning* of
the emulated instruction.
1996-04-18 20:36:35 +00:00
mycroft
204542255a After an emulated instruction, check the trace flag and force a trace
trap if needed.
1996-04-18 19:58:09 +00:00
mycroft
47bf863ac1 Make some of the flag handling clearer. No functional change. 1996-04-18 10:04:32 +00:00
mycroft
aaed1c2fae Don't bother to enable alignment checking; nobody uses it and it interferes
with VM86 mode.
1996-04-18 09:58:13 +00:00
mycroft
7a8c8f8a5c Turn off the alignment check flag when entering a signal handler. 1996-04-18 08:36:20 +00:00
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
christos
ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
cgd
0926920201 (1) remove the #ifdef i386 from pci.c, and provide a machine-dependent
hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(2) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:59 +00:00
cgd
20af97b2c0 don't pass max device number for a given bus in, use
PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
(defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:28 +00:00
scottr
61927fc337 Fix typo (pointed out by Shinya Taniguchi, PR 2203) 1996-03-12 06:01:16 +00:00
perry
1faa1f926b close prs #2076 and #2159: Install kernels have had DIAGNOSTIC and
KTRACE removed to make them fit on the floppies. All kernels have had
the comment typo "internally consistency" changed to "internal consistency".
1996-03-12 01:32:43 +00:00
cgd
0a6a29c792 update for new commulti->com attach interface. com ports at 'ast'
multiport cards no longer need 'flags 1', because the "don't set IEN"
requirement is communicated by the commulti_attach_args.  com.c no longer
recognizes 'flags 1' at all.
1996-03-10 09:03:13 +00:00
ghudson
4e0c8707f7 To enable people to mount DOS partitions on disks with no NetBSD
partition, add the MBR partitions to the default (faked-up)
disklabel used by NetBSD if it can't find a real one.  If the
type of the MBR partition is one of the common DOS ones, mark the
partition as having an MSDOS filesystem.
1996-03-09 20:52:54 +00:00
cgd
ea21ff117e rather than doing something hairy in the print routine, to the
'logically right' thing: define a mainbus_attach_args union which is
all of the subdevices' bus attach args, together with the part that's
shared by all of them, a const char * (the bus name).
1996-03-08 21:55:47 +00:00
cgd
8d459740a7 kill some 'notyet's so that <machine/bus.h> is used 1996-03-08 20:26:59 +00:00
cgd
91d7642d30 implement bus_mem_map() and bus_mem_unmap() functions. 1996-03-08 20:19:48 +00:00
cgd
0b56afadf3 make this idempotent. bus.h needs to include it, and other things which
may include something that includes bus.h may include it as well.
1996-03-08 20:15:23 +00:00
cgd
6826c7bf48 bus memory and I/O space access functions/macros, to be used by
machine-independent code for more sane access to bus resources.
New functions will be added to this set, in the future, as appropriate,
but this is a good starting set.  Defines:
	bus_{io,mem}_{map,unmap}
	bus_{io,mem}_{read,write}_{1,2,4,8}
functions, and several types to go with them.
1996-03-08 20:11:23 +00:00
mycroft
2732f4510b Rearrange boot() slightly. 1996-03-08 11:40:28 +00:00
mycroft
45ceba49fd Use label_t, not jmp_buf. 1996-03-08 06:49:45 +00:00
mycroft
8dbac07c10 Add a message to help us debug Linux compat. 1996-03-08 06:00:53 +00:00
jtk
7492f0d7f1 speaker takes one port, so declare it as such in isa_attach_args
fixes pr#2178
1996-03-07 00:54:14 +00:00
jtk
ff6687748a speaker device uses a port, so declare it as such in all the config
files
1996-03-07 00:48:34 +00:00
mycroft
0903ac5cd2 Do an async_update() iff the output buffer is empty.
Make the IOPL handling #ifdef COMPAT_1[01].
1996-03-05 12:57:30 +00:00
mycroft
0c231d0e0d Update the CRT start registers asynchronously. 1996-03-05 11:38:31 +00:00
thorpej
85720fdf67 Add a blurb about the EXTMEM_SIZE option to the example kernels, disabled
by default.
1996-03-05 01:32:11 +00:00
thorpej
b65bdb63d6 Add an EXTMEM_SIZE option to set the size of extended memory on systems
that lie about it.  Deals with PRs #1319 and #1831.
1996-03-05 01:28:51 +00:00
thorpej
ae5cde21bd RCS id police. 1996-03-05 00:37:24 +00:00
cgd
c8487c701e reorganize mapping register definitions 1996-03-04 19:30:50 +00:00
cgd
18ec26aa21 add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes.  meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
mycroft
7f1ba9f148 Update for changed DMA interface. 1996-03-04 04:01:03 +00:00
cgd
fedca4f133 Attach isa, eisa, and pci to mainbus now, rather than root. The i386
now has a single device tree (rather than a forest).  Also, attach
EISA only if it's present, and attach in order: PCI, EISA, ISA (most
specific to least specific).
1996-03-04 03:25:48 +00:00
jtk
8c395495bf set ia->ia_iosize to 0 so that the probe code doesn't spit out lots of
gunk.
1996-03-03 04:12:48 +00:00
cgd
1c5d7babe5 Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE. 1996-03-01 23:30:08 +00:00
scottr
9aebe01038 Add newlines to CPU class notices 1996-03-01 21:49:49 +00:00
cgd
3d67685d36 Do not build vnode_if.[ch] for each kernel. Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
1996-02-29 20:54:58 +00:00
cgd
379b6eadf4 pci devices are now specified like "foo* at pci? dev ? function ?". also,
add support for PPB's and secondary PCI busses, where appropriate.
1996-02-28 02:02:29 +00:00
cgd
0bcfb3598b update for adjustments to ISA and PCI 'files' files 1996-02-28 01:58:25 +00:00
cgd
df03361e4b update for new method of attaching isa/pci busses 1996-02-28 01:54:44 +00:00
cgd
591c6fd2cd make PCI bus match/attach and sub-device attachment machine-independent.
(remove that code from this file.)
1996-02-28 01:50:02 +00:00
cgd
f5f5831829 make ISA bus match/attach and sub-device attachment machine-independent.
(remove that code from this file.)
1996-02-28 01:49:35 +00:00
jtc
bfbc5fb90c Copyright assigned to the NetBSD Foundation 1996-02-27 22:39:39 +00:00
jtc
8bd51c47b9 Copyright assigned to the NetBSD Foundation 1996-02-27 22:28:09 +00:00
cgd
e4a3b7650e oops; remove extraneous #if/#endif pair 1996-02-27 00:15:23 +00:00
cgd
570976f77c change previously-useless config_rootfound() for the EISA bus so that
it provides what the new MI EISA code expects.
1996-02-27 00:13:45 +00:00
cgd
188cda224f Trim some comments relating to EISA configuration that are no longer relevant. 1996-02-27 00:08:29 +00:00
cgd
440b3cbc94 update for new EISA autoconfiguration: there can now be an eisa0 at root,
and ahb attaches to eisa, not isa.  Also, ahb* at eisa?... is now supported,
so you can get all ahb's configured easily.
1996-02-27 00:06:42 +00:00
mycroft
2ce52ae489 Define build programs with ?=', so they can be overridden with makeoptions'. 1996-02-26 02:53:20 +00:00
scottr
5be12dbfc8 Move the speaker driver to 'new' config. (Closes PR 1361, from Rafal Boni) 1996-02-22 05:53:16 +00:00
mycroft
2b9c3e10b9 Add SCSI scanner device. 1996-02-18 22:57:54 +00:00
mycroft
f9596bfc43 Use the same timing hacks as in pccons for the keyboard. 1996-02-18 22:49:12 +00:00
mycroft
0e335a2150 Move the DDB initialization later. 1996-02-18 22:44:27 +00:00
mycroft
d1bae2700f Add the obligatory copyright notice. 1996-02-18 13:01:05 +00:00
christos
4d234d08d8 Move pmap_page_index declaration to <vm/pmap.h> 1996-02-12 21:12:29 +00:00
christos
47058c3660 make pmap_page_index() return a signed int. 1996-02-12 21:11:20 +00:00
thorpej
d586688437 In fdcretry(), set the state to DOSEEK rather than SEEKCOMPLETE before
retrying the operation.  Fixes disk_unbusy() imbalance and really seems
like the right thing to do in case it was the seek that failed.  Takes
care of PR #1985.  Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:31:13 +00:00
christos
45aca3f276 fix _insque and _remque declarations 1996-02-10 00:51:52 +00:00
mycroft
45e308cd51 Be more verbose when a CPU class is not configured. 1996-02-09 17:15:27 +00:00
mycroft
db070d4271 Enforce the hierarchy: imp > tty > net > bio, to cater to lame PC devices. 1996-02-09 02:26:00 +00:00
mycroft
753fe3a25a Fix mkdep problems due to missing flags. 1996-02-09 02:21:13 +00:00
jtc
7eb02879b7 Simplify -I's in CFLAGS 1996-02-05 07:42:54 +00:00
christos
684b37e33e vm prototype changes. 1996-02-05 01:59:12 +00:00
mycroft
b6f55847e5 Fix #includes. 1996-02-03 01:05:36 +00:00
mycroft
5bc076e17e Use `-traditional-cpp' when building .s and .S files. 1996-02-03 00:43:50 +00:00
mycroft
dcd66e9f4d Clone these, and fix many bugs. 1996-02-02 20:08:17 +00:00
mycroft
9db20bf150 Don't define _KERNEL here. 1996-02-02 19:42:08 +00:00
mycroft
9d9a70a5a2 Fix #includes. 1996-02-02 18:05:36 +00:00
mycroft
f3bbe0e453 Turn off a few things. 1996-02-02 09:09:39 +00:00
mycroft
fc9d84fb46 assym.s -> assym.h
(Some ports did this already.)
1996-02-02 02:34:09 +00:00
mycroft
88e512b693 LOCORE -> _LOCORE 1996-02-01 22:28:24 +00:00
mycroft
b050cf3d61 Allocate the GDT area in a different way. 1996-01-31 03:13:07 +00:00
scottr
25879b675b Resolve return type conflict for microtime(); closes PR #1835. 1996-01-30 23:15:01 +00:00
mycroft
467bd97c79 Make a small attempt to deal better with VM86 mode in GDB. 1996-01-13 06:14:44 +00:00
thorpej
e422ebca1a Add the "ahe" driver, autoconfiguration support for the aic7xxx-based
Adaptec 2[78]4x SCSI controllers, from Michael Graff <explorer@flame.org>.
Fixes PR #1594 from Noriyuki Soda <soda@sra.co.jp> in a different way.
1996-01-13 02:05:14 +00:00
thorpej
43b4486bb3 Balance calls to disk_busy() and disk_unbusy() properly to avoid
dk_busy < 0 panics.  Count seeks.
1996-01-12 00:19:29 +00:00
mycroft
8ee41dc35a Make sure some registers are accessed in 16-bit mode. 1996-01-08 22:23:35 +00:00
mycroft
d74e9d43ab Also reset %fs and %gs when delivering a signal. 1996-01-08 20:12:20 +00:00
mycroft
47e444bf50 Attempt to deal with wrap-around problems in 16-bit segments. 1996-01-08 19:11:00 +00:00
mycroft
7149c5ff14 VM86 support, by John Kohl, touched up a bit by me. 1996-01-08 13:51:30 +00:00
thorpej
5b39541e48 New generic disk framework. Highlights:
- New metrics handling.  Metrics are now kept in the new
	  `struct disk'.  Busy time is now stored as a timeval, and
	  transfer count in bytes.

	- Storage for disklabels is now dynamically allocated, so that
	  the size of the disk structure is not machine-dependent.

	- Several new functions for attaching and detaching disks, and
	  handling metrics calculation.

Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.

For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
mycroft
87a8c945ba Hand-code softintr() to deal with GCC braindamage. 1996-01-07 21:48:35 +00:00
mycroft
ba1353b388 Stylistic changes. 1996-01-07 21:29:47 +00:00
mycroft
0696821419 Deal with GCC's dead code elimination being suboptimal. 1996-01-07 03:59:28 +00:00
mycroft
41f463bf2c Modify splraise() to allow better optimization. 1996-01-07 02:40:44 +00:00
mycroft
946507cf4d Make cpl, ipending, and astpending volatile. 1996-01-07 02:08:28 +00:00
mycroft
3afeb8d6b0 Make sure interrupts are disabled before jumping to a resume point, to prevent
races.
1996-01-07 02:07:07 +00:00
mycroft
f149f4f6f1 Make FPU faults use INTRFASTEXIT, and remove INTREXIT. 1996-01-07 02:04:31 +00:00
mycroft
9e6f4ae58a Remove unused macros. 1996-01-07 02:03:20 +00:00
mycroft
19914b6e10 Build the frame for recursive interrupts manually, and make sure to disable
interrupts to avoid races.
1996-01-07 02:02:28 +00:00
mycroft
7f6d0eaf9b Put #includes in the right order. 1996-01-07 02:00:31 +00:00
mycroft
96e91cd027 Don't save caller-saved registers. 1996-01-06 22:15:29 +00:00
jtc
2fce159ff8 Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
traditional usage.
1996-01-04 22:21:33 +00:00
thorpej
17eb6e2bc1 Move the old-style disk instrumentation "structures" to a central location
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
1995-12-28 19:16:31 +00:00
perry
74e1e47aeb fixed my own pr 1758 -- the floppy drive motor was not being turned off
at halt time, especially if a floppy was mounted. Added a shutdown hook
to turn off the motor. Per a request by mycroft, the cookie from the hook
is saved in a new member I added to the fd_softc structure.
1995-12-28 15:48:57 +00:00
mycroft
883fb8f0ca Copy md_flags during fork. 1995-12-26 16:59:47 +00:00
mycroft
cd8fe86bcb Make the type of __builtin_va_list a long. 1995-12-26 01:16:24 +00:00
mycroft
0c00214737 Use __builtin_va_alist. 1995-12-26 00:19:09 +00:00
mycroft
fa887628d8 Stylistic changes. 1995-12-25 23:15:31 +00:00
mycroft
d1de691efb Stylistic changes. 1995-12-25 22:22:02 +00:00
mycroft
0199e002ad Update for GCC 2.7, and fix bugs. 1995-12-25 21:41:08 +00:00
neil
c93761e267 Added ccd pseudo device. 1995-12-24 18:00:29 +00:00
mycroft
3da4b2a160 The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
mycroft
1ca89b7f91 Enable paging of the user area. 1995-12-24 01:07:32 +00:00
neil
6d9d4bb77a Added ccd pseudo-device. 1995-12-24 00:22:20 +00:00
perry
765bb97fe9 fix my own pr 1762, in which it was noted that boot2 used a busy loop
to time out the boot prompt.  Now uses a usleep() routine that calls
the BIOS and the functionality is separate from gets(). Timeout is
#defined to 5 seconds. Also did some minor cleanup in preparation to
prototype/ANSIfy everything.
1995-12-23 17:21:23 +00:00
mycroft
d2e4a2de4b Minor cleanup. 1995-12-21 01:08:59 +00:00
mycroft
6698d239ca Use the U suffix to insure unsigned values are treated as such. 1995-12-20 23:30:57 +00:00
mycroft
e28d5e9168 Use #pragma only for 2.0 <= GCC < 2.7. 1995-12-20 18:09:24 +00:00
mycroft
e09cc4cf9d Use alternate structure packing method added in GCC 2.7. 1995-12-20 17:58:55 +00:00
mycroft
dab27d0c21 Use explicit integer sizes. Adjust constraints for GCC 2.7.2. 1995-12-20 07:53:09 +00:00
ghudson
132f58bfc5 Call doshutdownhooks() before asking for a halt keypress. 1995-12-14 18:31:20 +00:00
tls
9ddf72180a add 3C590 support to all generic and install kernels 1995-12-14 01:09:59 +00:00
cgd
0585b39d85 use pcvt, with PCVT_NSCREENS=1 and PCVT_24LINESDEF. 1995-12-12 01:52:39 +00:00
mycroft
3a0fa6f8ee NISA --> NISADMA, per Neil McRae. 1995-12-09 07:39:02 +00:00
mycroft
498f9ca1e7 Include /dev/io as one of the `kmem' devices. 1995-12-09 05:53:00 +00:00
mycroft
76813521bb Return 0 in the child, not the parent pid. 1995-12-09 05:00:27 +00:00
mycroft
0e0ac5ed68 cpu_fork() now returns void. 1995-12-09 04:37:23 +00:00
jtc
0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
mycroft
e2baea19f3 Make sure vt_coldinit() is called before vt_coldmalloc(). 1995-11-26 21:01:16 +00:00
jtc
ce0b404f4e fixup copyright notice before the release 1995-11-17 06:47:27 +00:00
cgd
e9ef628234 don't link against libkern, so that boot blocks will work properly.
(pulled down from 1.1 release branch.)
1995-11-16 22:38:16 +00:00
christos
c0aaa86553 Add a config line for 3c590 ethernet cards 1995-11-10 19:34:54 +00:00
fvdl
051bb183e3 Same as in 1.1 branch. 1995-11-09 08:40:51 +00:00
hpeyerl
5d67fa8cb9 Taking out the trash. 1995-10-31 18:03:39 +00:00
tls
20fd1b6a7f Start to sort out install kernel size and bt/aha issues. Will be revised. 1995-10-28 04:06:21 +00:00
tls
488b27678f The INSTALL kernel is broken and will be replaced by split INSTALLAHA/INSTALLBT. 1995-10-28 03:55:10 +00:00
mycroft
baf5b9b139 Fix oversight in last change; some BIOSes leave junk in %fs and %gs that must
be cleared.  Pointed by Alasdair Baird.
1995-10-24 16:27:54 +00:00
jtc
1fa962ddd0 netbsd.warped.com aka. {ftp,sup}.netbsd.org 1995-10-20 21:24:37 +00:00
mycroft
61d3ef1018 Fix small oversight. 1995-10-15 22:09:45 +00:00
mycroft
c3779c515d Fix typos. 1995-10-15 05:58:44 +00:00
mycroft
5a227363fd Fix problem reported by r_friedl@informatik.uni-kl.de; when LDT is resized,
the wrong amount of memory is freed.
1995-10-15 05:48:08 +00:00
mycroft
e964003409 Rename some variables for consistency. 1995-10-15 05:43:49 +00:00
mycroft
e8011301bf Style police. 1995-10-15 04:18:27 +00:00
fvdl
6ce6eef6d8 child_return broke Linux fork() 1995-10-14 14:06:16 +00:00
mycroft
086845d5d3 Move the initialization of proc0's TSS and LDT to the end of cpu_startup(),
and switch to dynamically allocating the TSS.
1995-10-12 17:56:36 +00:00
mycroft
50f83bdbdf Maintain a free list. 1995-10-11 23:39:08 +00:00
mycroft
2765bc7b44 Go back to statically allocating the GDT entries for proc0. 1995-10-11 19:32:31 +00:00
mycroft
059cb84d53 Fix typo. Also, remove diagnostic in svr4_sys_sysarch(). 1995-10-11 17:04:11 +00:00
mycroft
ddbde6d166 Remove reference to dead variable. 1995-10-11 06:24:28 +00:00
mycroft
72805df917 Various changes from John Kohl and me:
Map kernel stacks only at unique addresses.
Use one TSS per process.
Add sysarch calls for modifying IOPL and the I/O permission bitmap.
Add a compacting GDT entry allocator, for TSS and LDT selectors.
Enable modifying %fs and %gs with PT_SETREGS.
Sanitize various bits of code.
1995-10-11 04:19:29 +00:00
mycroft
28484180c7 Fix minor oversight. 1995-10-10 18:27:25 +00:00
mycroft
eb44441b87 Pull in microcode dependencies. Remove -fno-builtin. 1995-10-10 05:58:00 +00:00
mycroft
5d9ff18d18 Switch to user code and data selectors in the GDT while handling signals. 1995-10-10 04:54:18 +00:00
mycroft
25f53a986f Add USERMODE() and KERNELMODE() macros, and use them. 1995-10-10 04:45:03 +00:00
mycroft
4fd4545646 Fix #include misordering. 1995-10-10 01:40:13 +00:00
mycroft
37758b3f84 Minor change. 1995-10-10 01:30:25 +00:00
mycroft
090f48526e Add ahc and COMPAT_FREEBSD. 1995-10-10 01:29:15 +00:00
mycroft
2dd293d3c3 Add hooks for COMPAT_FREEBSD, from Noriyuki Soda. 1995-10-10 01:26:36 +00:00
mycroft
0ad97bc5c9 FreeBSD binary compatibility module, from Noriyuki Soda. 1995-10-10 01:22:31 +00:00
mycroft
8096b83664 Eliminate soft segment descriptors; instead use a functional interface for
creating segment descriptors.  Add the duplicate system call gate used by
BSD/OS 2.0 executables.  Prototype setsegment() and setgate(), and fix a bogon
caught by this.
1995-10-09 06:34:11 +00:00
thorpej
28b46fc9ec Update vtrace() for prototype changes and renaming changes. 1995-10-09 04:00:24 +00:00
fvdl
81d650570f Implement the KDGKBMODE ioctl for Linux (possible with pcvt 3.32). 1995-10-08 22:45:20 +00:00
jtc
9ba33c87cc Update makefile to handle the fact that keycap.5 was moved out of man5
into this directory.
1995-10-08 21:59:43 +00:00
jtc
df99cef0ac Patch from Frank van der Linden to allow kernels with pcvt but without
XCONSOLE to compile.  I've been told that this patch has been sent to
Helmuth.
1995-10-08 21:57:39 +00:00
jtc
95f29581c3 Remove files that have been removed from or renamed in the current pcvt sources 1995-10-07 23:25:09 +00:00
jtc
be0a951c76 Update our Makefile.inc.
Remove various OS-specific Makefile.inc templates.
1995-10-07 21:51:42 +00:00
jtc
d9789d4225 Overlay our pcvt with pcvt 3.32 sources. All of our fixes have been
incorporated into the master sources, so it is unnecessary to resolve
all the conflicts that would occur if we let CVS "merge" the versions.
1995-10-07 21:43:25 +00:00
jtc
68b7d2aca6 import pcvt 3.32 1995-10-07 21:11:27 +00:00
jtc
652374b8ca import pcvt 3.32 1995-10-07 21:10:55 +00:00
jtc
81c0777f62 import pcvt 3.32 1995-10-07 21:09:43 +00:00
mycroft
245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00
mycroft
037949ced9 Undo accidential deletions in last commit. 1995-10-06 07:12:42 +00:00
mycroft
f2d15e5b48 Remove unneeded input operands to fnsave(), fnstcw(), and fnstsw(). 1995-10-05 23:06:15 +00:00
mycroft
45dc3570ec Use ISA_IPL_TTY, to fix race conditions. 1995-10-05 22:06:47 +00:00
mycroft
ec30c873ea Switch the AUX_ENABLE and AUX_DISABLE flags, per Mathias Engan. 1995-10-05 14:12:21 +00:00
mycroft
4a17d4a861 Undo accidental deletions in last commit. 1995-10-03 20:18:58 +00:00
thorpej
bca85a86b1 Compile the kernel with -fno-builtin. 1995-09-19 23:25:29 +00:00
thorpej
7d7396c414 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 22:53:47 +00:00
jtc
864f186a4e Use MAN instead of MAN8 (although it doesn't matter here because vgaio
is neither built nor installed).
1995-09-16 15:52:38 +00:00
jtc
6e9c7ee5a8 Use MAN instead of MAN3 and MAN5 1995-09-16 15:49:40 +00:00
jtc
ee21163cab moved up one level in directory structure 1995-09-16 15:47:27 +00:00
hpeyerl
8acf48ade5 update comment to include Etherexpress. 1995-09-14 12:46:42 +00:00