mycroft
e149ad8228
Fix race condition in PRU_DISCONNECT.
...
Unimplement PRU_ABORT, as it's not needed and wasn't correct.
Some stylistic cleanup.
Make sure the control mbufs are freed in all cases.
We must indirect through the higher-level protocol for
PRU_{BIND,CONNECT} so that it can check the sockaddr.
1996-05-23 18:26:26 +00:00
mycroft
4c8302e0f4
Oops. Add missing label.
1996-05-23 17:07:03 +00:00
mycroft
9347e648d8
udp_output() doesn't actually take control data, so don't pretend it does.
1996-05-23 17:05:45 +00:00
mycroft
f399db63a4
Make sure the control mbufs are freed in all cases.
1996-05-23 17:03:27 +00:00
mycroft
8d0a82819c
We can only get a control mbuf for PRU_SEND or PRU_SENDOOB. Add diagnostic
...
code to panic in this case.
1996-05-23 16:49:08 +00:00
mycroft
5288bfd58b
Make sure the control and data mbufs are freed in all cases.
1996-05-23 16:41:49 +00:00
mycroft
60395beed8
Fix a race condition in PRU_DISCONNECT.
...
Rearrange the code to deal with unconnected sockets slightly.
Other minor changes.
1996-05-23 16:22:32 +00:00
mycroft
e930766cdc
Minor changes.
1996-05-23 16:13:19 +00:00
mycroft
aee4be7a7f
Minor changes to make this more like other protocols. Also, fix some return
...
values.
1996-05-23 16:12:15 +00:00
mycroft
37daba1b04
Make unp_addr be a pointer to the sockaddr, not to the mbuf, as with raw
...
sockets.
1996-05-23 16:04:24 +00:00
mycroft
03232fb1f2
Separate some code into separate functions.
...
Make unp_addr be a pointer to the sockaddr, not to the mbuf, as with raw
sockets.
Other minor cleanup.
1996-05-23 16:03:45 +00:00
phil
6c28c57a2a
xxcd => xx_cd.
1996-05-23 14:14:20 +00:00
briggs
78560abd91
Change the console banner message.
1996-05-23 05:18:48 +00:00
briggs
2126c0d3c1
Fix from Bill Studenmund to set flags sanely on serial console.
1996-05-23 02:06:53 +00:00
mycroft
08cc6b486f
And PRU_SEND.
1996-05-22 19:06:07 +00:00
mycroft
b85e5d8f5e
PRU_CONNECT also needs a proc pointer.
1996-05-22 19:00:52 +00:00
briggs
320adf52bf
Add MACH_CLASSDUO.
1996-05-22 17:53:24 +00:00
briggs
4d059305ec
Remove some dead code, as suggested by scottr, and clone a new machine
...
class off of the powerbook for the Duos. They apparently use an RBV-like
chip for the VIA2.
1996-05-22 17:52:48 +00:00
briggs
534d58c701
Get rid of compiler warning if DBG_PID is not defined.
1996-05-22 17:16:45 +00:00
is
4e8dbf468a
Added flags to the iy driver to override the media autodetect mechanism, if
...
necessary. Added a manpage to document the flags.
1996-05-22 15:39:43 +00:00
mycroft
d1bc14ee66
KNF nit.
1996-05-22 14:57:53 +00:00
mycroft
a8ba1d063c
A few style changes to match netiso and netns.
1996-05-22 14:42:27 +00:00
mycroft
49d52c9b1c
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
...
PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.
1996-05-22 13:54:55 +00:00
mycroft
12e6d35d62
Removing a completely unneeded reference to curproc.
1996-05-22 13:42:57 +00:00
mycroft
2a94215734
Remove duplicate definition of bpf_setif().
1996-05-22 13:41:54 +00:00
mycroft
627bb9bd50
Remove bogus comment in setgid().
1996-05-22 02:22:47 +00:00
mycroft
db3e68aa58
Describe the _POSIX_SAVED_IDS situation more clearly.
1996-05-21 23:39:57 +00:00
christos
0bc76ac7c3
make this compile again; remove CONF_SLOW_INTERRUPT
1996-05-21 20:46:45 +00:00
pk
bc77c57c13
espattach() requires DMA to be configured. For now, panic if it is not.
1996-05-21 19:09:43 +00:00
pk
68691c178c
Allow all esp dma channels to be called `dma'.
1996-05-21 19:07:30 +00:00
pk
dc7e7814d9
Remove the `espdma' special case; all `esp' related dma channels are now
...
called `dma' on all architectures. Note: `ledma' remains in place.
Also delete a couple of unneeded `needs-flag's in files.sparc.
1996-05-21 19:06:26 +00:00
is
70d3595ab1
Fix two conditionals code parts, which were intended to avoid two
...
branches for pure-M68060 and Non-M68060 kernels, but would have made
the former never save its floating point context.
1996-05-21 18:22:13 +00:00
is
893de3dcc8
Sync with the cpu.h change: setconf() only used if defined(GENERIC).
1996-05-21 17:15:40 +00:00
oki
30ec7d2c44
Some cleanup.
...
- Add missing return-type of function.
- Add missing prototype.
- some gcc -Wall printf warning.
1996-05-21 15:32:18 +00:00
oki
82d5960cd6
Some cleanup.
...
- Add missing return-type of function.
- Add missing prototype.
- some gcc -Wall printf warning.
1996-05-21 15:31:55 +00:00
pk
71943d50df
Protect body of iommuattach() to be more resilient against configuration
...
file oddities.
1996-05-21 07:25:07 +00:00
briggs
057adea27d
Apparently the MRG ADB code becomes unstable if we handle via1 interrupts
...
properly, so go back to unflagging them all before processing any via1
interrupts. Perhaps this can be changed back when we get ADB code that
does not rely on the ROMs?
1996-05-21 02:46:02 +00:00
jonathan
4139356a98
Copy the pmax locore.S code into the arch/mips hierarchy and split
...
it into three pieces:
* locore.S, which contains generic mips locore code,
applicable for both r2000/r3000 and r4000s (in 32-bit mode).
* locore_r2000.S, which contains r2000/r3000 (MIPS-I) versions
of the locore functions that need mips-generation-specific
instructions or handling.
* locore_r4000.S, which contains r4000/r4400/r4600 (MIPS-III?) versions
of the locore functions that need mips-generation-specific
instructions or handling.
Much of the code in locore_r4000.S is derived from Per Fogelstrom's Pica port.
locore.S still contains some pmax-specific DMA-buffer copy functions.
1996-05-21 00:20:40 +00:00
briggs
3fb1d834fc
Actually clear the interrupt on the RBV.
1996-05-21 00:04:18 +00:00
jonathan
b15951c1ee
* Move the declarations of mips locore functions from the pmax tree
...
to the mips tree.
* Just include the mips locore.h into the pmax one.
1996-05-20 23:49:11 +00:00
jonathan
e704a8e1e9
* Move the declarations of mips locore functions from the pmax tree
...
to the mips tree.
* Add declarations of functions used by vm_machdep.c.
* Add declarations of functions printed by name in stack tracebacks.
* Add declarations of functions used by the model-independnet mips machdep.c
code.
1996-05-20 23:38:26 +00:00
jonathan
6f1e720b08
Change MachEmptyWriteBuffer() to wbflush().
...
Add missing "void" and "int" return types on functions.
Move boot() after dumpsys()/doadump(), so the latter don't need forward decls.
1996-05-20 23:27:27 +00:00
jonathan
7666d5b36b
Check that either CPU_R3000 or CPU_R4000 is defined. Fix the r3k/r2k
...
symbolic lookup of the CPU-level specific locore entry points to use the
r2k, not the r4k, labels.
Include header files to get prototyped declarations of ipintr() and arpintr().
Remove unused variables and parenthesize assignments in if () expressions.
Gcc warns of a possible && vs || operator-precedence bug in the network
softint dispatch code, which needs more thought.
1996-05-20 23:24:00 +00:00
jonathan
b314e27cfa
Add #include of pmax/kn01var.h, remove unused variables, and close
...
hanging block comment in copyright to satisfy -Wall.
1996-05-20 23:19:16 +00:00
mrg
1af2be6068
document PORTAL
1996-05-20 18:15:11 +00:00
mrg
92292a798d
initialise securelevel to zero to allow it to be patchable. this is _not_ a security issue.
1996-05-20 17:49:05 +00:00
mrg
047dfa8524
count pagein faults in struct user. (from kenneth stailey pr#1397])
1996-05-20 17:40:02 +00:00
mrg
663808dfc5
use ' not " when passing variables to a sub-make. pr#1199/pr#1296
1996-05-20 17:23:25 +00:00
mark
08dfd04e76
Fixed the NetBSD Id string.
1996-05-20 17:09:24 +00:00
mrg
4e25d1d20b
if the sender set a cksum, check it, regardless if we care to
...
generate and send them ourselves. from rich stevens.
1996-05-20 16:56:20 +00:00
thorpej
bc16409b49
Remove some extra printfs, now that Matt has lessened my confusion.
1996-05-20 15:52:32 +00:00
oki
6a0bb3e228
Add 'rd' ram-disk pseudo-device.
1996-05-20 14:56:20 +00:00
oki
8823c49fb4
fixed gcc -Wall warnings.
1996-05-20 14:53:07 +00:00
mark
a7f4c7929f
Don't need -fno-builtin anymore.
1996-05-20 14:37:24 +00:00
mark
847038524a
cast -1 to a char for comparision with tc->t_brkc so that this test
...
will work with signed and unsigned chars.
1996-05-20 14:29:17 +00:00
is
cb5f8c53ac
Now that our as pretends to understand the M68060 cpu, use -m68060 instead
...
of -m68040 to avoid confusion.
1996-05-20 13:31:40 +00:00
jonathan
b37be8bb62
Fix typo in NMBCLUSTERS definition.
1996-05-20 10:50:52 +00:00
pk
6da494dde9
Put a `return' back that went missing in rev 1.56
1996-05-20 10:49:20 +00:00
jonathan
d1e0e11f70
* Fix formatstr/argument mismatches in diagnostic printf()s.
...
* Change MachEmptyWriteBuffer() to wbflush(). Should use TC mi names tc_mb(),
tc_wmb, tc_syncbus() but I'm not sure which each wbflush() should be.
* Add prototyped forward decl for asc_Dumplog() and add an explicit void
return type.
* Remove unused variables.
1996-05-20 09:46:21 +00:00
scottr
4b712a8c3f
Due to the latching effect of the 6522 (VIA) chip, we need to unflag
...
interrupts only after the condition that caused the interrupt has been
cleared. This is a particular problem with the 5380 SCSI controller,
since the Mac glue logic may raise (e.g.) the SCSI DRQ interrupt a number
of times during the course of a normal transfer. By waiting to unflag it,
we effectively ignore all but the first.
1996-05-20 04:32:33 +00:00
jonathan
4e27f8ef06
Fix braino in initialization of confargs pointer in le_pmax_attach().
1996-05-20 03:43:15 +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
scottr
d28f9a6699
Fix the last change; CVS apparently biffed it.
1996-05-20 03:23:36 +00:00
cgd
5e29c383e2
add wbflush() calls in strategic places. These really shouldn't be
...
here, and there should be a generic 'bus' interface to do memory
read/write barriers.
1996-05-20 03:14:07 +00:00
cgd
397617080d
add 'pseudo-device strip' for Metricom Ricochet packet radio driver
...
recently kicked in by Jonathan Stone. It compiles on the alpha, and
may even work.
1996-05-20 02:58:53 +00:00
jonathan
b3c6ba5b5d
Decstation 3100/2100 baseboard configuration stub for the LANCE driver
...
for DEC TURBOchannel and IOCTL ASIC machines.
1996-05-20 02:25:08 +00:00
fvdl
484a6c9fe4
Regen.
1996-05-20 02:00:53 +00:00
fvdl
69761c2aa8
Update list of Linux syscalls and implement the ones that are likely to be
...
used and doable.
1996-05-20 01:59:09 +00:00
cgd
daad29a36c
add fta, fpa, and fea drivers, for DEC TC, PCI, and EISA FDDI controllers.
1996-05-20 01:37:18 +00:00
cgd
6793f08d00
regen for new tcdevs file
1996-05-20 01:34:50 +00:00
cgd
014cc0e804
add entry for DEFTA FDDI, clean up entry for DEFZA FDDI.
1996-05-20 01:33:45 +00:00
cgd
ac61f1ad21
fix first argument to tc_intr_establish()... it's still the pointer
...
to the parent device.
1996-05-20 01:31:07 +00:00
chuck
d3ca12ac2a
import rd_root from sun3
1996-05-20 01:17:31 +00:00
chuck
39e3bbc016
add ram-disk. clean.
1996-05-20 01:16:50 +00:00
chuck
8a07a09d00
add "rd" ram-disk config
1996-05-20 01:15:45 +00:00
thorpej
722d0da592
RCS Id police.
1996-05-20 00:56:39 +00:00
thorpej
917f00ce2e
RCD Id police.
1996-05-20 00:55:44 +00:00
thorpej
b16ba91656
Regen (again; sigh)
1996-05-20 00:53:39 +00:00
thorpej
7d978a7915
Sure sign that Jason needs more coffee; fix ommision in my last correction.
1996-05-20 00:52:53 +00:00
thorpej
4564027c48
Add the DEFEA EISA FDDI controller to the catch-all kernels.
1996-05-20 00:50:33 +00:00
thorpej
a318461042
RCS Id police.
1996-05-20 00:48:43 +00:00
thorpej
37b3b8a758
Add the DEFTA FDDI controller.
1996-05-20 00:45:02 +00:00
thorpej
f777a672d5
Add the DEFEA FDDI controller.
1996-05-20 00:44:11 +00:00
thorpej
0f38740b1c
Regen.
1996-05-20 00:40:45 +00:00
chuck
914ca91332
if booted from sboot, stay in it.
...
if booted from the bug, don't enter sboot.
1996-05-20 00:40:10 +00:00
thorpej
02f972a4be
Ooops, restore the UltraStor 24f entry I accidentally deleted in the last
...
commit.
1996-05-20 00:39:55 +00:00
thorpej
72b01b6a3a
Add Digital Equipment DEFEA cards.
1996-05-20 00:36:36 +00:00
thorpej
38db93c012
Display model string during attach.
1996-05-20 00:35:16 +00:00
thorpej
4d9ddd9e3b
Use eisadevs data to display model string.
1996-05-20 00:34:03 +00:00
thorpej
fee0e539c4
Fix conflicts from import, clean up a few printfs, and use the
...
generic PCI vendor/product definitions, rather than home-grown versions.
1996-05-20 00:30:49 +00:00
thorpej
1a614aed0c
Fix conflicts during import.
1996-05-20 00:26:15 +00:00
thorpej
e5106dfb88
Update to the Digital Equipment PDQ-based FDDI controllers, from
...
Matt Thomas. Now includes support for EISA (DEFEA) and first-cut of
support for TurboChannel (DEFTA) cards.
1996-05-20 00:20:39 +00:00
mhitch
9aa945f3c4
Also use genassym.c from sys/arch/mips/mips for make depend.
1996-05-19 22:44:12 +00:00
scottr
820895162d
Update for new grf attachment code.
1996-05-19 22:29:04 +00:00
scottr
d048582c60
New grf attachment code, mostly by Jason Thorpe with some cleanup by me.
...
This will allow dt and X to work with a generic kernel, rather than
compiling different kernels that attach grf0 to a NuBus adapter or
internal video.
1996-05-19 22:27:04 +00:00
jonathan
ed314bc45a
Catch up to removal of if_unit and addition of if_xname and sc_unit,
...
blindly following the changes to if_sl.c.
1996-05-19 22:09:36 +00:00
cgd
17bc20b5a4
minor cleanups, mostly KNF.
1996-05-19 21:41:00 +00:00
cgd
260dba439d
Tuned in_cksum() from Matt Thomas <matt@3am-software.com>. According
...
to him, this implementation is approximately 50% faster than the
machine-independent portable version.
1996-05-19 21:24:14 +00:00
cgd
6f5bee3001
add -O2 to the optimization flags. A reason why optimization seemed
...
to fail on some systems was never found; hopefully it's gone away (or
was never really there).
1996-05-19 21:16:51 +00:00
chuck
30cec539a4
preserve sboot status
1996-05-19 21:07:21 +00:00
veego
7212a830ea
- grf_cl.c, grf_clreg.h: added support for Piccolo SD64
...
- grf_cv.c, grf_cvreg.h, ite_cv.c: some cleanups
- grf_rh.c, grf_rhreg.h, grf_rt.c: new blank ioctl and some KNF
- grf_et.c, grf_etreg.h, ite_et.c: new graphics driver for et4000 based board
(oMniBus, Domino and Merlin)
- grfabs_cc: fix PR#2034
- grfvar.h: new grfunit for GRF_ET4000_UNIT
- scsidefs.h: no longer useful
- zbus.c: new entries for: Piccolo SD64, oMniBus, Domino and Merlin
1996-05-19 21:05:20 +00:00
veego
f5faf322a0
GENERIC - added scsi scanner entry
...
- enable MS-DOS file system support
- removed unsed GRF_CL5426 entry
- added new graphics driver (grf6) for oMniBus, Domino and Merlin
1996-05-19 21:04:48 +00:00
veego
68bbcedb0c
conf.c - added scsi scanner entry
...
pmap.c - -Wall fixes for MACHINE_NONCONTIG and M68040 || M68060
1996-05-19 21:04:18 +00:00
pk
1bd6f1f147
We don't generally want to profile `genassym' (easy part of PR#2434).
1996-05-19 20:58:51 +00:00
jonathan
950ec8ffb3
Remove unused locals "struct ecoff_filehdr *efp = &execp->f;".
1996-05-19 20:36:06 +00:00
chuck
208aa439bf
move rb_nosym/rb_sboot here
1996-05-19 20:08:55 +00:00
chuck
31a61aca69
minor clean
1996-05-19 20:08:15 +00:00
is
83f62ea033
Screenblank support:
...
- new fbio.h in arch/amiga/include, defining only FBIOSVIDEO
- add an IOCTL translation to arch/amiga/dev/grf.c
- add screenblank to the list of specials to build on amiga.
1996-05-19 20:06:02 +00:00
chuck
b416b21a6c
update for new (SRT0/bugcrt) calling convention
1996-05-19 19:58:41 +00:00
chuck
e086852f0c
minor clean up
1996-05-19 19:51:24 +00:00
is
1a41d54c27
Yet some more cleanup for missing prototypes, if DRACO is supported.
1996-05-19 19:03:01 +00:00
jonathan
1cfab3321a
make dk_establish() return type be void, not int.
1996-05-19 18:49:33 +00:00
jonathan
e6beb98351
Move sys/arch/pmax/dev/sccvar.h to sys/arch/pmax/tc.
1996-05-19 18:25:15 +00:00
jonathan
7469cf4c88
Add port number encodings.
1996-05-19 18:24:33 +00:00
jonathan
baa655bc0f
Update the DECstation stack-traceback pretty-printer, KN01 interrupt handler,
...
and IOCTL ASIC dma-buffer-reservation code to use the reorganized am7990
preprocessor tokens and function names.
1996-05-19 17:58:12 +00:00
jonathan
6d5fbdfbe2
Remove common-across-all-MIPS-cpu definitions (e.g., user-level-visible
...
page/segment size definitions and macros) from pmax/include/param.h,
and move them to mips/include/mips_param.h.
1996-05-19 17:52:18 +00:00
jonathan
1f9e095446
Remove common-across-all-MIPS-cpu definitions (e.g., user-level-visible
...
page/segment size definitions and macros) and move them to
mips/include/mips_param.h.
1996-05-19 17:48:04 +00:00
jonathan
431ae5d022
Add line discipline code, initialization, and config support for MosquitoNet's
...
Metricom Ricochet starmode-radio-IP driver.
1996-05-19 17:17:50 +00:00
jonathan
b6a3c3255f
Use genassym.c from sys/arch/mips/mips.
1996-05-19 17:17:48 +00:00
ragge
7cbd855ad6
Fixed all (proto)type errors. Fixes PR 2377.
1996-05-19 16:43:02 +00:00
jonathan
32d97e42f6
Packet-mode driver for Metricom Ricochet radios (Starmode Radio IP).
1996-05-19 16:34:36 +00:00
ragge
f4c525a623
Update from Ken Wellsch.
1996-05-19 16:27:02 +00:00
ragge
6bd144b812
Add DZ-11 to GENERIC & files.vax.
1996-05-19 16:25:23 +00:00
jonathan
aff9b08bf5
Delete unecessary #include of "le.h", which doesn't exist anymore.
1996-05-19 15:57:16 +00:00
jonathan
e2a698293c
Add local declarations for locore functions. Fix pagemove() return
...
type to be void. Add explicit "int" return types.
Fix format/argument mismatches for vm_offset_t's in diagnostic messages.
1996-05-19 15:55:31 +00:00
is
a7a99df915
Some more Prototypes needed for DraCo support.
1996-05-19 15:35:43 +00:00
is
40c19a2309
Add some forgotten #ifdef M68060 to make gcc -Wall happy. While I'm here,
...
add the _kernel_text symbol for libkvm.
1996-05-19 14:55:27 +00:00
mrg
0e4623e2f7
set the console struct winsize to the values given in the prom (sun4c/sun4m)
...
or the eeprom (sun4) when opening the console. (note: sun4 code untested
but jason claims it will `Just Work').
1996-05-19 13:00:43 +00:00
oki
a273dd586c
include $S/arch/m68k/060sp/Makefile.inc, similar to amiga.
1996-05-19 12:29:20 +00:00
oki
30bc3379a6
'unlock' label is used for #ifndef DEBUG, my previous change
...
is bogus.
1996-05-19 12:20:54 +00:00
oki
36a323b483
Added 'unlock' label for #ifdef DEBUG,
1996-05-19 11:37:20 +00:00
ragge
621153ce0e
The unexpected remove of active kstack does happen on vax also,
...
not only on pc532. I've verivied that this "fix" work.
1996-05-19 10:00:38 +00:00
veego
3a44d948a6
Another -Wall fix.
1996-05-19 09:13:56 +00:00
phil
386ecdc658
Prototype dk_establish.
1996-05-19 05:34:25 +00:00
phil
8d6d309bf0
Minor fixes from Matthias Pfaller.
...
ncr.c => add parity disable code.
1996-05-19 05:32:09 +00:00
briggs
4029840249
Ooops. cut 'n' pasto. splzs should 4, not 2.
1996-05-19 04:30:32 +00:00
jonathan
a67936cc04
Declare mips_elf_makecmds(), not pmax_elf_makecmds().
1996-05-19 04:15:37 +00:00
mrg
fae3ba5c32
disable prom sync in romboot() and romhalt(), rather than before calling them.
1996-05-19 04:12:53 +00:00
jonathan
2b1cdb9535
Include <machine/locore.h>, to force all MIPS cpu-model specific
...
locore calls to go via a locore-entry jumptable.
Use the mips/mips/mips_machdep.c code to initialize locore state,
exception vectors, and the locore entry vector, instead of doing
it all in mach_init().
Update dumpsys() to use new-style signatures for dump routines,
even though the pmax SCSI drivers don't actually support dumping kernel
memory.
1996-05-19 02:03:38 +00:00
jonathan
bce6b88e9a
Include <machine/locore.h>, to force all MIPS cpu-model specific
...
locore calls to go via a locore-entry jumptable.
Cast the (int) arguments to MachTLBUpdateEntry() to avoid
warnings. Variables TLB entries are still type-punned as either structs
or ints, without any regard, when the pmax-specific VM code passes
them as arguments to functions.
1996-05-19 02:00:58 +00:00
jonathan
6bb09a3781
Include <machine/locore.h>, to force all MIPS cpu-model specific
...
locore calls to go via a locore-entry jumptable.
Use mips_btop(), mips_round_page, mips_trunc_seg() instead
of pmax_btop(), pmax_round_page, pmax_trunc_seg().
Add Per's software-readonly-bit mechanism, since the r2000 and r4000
hardware TLB entries are very different, and the r4k has no space for
software bits in TLB entries. That is, this pmap code still won't work
on r4000 machines. Some other solution, like another jump table for
clients of the pmap code, is necessary.
1996-05-19 01:58:35 +00:00
jonathan
b4c4b28e43
Include <machine/locore.h>, to force all MIPS cpu-model specific
...
locore calls to go via a locore-entry jumptable.
Declare r2000- and r4000-specific exception-handler functions, to which
trap() and interrupt() dispatch exceptions. Initialize r2000- and r4000-
specific exception-handler vectors, when CPU_R4000 and CPU_R2000 are
defined.
Update the stack-traceback code (partially) to understand and print
the new low-level exception-handler code, via which machine exception-vectors
send exceptions to call trap() or interrupt(). This needs more work.
1996-05-19 01:54:49 +00:00
jonathan
a52871e690
Avoid calling autoconfigure() to configure the CPU.
...
It just causes a kernel panic, and will until the rest of the pmax
autoconfiguration is redone to use a bus-specific probe and attach
argument, or until KN01 devices are no longer attached to the mainbus.
1996-05-19 01:47:15 +00:00
jonathan
a671ada4b8
Change block comment where each line began with "/*", to use the KNF
...
block comment style. Also passes gcc -Wall.
1996-05-19 01:44:45 +00:00
jonathan
562ae556d9
Add closing-comments to commented-out #defines. to avoid -Wall complaining
...
about comments-inside-comments.
(The #defines for the IOCTL asic should arguably be mereged with
NetBSD/Alpha in any case.)
1996-05-19 01:42:54 +00:00
jonathan
35050a83c5
Declarations for KN01 (Decstation/Decsystem 2100/3100) baseboard "bus".
1996-05-19 01:40:35 +00:00
jonathan
5a890607de
Define the conventional pmax locore entry-point names to be calls through
...
an vector (struct) of function pointers. Add prototype declarations for
each vector entry.
Add declarations for the r2000 (MIPS-I) and r4000 (MIPS-III) locore
versions of the relevant functions.
1996-05-19 01:32:56 +00:00
jonathan
7429b65f3c
Add declarations for the locore variables cpu_id and fpu_id, compatible
...
with the Pica r4000 locore. These variables are now used
by the cpu-identification routines in mips/mips/mips_machdep.c.
1996-05-19 01:28:47 +00:00
jonathan
eaafcae007
Add prototyped declarations for the static bt431 chipset code.
...
Add explicit "int" return types to functions.
Change MachEmptyWriteBuffer() to wbflush().
1996-05-19 01:18:57 +00:00
jonathan
cb77e53644
more cleanups for -Wall:
...
update the 4.3bsd/Ultrix-compatible qvss-style mmap'ed framebuffer/input-event
code to use mips_round_page() et.al., not pmax_round_page().
Add explicit "int" return types to functions. Add prototyped forward
declarations.
1996-05-19 01:16:18 +00:00
jonathan
33fcef8a24
more cleanups for -Wall:
...
Fix the the definitions of dtop cdevsw entry point functions to match
their declarations. Add explicit "int" declarations to functions.
Add prototyped declarations for all local functions.
Return zero from dtopstop().
Include the external declarations from dtopvar.h.
1996-05-19 01:12:40 +00:00
jonathan
fe392301cd
more cleanups for -Wall:
...
Fix the the definitions of cdevsw entry point functions to match their
declarations. Add explicit "int" declarations, and fix the type
of rconsmmap().
1996-05-19 01:06:14 +00:00
jonathan
fe111dde22
more cleanups for -Wall:
...
Fix lk201 driver to include lk201var.h.
1996-05-19 01:03:00 +00:00
jonathan
9bdcc60e97
more cleanups for -Wall:
...
Fix generic framebuffer (X-server interface) cdevsw entry points to match
declarations.
1996-05-19 01:01:10 +00:00
jonathan
50dd608c3b
more cleanups for -Wall:
...
Fix dc driver cdevsw entry points to match declarations.
Change MachEmptyWriteBuffer() to wbflush().
1996-05-19 00:58:03 +00:00
jonathan
153ec93cf9
Create device-driver external declarations for the following pmax drivers:
...
lk201 in-kernel keyboard decoder (lk201var.h)
1996-05-19 00:53:43 +00:00
jonathan
cce901c20c
Create device-driver external declarations for the following pmax drivers:
...
qvss/pm-compatible framebuffer ioctl()s (qvssvar.h)
MAXINE desktop bus driver (dtopvar.h)
3100/2100 pm framebuffer low-level driver ( pmvar.h)
MAXINE baseboard framebuffer (xcfbvar.h)
which should compile with -Wall.
1996-05-19 00:48:43 +00:00
pk
d292da40b2
Remove obsolete HWTOSW/SWTOHW macros.
...
VA2PA: flush TLB before proceeding with L2 probe (per the manual) [4m].
More KNF.
1996-05-19 00:32:15 +00:00
jonathan
0064a12f68
Create mips_machdep.c, which contains Mips-specific functions common
...
to all mips ports.
So far, this consists of code to initialize a vector, or jump-table, of
pointers to locore functions that require different definitions on different
Mips CPUs (eg., r2000/3000 and r4000); a generic wrapper for setting up
CPU-specific exception vectors; and CPU and FPU identification code.
1996-05-19 00:31:57 +00:00
pk
98a9570a8e
Make sure DELAY(0) returns within an hour..
1996-05-19 00:25:16 +00:00
jonathan
503d421a0a
Add alternate "mips_r2000_<XXX>" entry points for the r2000/r3000-specific
...
locore functions. The new names are used by C code to construct a jump-table,.
making it less infeasible to have a single kernel image work on both
r3000 and r4000 systems.
1996-05-19 00:25:14 +00:00
thorpej
f969979dea
Back most (not all) of the previous delay-related changes now that
...
delay is calibrated properly.
1996-05-18 23:56:59 +00:00
thorpej
62f7f3ad57
Implement a real delay calibration routine, adapted from Chuck Cranor's
...
mvme68k delay calibration algorithm.
1996-05-18 23:30:09 +00:00
christos
a7136623a9
Added prototypes for inline functions atoi() and strchr().
1996-05-18 22:58:01 +00:00
veego
d5db0e464d
Put this into an #ifdef COMPAT_OLDTTY.
...
look in <sys/tty.h> for more infomations about that.
1996-05-18 22:17:49 +00:00
briggs
2635a9c602
Serial driver with interface to a slightly modified version of the machine-
...
independent z8530 driver. When that driver is updated, the local copy
of those files may be removed. From Bill Studenmund.
Compiler warnings fixed by me.
1996-05-18 18:53:50 +00:00
briggs
78c78f916e
Fixup a few prototypes and put 'em in their place.
1996-05-18 18:52:41 +00:00
christos
dbd08073ba
- remove cpu_exec_aout_prep_oldzmagic and add exec_aout_prep_old{z,n,o}magic
1996-05-18 17:20:54 +00:00
christos
4f3ac596f5
- rename cpu_exec_aout_prep_oldzmagic to exec_aout_prep_oldzmagic
1996-05-18 16:02:08 +00:00
christos
8c29c79939
- remove cpu_exec_prep_oldzmagic and use exec_aout_prep_oldzmagic
1996-05-18 16:01:00 +00:00
christos
52d3532adb
- remove cpu_exec_aout_prep_oldzmagic and use exec_aout_prep_oldzmagic
1996-05-18 15:58:07 +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
christos
f09036d6ec
- Moving cpu_exec_aout_prep_oldzmagic -> exec_aout_prep_oldzmagic.
...
This is used by the i386, hp300 and mac68k ports.
- Added exec_aout_prep_oldomagic, and exec_aout_prep_oldnmagic
These are just copies of the respective prep functions from
kern_exec.c with text address starting at 0. Maybe a better fix
is to pass the starting address as a third argument so we don't
duplicate code, but this could be the next pass since the functions
are used in many places. These functions are used for BSDI binaries.
1996-05-18 15:52:19 +00:00
mrg
9ce523cca7
disable the prom `sync' command before calling romboot() or
...
romhalt() (idea from OpenBSD).
1996-05-18 12:36:49 +00:00
mrg
4cba75e24a
put promdev definition into <machine/bsd_openprom.h>.
...
also, minor KNF.
1996-05-18 12:35:18 +00:00
mrg
b6988904e0
put promdev definition into <machine/bsd_openprom.h>.
1996-05-18 12:27:40 +00:00
mrg
d7bc39fad1
don't set tmp twice.
1996-05-18 12:22:49 +00:00
mrg
68b2ff1bdb
use __P
1996-05-18 12:19:14 +00:00
thorpej
a8c7148dd2
XXX set up alldevs and allevents so that vmstat -i will work.
1996-05-18 01:39:57 +00:00
christos
268e6edf33
Support bsdi getkerninfo(SYSINFO,...) call so that the BSDI netscape
...
calling uname(3) can find out what os it is running on. Tested only with a
bsdi binary that calls getkerninfo directly. Funny thing is that I ran
the same binary on a bsdi machine, and they fill in fewer fields in the
emulation than we do; maybe I went overboard :-)
1996-05-18 01:24:34 +00:00
thorpej
63f4ec3e41
Put the vector table back in the text segment; putting it in the data
...
segment breaks doboot() on my 319 (but worked on my 380...bleh!)
1996-05-18 00:52:53 +00:00
cgd
4145f89f54
TurboChannel bus_mem_* functions. bus_mem_{read,write}_8, and
...
bus_mem_read_{1,2} are not yet supported for sparse space.
1996-05-18 00:00:51 +00:00
cgd
0307c36933
bus_io_* functions. These have no meaning on the TurboChannel, since
...
it's a memory-mapped bus and has no I/O space. They all are
fancy wrappers around panic().
1996-05-17 23:59:31 +00:00
cgd
84b37ec80d
set up a bus_chpiset_tag_t, and pass it to the TC code
1996-05-17 23:58:43 +00:00
cgd
e49dcae424
add files for the implementation of the TC 'bus' mem & I/O functions
1996-05-17 23:44:02 +00:00
cgd
a78f16f702
moved to ../tc
1996-05-17 23:41:36 +00:00
cgd
2872eeccac
(on the alpha) pass the bus_chipset_tag_t given to the bus down to the
...
devices.
1996-05-17 23:39:19 +00:00
cgd
af446a907a
Update for new includes (<machine/bus.h> & <machine/intr.h>) on the
...
alpha. At some point in the future, those headers should be provided
on the pmax, but until then, things are #ifdef'd so that the old
headers and definitions are still used. Pass a bus_chipset_tag_t
to the TC bus attach code and to devices, on the alpha.
1996-05-17 23:38:16 +00:00
pk
da5c96baa1
Correct an oversight and a silly past-o in last change.
1996-05-17 22:54:40 +00:00
gwr
9c5d297b0f
New version that handles hardware flow-control (CRTSCTS) at the input
...
to the ring (or silo). This eliminates ring overrun with crtscts.
Also handle deferred register changes earlier, and misc. cleanup.
Give credit to: Bill Studenmund and Ian Dall (Thanks!)
1996-05-17 22:49:23 +00:00
pk
bcc0cb3fa0
Don't touch retval[] in socketpair(); manual page says this system call
...
return 0 on success (PR#2428).
1996-05-17 22:45:32 +00:00
mark
a1ac79c69f
Added r_neg bit and removed r_copy bit from relocation_info_arm6 structure.
...
General tidy up of the code style in file.
1996-05-17 21:58:07 +00:00
chuck
6d472208c0
bump
1996-05-17 21:20:11 +00:00
chuck
056791c7fa
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
1996-05-17 21:18:07 +00:00
chuck
bd3c8260d8
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
1996-05-17 21:17:58 +00:00
chuck
3df32569f8
Makefile: update from OpenBSD
...
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
1996-05-17 21:08:25 +00:00
chuck
d14981d7b7
bugdev.c: from Dale Rahn (bug device access)
...
exec_mvme.c: from sun3 port, adapted by me. I also fixed a bug that
prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
to make it fit the new format.
1996-05-17 20:59:53 +00:00
chuck
23ee5c7500
replace with code to use libbug rather than access directly
1996-05-17 20:54:50 +00:00
chuck
86a71fe9e7
complete revise of sun3 SRT0 so that it works with bugcrt by me.
1996-05-17 20:53:49 +00:00
gwr
316f45753f
Allow the DIAGNOSTIC to compile with old versions of gcc.
1996-05-17 20:53:11 +00:00