Commit Graph

10733 Commits

Author SHA1 Message Date
jonathan 23e6b87149 Replace the following header files from src/sys/arch/pmax/include/
with versions that  include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).

 [bsd-aout.h elf.h endian.h exec.h float.h ieeefp.h limit.h pcb.h proc.h]
 [profile.h reg.h regdef.h setjmp.h stdarg.h vmparam.h]

plus  (missed one:)
ecoff.h
1996-03-19 03:06:27 +00:00
jonathan 234b085111 Replace the following header files from src/sys/arch/pmax/include/
with versions that  include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).

bsd-aout.h elf.h endian.h exec.h float.h ieeefp.h limit.h pcb.h proc.h
profile.h reg.h regdef.h setjmp.h stdarg.h vmparam.h
1996-03-19 03:06:27 +00:00
mycroft e819063285 Define a full set of [234][bl]tol() and lto[234][bl]() conversion functions,
inlined.
Use sized types in protocol structures.
Make the definition of scsi_sense_data less ugly.
1996-03-19 03:05:15 +00:00
jonathan dcb272ef6e Remove pmax-specific CLK_TICK to prepare for moving to sys/arch/mips. 1996-03-19 02:45:48 +00:00
jonathan b495cef581 Add additional mips CPU and FPU ids from Pica port:
IDT r3081 family, r4600, MIPS-IV architecture, others.
1996-03-19 02:42:28 +00:00
jonathan 1cc17fc971 Change "pmax" -> "mips" before moving to sys/arch/mips/include. 1996-03-19 02:12:05 +00:00
paulus fa78064f7c Make inclusion of the PPP BSD-Compress and Deflate compressors
dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration
options, respectively.
1996-03-19 01:00:49 +00:00
gwr 79eb9fbf61 Deal with devices that are slow to get off the bus. 1996-03-18 23:09:02 +00:00
fvdl 6c53a8d22f Remove previously introduced bug: always make sure mappings of a removed
file don't stick around.
1996-03-18 23:06:08 +00:00
gwr 4e6633ab9a Fix two bugs pointed out by Leo Weppelman:
(1) Did not initialize cs->cs_rr0 anywhere
(2) Have to read rr1 before the data it applies to
1996-03-18 23:06:02 +00:00
jonathan c29eb3ea76 NetBSD's ieee FP definitions for the pmax are valid for other mips cpus;
change preprocessor XXX_PMAX_YYY #defines to XXX_MIPS_YYY.
1996-03-18 22:40:21 +00:00
christos 3c3a955cf2 Avoid unused label warning. 1996-03-18 21:48:19 +00:00
mark 11e435f55e Declaration of Debugger() now matches the prototype in systm.h 1996-03-18 21:33:05 +00:00
mark 8ac78e8698 RCS Id police. 1996-03-18 21:23:09 +00:00
leo 39a234873d Build the 'stand' directory. 1996-03-18 21:08:36 +00:00
leo d36f15a208 Take care of the case that <start_of_video> < <memtop> 1996-03-18 21:06:19 +00:00
mark 4973a32e6d RCS Id police. 1996-03-18 19:54:53 +00:00
mark 3689687703 RCS Id police. 1996-03-18 19:33:04 +00:00
ragge 8fa15eb73f Ubareset are now possible, devices that wants it now set it up
during autoconfig. ifubareset (if_reset) no longer used, actually
it's just a normal ubareset and is now handled like that.
1996-03-18 16:47:24 +00:00
hpeyerl 9785218963 Fix for NEC D3847 1.6gB drive which reported itself at lun[1-7]. 1996-03-18 16:19:58 +00:00
cgd b55176ea0c since this driver tries to block its interrupt with spltty(), it must
attach that interrupt with IPL_TTY.
1996-03-18 09:14:32 +00:00
scottr 2d7b856ea6 Update to NetBSD 1.1B struct cfdriver naming conventions. 1996-03-18 06:52:54 +00:00
mhitch d2ac60afc0 A couple more misses from the device attachment changes:
afcd_cd --> afsc_cd
atzsccd --> atzsc_cd
1996-03-18 04:58:36 +00:00
jonathan 69f4059642 Change kn01 (pmax,3100) interrupt-enable signature to match
the NetBSD-1.1 convention.  Change the mainbus `struct confargs'
and the "generic" interrupt-establish method, used by devices that
appear on both a kn01 and TC decstations, to match.

Change the macros in autconf.h accordingly.
1996-03-18 01:47:06 +00:00
jtk 5e4b11dfc1 updated spkr attachment to use new pckbd attribute 1996-03-18 01:46:23 +00:00
jonathan 5bccfd6764 Additional fixes to complete the NetBSD/1.1B config changes:
Add new device-attach struct cfattach asc_ca and struct cfdriver asc_cd.
Change cfdriver references from "XXXcd"  to "XXX_cd".
1996-03-18 01:39:47 +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
jonathan 2d2bc47dae Additional fixes to complete the NetBSD/1.1B config changes:
Add new device-attach struct cfattach le_tc_ca and struct cfdriver le_cd.
Change IOASIC cfdriver references  from "ioasiccd" to "ioasic_cd".
Change  "mainbuscd" to "mainbus_cd"
1996-03-18 01:22:27 +00:00
ragge 6275c70064 Convert all devices according to the changes to config. 1996-03-17 22:56:15 +00:00
ragge dfaa8f2e96 Update from Ken Wellsch: The DHU driver can now handle DMA transfers. 1996-03-17 22:51:48 +00:00
ragge 3b5cb56887 Do not have debugging enabled by default. 1996-03-17 22:49:55 +00:00
ragge b7cf2432a0 Fix type clashes. 1996-03-17 22:44:48 +00:00
jonathan f7af868d1f Additional fixes to complete the NetBSD/1.1B config changes:
change IOASIC cfdriver references  from "ioasiccd" to "ioasic_cd"
1996-03-17 22:20:08 +00:00
jonathan 077638548b Additional fixes to complete the NetBSD/1.1B config changes:
update the old-config to new-config glue used with the 4.4bsd/pmax
SCSI drivers to use new device attach declarations and names for
the "oldscsibus", "tz" and "rz" drivers.
1996-03-17 22:14:21 +00:00
jonathan ffd8d4cdc7 Additional fixes to complete the NetBSD/1.1B config changes:
Update the kn01 (3100 aka pmax) interrupt handler to use XXX_cd instead
of XXXcd.
1996-03-17 22:12:13 +00:00
jonathan 3175cdba0b Additional fixes to complete the NetBSD/1.1B config changes:
change tc_submatch() to compile with the new device-attach scheme:
the TC bus uses a 'submatch' function which checks device locators
and then calls a match function.
Instead of calling cf->cf_driver->cd_match(), we now need to call
cf->cf_attach->ca_match().
1996-03-17 22:09:17 +00:00
jonathan cdf4e87e7a Additional fixes to complete the NetBSD/1.1B config changes:
add missing structure name in the definition of `struct cfattach sfb_ca'.
1996-03-17 22:02:59 +00:00
christos 4d4d2d999a Remove 'volatile' from the romhalt and romboot routines, and local prototype
declarations.
1996-03-17 21:40:11 +00:00
jonathan d1c70894b8 Additional fixes to complete the NetBSD/1.1B config changes:
Rename the extern declaration of `tccd' and `ioasiccd' in
src/sys/dev/tc/{tvar.h,ioasicvar.h", respectively, to be
`tc_cd' and `ioasic_cd', to match the 1.1B-style definitions.
1996-03-17 21:37:45 +00:00
is ecc1ccd3cd These should be and clauses, after cgd's recent config change (the second
one). Should probably also be done to the view packet, but I'm not 100% sure.
1996-03-17 19:36:33 +00:00
cgd b5c1728e22 clean up <machine/bus.h> changes a bit; no real functional change.
prototype lpt_port_test().
1996-03-17 13:40:29 +00:00
cgd 179f65d15e Add #ifdef's at the right places, on NCOM_ISA and NCOM_COMMULTI, to
only include the relevant code in the probe & attach functions.  Still
one probe and one attach function, with #ifdefs, but this is a step
in the right direction and saves a few hundred bytes (ooh, ahh!).
1996-03-17 13:38:14 +00:00
cgd 94907fa254 adjust to deal with expression support for optional file specs 1996-03-17 13:21:09 +00:00
cgd 9d4db41a9f change the name of com's attachment to commulti, and provide flags
for that and the isa attachment in com.h (in addition to the flag for
the presence of 'com' itself).
1996-03-17 07:30:25 +00:00
cgd 1f7332bada fix typo in recent attachment changes: (interface) attributes for asc
specified twice.
1996-03-17 06:09:10 +00:00
cgd 0cfd94f31d fix typos in recent attachment changes. 1996-03-17 06:08:12 +00:00
mhitch b00a2c1e30 Clean up typos and other errors from new device attachment changes. 1996-03-17 05:53:57 +00:00
pk 59ff996be6 Avoid "unused variable" warning. 1996-03-17 03:19:34 +00:00
pk bf834e7def Remove extraneous argument from sysctl_doprof().
Fix a printf format.
1996-03-17 02:44:40 +00:00
pk ac377e301d Prototype kmstartup() 1996-03-17 02:43:09 +00:00
pk c4b6757f2c Prototype sysctl_doprof() 1996-03-17 02:42:48 +00:00
christos 3fac949f8f Fix printf format strings. 1996-03-17 02:38:20 +00:00
christos 48fda0b4ca Fix printf format strings 1996-03-17 02:16:18 +00:00
pk 12bcc82160 Parentheses are your friends. 1996-03-17 02:06:50 +00:00
thorpej 3cd14f7597 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 02:00:30 +00:00
cgd 4835a9fbc1 spacing nit 1996-03-17 01:47:52 +00:00
thorpej 77abd102b7 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:38:52 +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 5c67e5fad9 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:16:48 +00:00
thorpej 08607bc611 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:03:02 +00:00
thorpej f6592a33d9 NetBSD1_1 -> 3 (corresponds to 1.1B) 1996-03-17 01:02:29 +00:00
thorpej 7f80deb0ad Bump version to NetBSD 1.1B. 1996-03-17 01:01:45 +00:00
thorpej 532e997971 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 00:57:14 +00:00
mrg 4fe3a900f3 comment: LEAPYEAR is not entirely correct 1996-03-17 00:56:24 +00:00
thorpej de7c200585 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 00:53:54 +00:00
thorpej 6d9ea4cf59 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 00:43:52 +00:00
cgd 9f762df4e4 clean up a comment, delete unnecessary local variable in probe 1996-03-17 00:26:12 +00:00
cgd 2355d951e4 update for changes eisadevs contents 1996-03-17 00:18:59 +00:00
cgd 6dcbcf9649 clean up descriptions a bit 1996-03-17 00:18:46 +00:00
cgd afb1eb7adc update for changes eisadevs contents 1996-03-17 00:15:08 +00:00
cgd 97dc4ccd6c add entries for the AMI 4801 SCSI controller, and add product numbers/names
for the BusLogic 74x[BC] SCSI controllers.
1996-03-17 00:13:56 +00:00
christos d06f8ad7c8 #if 0 unused string 1996-03-16 23:55:40 +00:00
christos 0706109fa5 - fix misparenthesized ((a&(B|C) == 0))
- fix printf format arguments
1996-03-16 23:55:36 +00:00
christos 2769793c13 Fix printf format args. 1996-03-16 23:53:58 +00:00
christos da749d6e09 Fix printf format follies. 1996-03-16 23:52:42 +00:00
christos 5b2bf5a548 add rom routines declarations 1996-03-16 23:51:44 +00:00
christos 64356e6df3 fix printf format strings 1996-03-16 23:31:45 +00:00
christos dafa7f2c60 fix format strings. move rom routine decls in bsd_openprom.h 1996-03-16 23:31:42 +00:00
christos ed2239daea Fix format strings in panic() 1996-03-16 23:31:40 +00:00
christos 0c4805af23 Fix typo in fsrtoname() use && as intended instead of & 1996-03-16 23:31:36 +00:00
christos 4b636d71eb cast argument to probeget() 1996-03-16 23:28:37 +00:00
christos 2cb7b87853 fix formats in printf() and panic() 1996-03-16 23:28:35 +00:00
christos 5c32202b7e fix format in printf() 1996-03-16 23:28:33 +00:00
christos fe4bb997c9 fix format in panic() 1996-03-16 23:28:30 +00:00
christos 09ff5d56a7 fix format in printf() 1996-03-16 23:28:28 +00:00
christos aab8906300 fix format in log() 1996-03-16 23:28:27 +00:00
christos f2b8b6e73e include <sys/systm.h> 1996-03-16 23:28:25 +00:00
christos 02bcb06a88 This could have never worked (fb in attach was never initialized); include <sys/systm.h> 1996-03-16 23:28:23 +00:00
christos ed8966b2ea svr4_sigfillset should be void 1996-03-16 23:20:30 +00:00
christos bca6f430a9 Make operator precedence explicit by parethesizing. 1996-03-16 23:19:14 +00:00
christos d2e6849829 fix printf() formats 1996-03-16 23:19:08 +00:00
christos c9e746a335 Fix printf() formats. 1996-03-16 23:17:04 +00:00
christos 3cc52443b5 Fix vm_offset_t (unsigned long) and vm_size_t (unsigned long) printf arguments
to %lx and %ld instead of %x and %d.
1996-03-16 23:15:18 +00:00
christos 95b6e29e65 Fix a gazillion incorrect printf usages. 1996-03-16 23:13:45 +00:00
christos dc728a246f The return attribute 'volatile' to indicate functions that do not
return does not work anymore under gcc-2.7.2. Change such functions
to use __attribute__((__noreturn__)). In addition add appropriate
__attribute__ adornments to printf like functions... This generated
another barrage of compiler warnings in printf bugs that I will
promptly fix.
1996-03-16 23:12:11 +00:00
ws abee4409dd Correct evaluation of assoc introduced on ansification
Correct some function parameters (in #ifdef'ed out code)
Correct references to ufs in messages and comments
some formatting changes
1996-03-16 20:25:40 +00:00
mhitch ae815da330 change Debugger() from an int function to a void function to match the
prototype in sys/systm.h.
1996-03-16 18:45:44 +00:00
jtk bfb3af2fb3 fix typo: "#eandif" should be "#endif" 1996-03-16 18:14:23 +00:00
ragge f9ee92c45a Support installation of /usr/mdec files. 1996-03-16 11:03:11 +00:00
ragge 33aad32f37 Accept adapter numbering in boot. 1996-03-16 11:02:28 +00:00
mhitch a5c0ced572 Removed Debugger() declaration - the prototype is in sys/systm.h. 1996-03-16 08:19:43 +00:00
cgd 88b335392c rename asic_addr and nic_addr to asic_base and nic_base, in softc, as
they're base I/O ports, not really addresses.  rather than using those
softc fields directly, assign local variables (asicbase, nicbase) to have
their values, and use those.  (consistency, plus better optimization
potential in some cases.)
1996-03-16 07:24:15 +00:00
cgd 87abc9cdc7 Move contents of edprobe() into ed_find() -- they'll be used by edattach()
eventually.  rename the probe functions for the various boards to 'find' for
consistency/correctness (but the generic8390 check is still a 'probe').
Add protos for ed_find(), ed_probe_generic8390(), ed_find_WD80x3(),
ed_find_3Com(), and ed_find_Novell().  Fix one minor space nit.
1996-03-16 06:41:20 +00:00
cgd 4beac8eab6 convert NIC_GET and NIC_PUT to take NIC base port address, rather than softc. 1996-03-16 06:18:39 +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
thorpej 4a43a35b99 Bump two values:
NetBSD -> 199603
	NetBSD1_1 -> 2 (corresponds to 1.1A)
The latter should have been done a while ago.  Expect this to change again
within the next couple of days.
1996-03-16 05:35:45 +00:00
cgd f3bac4c1fb print out hardware type, and print firmware version more precisely.
Information about structures & commands to do this gleaned from
the FreeBSD bt driver.
1996-03-16 05:33:28 +00:00
cgd c3361cbc2c prototype bt_cmd(), using varargs/stdarg (ooh, ahh!). Fix up resulting
pointer warnings.
1996-03-16 04:37:40 +00:00
jtk 8b3873367f add MediaVision Jazz16 chipset support. It must be configured with
'flags 1' on the sb? kernel configuration file line (because it frobs a
noncontiguous IO port to configure the Jazz16 extensions).

Also, remove static sb_device structure and fill in user's buffer on
each request.
1996-03-16 04:00:09 +00:00
cgd 76f1f884eb convert to not assume existence of softc at probe time. 1996-03-16 03:20:25 +00:00
cgd 8b404fdede A foolish consistency... General cleanup: get rid of spaces and tabs at
ends of lines, turn aligned blocks of eight spaces into tabs, name all
softc elements with the "sc_" prefix, and call the softc by the commonly
used name, "sc", when passing it around.
1996-03-16 02:54:27 +00:00
cgd 6668fa09a3 Change register definitions to be offset from the I/O base, rather than
complete I/O addresses.  Access ports via "iobase + REGISTER."
1996-03-16 02:02:54 +00:00
cgd 2b96f0705b delete unused cruft (the 'software conventions' chunk). 1996-03-16 02:00:43 +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
thorpej 58a3d4e742 RCS id police. 1996-03-16 00:17:52 +00:00
thorpej 0bbcd292a1 RCS id police. 1996-03-16 00:07:07 +00:00
mhitch 48118d719d Correct 53c710 initialization for the A4000T. Remove the A4000T probe
debugging output.
1996-03-15 22:11:09 +00:00
is 1c6c1c4af9 If compiling with "options M68060", tell compiler not to use
instructions which have to be emulated by the operating system on that
chip.  This code will still run on M68020, M68030 and M68040, but
might be a bit slower on those chips.
1996-03-15 20:09:52 +00:00
jtc 62cf945e80 Changed to conform to XPG4.2 when _XOPEN_SOURCE is defined.
Added some additional SysV compatible types as an extension.
1996-03-15 19:54:53 +00:00
is ed24bc5ba8 AMIGA_68060 flag in cpu.h and genassym.c. 1996-03-15 19:47:45 +00:00
mycroft 6b1f642521 Calculate the equivalent of `SHIFT_HZ' at run time, in initclocks(). 1996-03-15 07:56:00 +00:00
paulus ded34522e2 Now need bpfilter for ppp, since it does packet filtering.
Add files for PPP-Deflate packet compression support.
1996-03-15 02:43:53 +00:00
paulus 6654fd558b Added packet filtering, support for "PPP Deflate" packet compression,
trivial multicast support, and support for xon/xoff output flow
control to the PPP subsystem.  Fixed several bugs, including making
the accumulation and resetting of statistics more consistent.  State
for the VJ compressor is now dynamically allocated.
1996-03-15 02:28:00 +00:00
cgd 1b7b5cb771 support nested #if/#else/#endif sets, to allow ULTRIX compat code to handle
Mips ULTRIX and VAX ULTRIX from the same syscall table.
1996-03-15 01:25:12 +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 6d492269e0 Add -Wall -Wstrict-prototypes -Wmissing-prototypes
to the kernel build. The sparc is clean now!
1996-03-15 00:02:28 +00:00
christos 9af46afa21 Fix prototypes for the latest kpc changes. 1996-03-15 00:01:21 +00:00
christos 9673aca601 Fix prototypes that were added with the latest kpc changes. 1996-03-15 00:00:39 +00:00
mark 6cb2a43b5e RCS Id police. 1996-03-14 23:10:59 +00:00
christos 99fff354c6 fdopen -> filedescopen 1996-03-14 22:18:02 +00:00
leo 55b65fb49a Switch to the mi ramdisk driver. 1996-03-14 21:41:04 +00:00
christos 25b31cbc91 fdopen -> filedescopen 1996-03-14 21:31:56 +00:00
christos ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
christos 9c75606e8c Add prototypes and fix bugs:
- softclock was called with extra argument.
    - missing %x formats in printf's
    - kgdb_copy called with only two arguments.

Fix conf.c so that it used the _conf.h files from other places instead of
rolling its own.
1996-03-14 21:08:50 +00:00
christos 9a07d9dec9 Add missing prototypes and fix the fp struct for svr4. 1996-03-14 19:49:04 +00:00
christos 03b701e393 Bring prototypes into scope and fix compiler warnings. 1996-03-14 19:44:30 +00:00
christos ab59f984ab Add and bring prototypes into scope. 1996-03-14 19:41:49 +00:00
christos fc8b478bdd Bring prototypes into scope and fix compiler warnings. 1996-03-14 19:33:44 +00:00
christos 6cbf515e30 Fix compiler warnings 1996-03-14 19:31:45 +00:00
christos 79344ff371 - add svr4_conf.h
- add window size ioctls
1996-03-14 19:29:11 +00:00
christos e023a87a11 Bring prototypes into scope. 1996-03-14 19:05:07 +00:00
christos 357fb0e430 - add and fix prototypes and warnings.
- remove nested comment in header file.
1996-03-14 19:02:30 +00:00
christos e79beaff89 - fdopen -> filedescopen
- bring kgdb prototype in scope.
1996-03-14 19:01:08 +00:00
christos 84cc73f734 filedesc.h, proc.h: Rename fdopen() to filedescopen() so that it does not
conflict with the floppy driver.
conf.h: Protect against multiple inclusions. The reason will become apparent
	soon.
systm.h: Bring Debugger() prototype into scope.
1996-03-14 18:59:07 +00:00
christos fb901eb966 - Add missing prototypes
- Bring prototypes into scope
- Correct prototype for skpc
1996-03-14 18:52:03 +00:00
christos 835271da20 Make cons_rtrequest return void because the only place it is used
is through the ifa_rtrequest method. Unfortunately the net code
does not seem to care if that operation succeeds or fails. Maybe
it should...
1996-03-14 18:47:52 +00:00
christos acdfea75a0 ns_cksum.c: Bring prototype into scope.
ns_var.c: Add forward declaration for struct sockaddr;
1996-03-14 18:44:41 +00:00
scottr 2a5cf25e29 Back out previous change; kernel longjmp() has 1 arg. 1996-03-14 16:42:44 +00:00
scottr 24dcca72bd Optimize user-side TLB invalidation when !defined(M68020). 1996-03-14 05:50:06 +00:00
cgd d5d2502bcb fix types on a bunch of variables (were u_long's, now are U_INT32s or ncrcmds,
and a few other fixes).  print pointers with %p, rather than casting to
(unsigned), which breaks on the Alpha.
1996-03-14 05:21:20 +00:00
cgd ba6d1cb2dd These devices don't actually need softc's that are supersets of 'struct
device.'  No point in adding that complexity + space if they're not needed,
so axe them.
1996-03-14 04:02:58 +00:00
cgd 005569a6b3 include pcireg before pcivar.h 1996-03-14 03:04:17 +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
cgd 7fda077700 (1) provide #defines for cf_loc[] entries for devices that attach to
pcibus and pci.
(2) 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)
(3) 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:35:32 +00:00
cgd 68b00a8e52 RCS Id police 1996-03-14 02:30:30 +00:00
pk 485ccae478 Insert child_return() for the benefit of child return path from cpu_fork(). 1996-03-14 00:55:59 +00:00
pk 0b1cba4b0b Implement cpu_set_kpc() and use its machinery to by-pass a child out
of the kernel from cpu_fork().
1996-03-14 00:54:34 +00:00
pk d48d8e1512 Install machinery for cpu_set_kpc(). 1996-03-14 00:54:06 +00:00
pk 808df5543f Remove cpu_set_init_frame(). 1996-03-14 00:49:20 +00:00
pk 894fde6bdd Remove __FORK_BRAINDAMAGE. 1996-03-14 00:48:30 +00:00
pk dc3c7fb2ba Actually enter executables where promised... 1996-03-14 00:11:29 +00:00
scottr 4d30db274f Back out previous change. 1996-03-13 23:42:45 +00:00
mark 46e6b251f1 Raise the spl level while modifing the keyboard autorepeat and delay
rates.
Added missing = to test for alphabetic characters so that caps lock
applies to Z as well as A-Y.
1996-03-13 21:51:32 +00:00
mark a2ff705689 Added code to handle indents in monitor definition files. 1996-03-13 21:47:15 +00:00
mark cb6f3bb55c Removed references to the kstack double mapping from the old debug
shell.
1996-03-13 21:45:54 +00:00
mark 32f0b6e092 curpcb is declared in pcb.h so don't declare it here.
removed debug printing when faulting in new page tables for the user
process stack.
1996-03-13 21:41:41 +00:00
mark ba893940d3 savectx() now justs syncs the pcb, it no longer needs to copy the stack.
cpuswitch() simplified, now pushes and pulls a switchframe structure
on entry and exit. Added extra comments to indicate the states of
various registers throughout cpuswitch().
Added proc_trampoline function.
1996-03-13 21:39:10 +00:00
mark 5c857a37ef Use the value returned from initarm() to set the stack pointer before
calling main().
1996-03-13 21:34:17 +00:00
mark bbf2aa16b5 Removed kstack references. Updated code that sets up the pcb for proc0
now that double mapping has gone.
initarm() now returns the address to be loaded into the stack pointer
before calling main() to kick things off.
1996-03-13 21:32:39 +00:00
mark d253d345a2 Since kernel stack double mapping no longer exists there is no
point in trying to perform a postmortem on it following an panic.
1996-03-13 21:26:52 +00:00
mark 52f490ccf6 No longer need to allocate hooks for kernel stack double mapping during
pmap bootstrapping.
1996-03-13 21:25:04 +00:00
mark 7045f47891 The kstack pte fields no longer exist so remove them. 1996-03-13 21:22:32 +00:00
mark caf9dd3edc Removed external declaration of kstack. No longer relevant now kstack
double mapping has been removed.
No longer need to fixup the trap frame address to take double mapping
into consideration.
1996-03-13 21:21:00 +00:00
mark 043ef25c23 Remove cpu_set_init_frame macro. This is no longer needed now
cpu_set_kpc() has been implemented.
1996-03-13 21:18:06 +00:00
mark f9f45be67c Removed all the double mapping code from cpu_fork().
Arrange for the child process to return to user land via child_return()
on leaving cpuswitch().
Added function cpu_set_kpc().
1996-03-13 21:16:15 +00:00
mark 8fbba52c87 Removed option __FORK_BRAINDAMAGE at last. 1996-03-13 21:10:43 +00:00
mark ffa6eab259 Removed the kstack pte fields. These are no longer needed as the kernel
stack is no longer double mapped.
1996-03-13 21:08:36 +00:00
christos b92fe0f4c4 Kernel version of longjmp does not take the return value of setjmp as
an argument. It always returns 1.
1996-03-13 21:08:09 +00:00
christos b4a31b1fc7 Kernel version of longjmp() does not take the return value of setjmp() as
an argument. setjmp() always returns 1.
1996-03-13 21:06:38 +00:00
mark f96ae702d7 Added switchframe structure to describe the stack frame pushed on the
stack at the beginning of cpuswitch().
1996-03-13 21:06:34 +00:00
mark c353f32f10 _mcount() can now be declared inline. 1996-03-13 21:04:55 +00:00
mark fb4eacf0a5 Removed comments describing debugging code that has long since gone.
Added new comments for parts of the undefined vector entry point.
1996-03-13 21:00:26 +00:00
mark 1e97524220 SCSI scanner device added to the list of SCSI devices configured. 1996-03-13 20:57:45 +00:00
mark f6c46bc20c Added hooks for the SCSI scanner device driver. 1996-03-13 20:55:21 +00:00
mark d389b21913 Added boot time override for the memory test during probing. This
memory test apparently causes hangups on some etherH interfaces.
Until this can be debugged with an offending interface the memory
test can be bypassed.
1996-03-13 20:52:35 +00:00
mark c117a7f133 Only call the debugger if DDB is defined. 1996-03-13 20:28:50 +00:00
scottr eb473e57bd Add second argument to longjmp() call. 1996-03-13 19:04:04 +00:00
jonathan dc6fdf6cdc First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine. 1996-03-13 04:58:04 +00:00
fvdl f5e6df1ed0 Disable invalidating of directory offsets cookies. Should fix one or two
directory problems.

XXX There is no clean solution to the cookie/cookieverifier validity mess.
    Together with the disabled strict cookie check, this puts us back at
    what v2 did in this case. Slightly better solution possible by
    consequently storing 64bit cookies in other places too.
1996-03-13 00:44:17 +00:00
fvdl 146f96c2ce Make readdirsize default to rsize if rsize is explicitly specified,
and readdirsize isn't.
1996-03-13 00:38:55 +00:00
scottr b4225290a4 Use 851-specific instructions only #if defined(M68020). 1996-03-12 23:46:32 +00:00
is 905b10d4bc M68060 additional frame formats and bits. Closes PR 1174.
This shouldn't break anything; I find ... grep ... all the relevant
kernel sources subdirecotry trees I could think of for the defines
that don't use the new FSLW or FPF6 prefix. But in case it does anyway,
tell me immediately.
1996-03-12 22:21:51 +00:00
scottr 6208752b50 Oops; fix typo. 1996-03-12 21:34:57 +00:00
scottr d504ec531e Add "options M68020" so that 68851-specific code is only compiled when
we want it (we don't support the 020 without an 851 anyway).  Note that
M68030 no longer implies support for 020+851.

This also allows us to compile with -m68030 iff M68020 isn't specified
in the config file.
1996-03-12 21:06:22 +00:00
scottr 89f7d665d5 KNF. 1996-03-12 19:18:49 +00:00
mrg d55f4dd0c3 oops; back out previous change and add comment describing what the weird goto does. 1996-03-12 13:07:52 +00:00
mrg c23a9d83e5 eliminate stupid use of "goto next;" where next was: "next: continue;" 1996-03-12 13:01:20 +00:00
mrg 5bc2fce9e1 test for null ifa_dstaddr before using it. (pr#2183 from chuck cranor) 1996-03-12 12:55:52 +00:00
scottr 61927fc337 Fix typo (pointed out by Shinya Taniguchi, PR 2203) 1996-03-12 06:01:16 +00:00