gwr
4756c63625
Call isr_soft_request() at most once per zshard interrupt.
...
In the softintr, raise to spltty before calling tty code.
1997-03-11 21:54:35 +00:00
gwr
05a47d22ea
Correct handling for Trap #2 in SunOS executables,
...
now that we know it is supposed to flush the cache.
(Was thought to be "some obscure FPU operation".)
1997-03-11 21:30:51 +00:00
gwr
f64034e8f6
Sync up with changes in GENERIC
1997-03-11 21:21:49 +00:00
gwr
b4de41ef34
Update the description of the flags for "si" devices.
...
Remove wired-down scsi disk targets (no longer needed).
Add ch, ss, uk (scsi devcies) at mycroft's requst.
1997-03-11 20:59:10 +00:00
gwr
3aa49c4b33
Remove unnecessary differences (T_BRKPT, T_WATCHPOINT gone).
1997-03-11 20:31:20 +00:00
gwr
ec6bb1d018
s/-T/-Ttext/
1997-03-11 20:13:20 +00:00
gwr
4ad7ed0b97
Moved dev_net.[ch] to sys/lib/libsa
1997-03-11 18:29:30 +00:00
gwr
8f0295e7f0
Moved here (via repository copy) so they are more easily shared.
...
I did not add them to the library, but rather compile them where
the netboot program is built so I can add -DSUN_BOOTPARAMS, etc.
1997-03-11 18:23:55 +00:00
sommerfe
9460da5eb9
Implement trace/t ("thread" trace) allowing traceback by process-id
...
rather than by frame pointer (which it a bit harder to find).
1997-03-11 16:38:23 +00:00
mikel
877fe66c4e
SDEV_NOMODESENSE quirks are no longer needed for optical devices; from
...
Enami Tsugutomo in PR kern/3308.
1997-03-11 06:06:35 +00:00
mikel
1186720517
eliminate leftover header from bt -> bha conversion; noted by Enami
...
Tsusgutomo in PR kern/3310.
1997-03-11 04:24:03 +00:00
mikel
bd1ca0f680
this is umapfs, not lofs
1997-03-11 03:55:04 +00:00
mikel
812eb1fae4
this is nullfs, not lofs
1997-03-11 03:54:29 +00:00
pk
92d853e309
4m memory fault traps: simplify fault address logic, since per-CPU
...
fault-status reading stubs pre-cook the arguments.
illegal instruction trap: catch iflush instructions that cause this trap
on some CPU/MMU combinations.
1997-03-11 01:20:25 +00:00
pk
01e424f233
Insert RCS Id.
1997-03-11 01:03:07 +00:00
pk
abc39039f1
Move some parts of CP detection to cpu_attach() in cpu.c.
...
Call get_cpuinfo() for the boot CPU to collect the minimum information
to get the bootstrap rolling.
sun4/sun4c: the Interrupt Enable register is now mapped here after pmap
is initialized (was in locore).
Replace `cpumod' and `mmumod' with `cpuinfo.*' equivalents.
Allow more than one CPU to be configured in mainbus_attach().
1997-03-11 01:01:59 +00:00
pk
476ef3b431
Per-CPU information which is collected in cpu_attach().
...
Many things in here were imported from an earlier version from Aaron
Brown and are not yet used. This version has all the attributes of a
snapshot; more to come as addtional CPU/MMU details get implemented.
1997-03-11 00:55:24 +00:00
pk
eb71a02a7f
Re-write of CPU/MMU detection code.
...
Use a table driven classification based on CPU and MMU implementation/version
fields. Each CPU class or module defines a collection of routines that
implement CPU or MMU specific operations that can collect detailed setup
information.
All information is collected in a `cpu_softc' structure provided by the
auto-configuration code. However, in the interest of SMP support this
structure is located at a fixed virtual address identified by the
symbol `cpuinfo'. The `boot' CPU currently uses the the physical page(s) at
address 0x2000 for its cpuinfo. Consequently, the fixed virtual address
will be `KERNBASE+0x2000'.
The cache flush routines for several systems (sun4/4c vs. sun4m;
virtual vs. physical tags) have been factored out. Function pointers
to an appropriate set are located in `cpuinfo'. The former global
`cacheinfo' structure is now also a part of `cpuinfo'. Because of the
fixed virtual address of `cpuinfo' no extra performance penalties
are incurred by this move. In multi-architecture kernels, there's
no longer the need for run-time `cputyp' tests in this part of the system.
1997-03-11 00:44:00 +00:00
pk
8d2c03c810
Replace `cputyp' run-time tests by inserting multiple branches and NOPing
...
some at startup depending on architecture.
Use `get_faultstatus' field in `cpuinfo' (initialized in cpu.c) to branch
to CPU/MMU specific fault status reading stubs on memory fault traps.
Remove code top map the Interrupt Enable register on sun4/sun4c. Its VA
has moved to a high location and is now mapped in autoconf.c after
pmap has initialized. Note: this renders NMIs during bootstrap() fatal
(maybe loading %tbr should be deferred).
1997-03-11 00:09:29 +00:00
pk
7d6231865e
Use cache flush routines provided in `cpuinfo'.
1997-03-10 23:55:40 +00:00
pk
129d9d5cf6
Move VA of the sun4/sun4c Interrupt Enable register from locore.
...
Define VA for the per-CPU `cpuinfo' structure.
1997-03-10 23:54:41 +00:00
pk
a566decb35
Use many things from the newly defined `cpuinfo' structure:
...
- vcache_flush_*() routines.
- cpu_type/cpu_flags
- per cpu context table and context administration glue.
- different macros to enable sun4/3-level mmu support.
Simplify sun4m version of pmap_bootstrap() a bit; more to do still.
Move installation of page tables in MMU into a separate routine, in
anticipation for SMP.
1997-03-10 23:26:11 +00:00
pk
ca1c4cc6c3
Define CPUINFO_FAULTSTATUS for use in locore.s
1997-03-10 23:15:03 +00:00
pk
4f30101165
Leave `has_iocache' unset if cache not enabled.
1997-03-10 23:13:59 +00:00
pk
593dbcc7dd
Replace `cpumod' with `cpuinfo.cpu_type' equivalent.
1997-03-10 23:09:55 +00:00
pk
d1be7c7ea4
New location of Interrupt Enable register on sun4/sun4c.
1997-03-10 23:08:31 +00:00
pk
d8fc2afd1e
Replace `cpumod' with `cpuinfo.cpu_type' equivalents.
1997-03-10 23:01:40 +00:00
pk
3811437545
Redo attach code somewhat. Have a go at matching le's and lebuffer's on
...
machines where the PROM does not provide a parent/child relationship.
1997-03-10 22:58:22 +00:00
pk
9119c9c189
Add a field indicating this instance has attached to an `le', so we
...
can have a go at matching le's and lebuffer's on machines where the
PROM does not provide a parent/child relationship.
1997-03-10 22:56:54 +00:00
pk
e5f0b8a132
Remove `cpumod' and `mmumod' and several related constants.
...
This functionality is now taken over by cpuvar.h
1997-03-10 22:50:37 +00:00
pk
95d5138e93
Move some constants from param.h in here
1997-03-10 22:47:52 +00:00
chuck
47727c7946
remove "::" entries as per cgd
1997-03-10 22:27:36 +00:00
pk
137dda4ac6
Add getmid
1997-03-10 21:49:11 +00:00
gwr
d0a45ab470
Use the macros sc_if, sc_addr to avoid lots of references to sc_arpcom.
1997-03-10 21:45:01 +00:00
scottr
12098dae8a
Add missing call to ae_nb_get_enaddr(), from <kei_sun@ba2.so-net.or.jp>.
...
Fixes PR 3312.
1997-03-10 17:55:15 +00:00
leo
f99aabbca1
Push out some 060 support. It's all untested and mostly copied in from the
...
amiga-port.
1997-03-10 14:44:26 +00:00
leo
7e288e08c3
Use vme_mask, not sys_mask to enable the SCC interrupt.
1997-03-10 14:41:43 +00:00
leo
2e85636c46
$NetBSD -> $NetBSD$ Sigh.
1997-03-10 10:22:34 +00:00
leo
b9595171f0
Add support for the Lance ethernet card on the VME-bus (Riebl/PAM)
1997-03-10 09:44:52 +00:00
thorpej
dc1020fe40
Print the interrupt level in scsiattach().
1997-03-10 08:37:31 +00:00
thorpej
bb0d35b7e4
Bump version - we compute the kernel load address differently.
1997-03-10 08:02:23 +00:00
thorpej
4e541ff7ea
Fix rounding of lowram value; ensure the kernel load address is on
...
an 8k boundary.
1997-03-10 08:00:47 +00:00
mycroft
66c4e32b11
Just increment the generation count. Using the time is bogus and defeats
...
fsirand(8).
1997-03-10 06:18:28 +00:00
mikel
3c5e473fd6
LOFS is long gone
1997-03-10 03:27:22 +00:00
leo
3d849b9429
- Turn the sc_[tr]bufaddr fields into arrays of addresses instead of just
...
the base address. This allows for a more flexible layout of buffers
in the Lance's memory.
- Add a new element 'sc_saved_csr0' to am7990_softc. It's value is or-ed
with the current csr0 value in the am7990_intr() function. This allowes
for a 'deferred' interrupt sceme.
1997-03-09 21:12:39 +00:00
ragge
2b8ac648a3
Frob pages before trying to map them, to be sure they exist.
1997-03-09 16:00:06 +00:00
ragge
b64bca2999
Fixed bug that caused d partition being treated as c.
...
RAW_PART is 2, not 3.
1997-03-09 15:55:58 +00:00
mikel
a71e39e5d5
fix some spelling errors noticed by Charles Kane <ckane@mipos2.intel.com>.
...
fix some more noticed by myself; all are in comments or strings.
1997-03-09 06:10:32 +00:00
cgd
8efa66858c
fix problem compiling if neither PCI VGA nor TGA frame buffers were
...
configured. Pointed out by Matt Jacob.
1997-03-08 19:25:49 +00:00
leo
d3c11c558c
Enable SCC & MFP interrupts through the vme_mask register instead of
...
using the sys_mask register.
1997-03-07 21:45:41 +00:00
mark
682f911197
Updated for latest major number allocations.
1997-03-07 03:30:46 +00:00
thorpej
0b07209248
Allow depend target to be parallized, from Andrew Wheadon
...
<andrew@wipux2.wifo.uni-mannheim.de>, PR #3257 .
1997-03-07 00:50:30 +00:00
thorpej
709ccfa853
Patch from Matt Thomas to deal with the fact that Pass 2.[012] of
...
the 21140A-A[CDE] have a buggy receiver which may hand and/or corrupt
data on receive overflows.
1997-03-06 22:32:20 +00:00
gwr
51cfd7ed4d
Get the numbers of kernel MMU tables right.
1997-03-06 05:16:34 +00:00
briggs
47392571c5
Undo some damage that CVS somehow let me get away with.
1997-03-06 02:14:51 +00:00
gwr
9a79f92460
Clean out some junk I forgot to remove last time...
1997-03-06 00:15:56 +00:00
gwr
25d7b99a1f
Implement "mach pgmap" for examining mappings.
1997-03-06 00:05:23 +00:00
gwr
a4e5a18b63
Add pmap_bootstrap_setprom() with sets the PROM level-A tables to
...
allow the PROM monitor to see mappings in kernel space. This also
fixes a problem with exiting to the monitor with the stack pointer
set to some place in kernel space. Also fix NUM_KERN_PTES, and
change get_pte() so it works on any virtual address.
1997-03-06 00:04:18 +00:00
gwr
3ca8e4699d
Add pmap_bootstrap_setprom
1997-03-05 23:55:54 +00:00
gwr
201bc0aa96
Add ptest_addr
1997-03-05 23:54:08 +00:00
fvdl
b754b514dc
Bring limits up to 'modern' standards.
1997-03-05 23:51:47 +00:00
gwr
da2622290c
Allow access to the PROM via /dev/kmem (like the sparc port)
1997-03-05 23:02:29 +00:00
veego
344b3cf532
- Merlin works now in ZorroIII mode
...
- Fixes for Interlace and DoubleScan
- Memorysizedetction for 1MB Bords
- HiColor and TrueColor Support
- support for the Domino 16M proto card
1997-03-05 22:50:38 +00:00
veego
b835a00fa8
- PicassoIV support
...
- Fixes for Interlace and DoubleScan
- Memorysizedetction for 1MB Bords
- Clockdoubling for PicassoIV and PiccoloSD64
NOTE: Don't use the X11R6.1 Xserver with -useHWC on the SD64
with a gfxmode >80Mhz or you get a broken mousepointer.
- HiColor and TrueColor Support
(doesn't work yet, since it needs some fixes for the XServer)
1997-03-05 22:46:32 +00:00
veego
8f5155b610
PicassoIV and Domino proto 16M product id's.
1997-03-05 22:41:03 +00:00
gwr
63221bf3b2
Fix race conditions that allowed the interrupt latch register to have
...
the wrong value. Now using the <m68k/asm_single.h> stuff from Leo.
1997-03-05 22:22:11 +00:00
gwr
eac582d36e
Do some of the clock init a little later, in clock_attach.
...
(plus some other mostly cosmetic cleanup)
1997-03-05 19:00:07 +00:00
briggs
a2173962b8
Copyright foo.
1997-03-05 15:19:18 +00:00
mikel
ffe5d2d664
don't forget the bus_space tag; from Azuma Okamoto in PR kern/3290.
1997-03-05 08:02:03 +00:00
jonathan
61d121e3d7
Undefine the macros defined by dec_prom.h, in the compiled-in
...
libsa functions that define function entrypoints for them.
1997-03-05 05:20:40 +00:00
jonathan
d01b866f0c
Build kernel object files with -mno-abicalls and -mno-half-pic. (The
...
kernel doesn't support GP-relative addressing, and is statically linked).
Compile genassym without those flags: -mno-abicalls will make it coredump.
1997-03-05 04:41:57 +00:00
mycroft
bbb6842922
In nfs_link(), check for a cross-device mount *before* looking in the
...
v_data field.
1997-03-05 02:08:06 +00:00
gwr
88bf00b5bf
No need to block out ZS interrupts in clock_intr() as long as
...
we are careful to use the single_inst_* macros.
1997-03-05 00:01:13 +00:00
gwr
9587adc460
Fix race conditions that allowed the interrupt latch register to have
...
the wrong value. Now using the <m68k/asm_single.h> stuff from Leo.
1997-03-04 23:37:48 +00:00
gwr
7c5b45aead
Fix a warning.
1997-03-04 22:20:04 +00:00
gwr
c03be2ad19
Add declaration for isbad().
1997-03-04 21:59:08 +00:00
mycroft
e481e52aa9
Fix a couple of splhigh()s that should be splbio().
1997-03-04 21:42:32 +00:00
mycroft
e4bbd86a82
Use splimp() to block interrupts, not splhigh().
1997-03-04 21:40:07 +00:00
gwr
67f52ad8a0
Reinstate "isbad" which is used by the xd and xy drivers.
1997-03-04 19:33:23 +00:00
scottr
fd81cf2b92
Correct offsets in the memory size probe; bus_space uses byte offsets. Fix suggested by
...
Ken Nakata.
1997-03-04 15:12:04 +00:00
mikel
4a6b41b8fe
garbage collect unused variable (was this struct declaration orginally
...
a typedef?); from Enami Tsugutomo in PR kern/3282.
1997-03-04 06:25:22 +00:00
scottr
956ec2a47c
The previous optimization of the interrupt handlers was a bit too
...
agressive. Being a little more conservative pays the biggest dividend.
1997-03-04 04:11:52 +00:00
pk
18b2bdb000
Fix calculation of max virtual memory to be gobbled up by the buffer cache.
...
Apply "stop-gap" nbuf clamp only on sun4/4c and if nbuf not explicitly
configured in.
1997-03-03 23:07:15 +00:00
christos
700cbbae46
Fix bug introduced in the conversion to bus_*(). Don't always say that
...
we are a JASS16. From enami tsugutomo.
1997-03-03 21:40:01 +00:00
mycroft
3a474fa002
Remove a printf() that's no longer needed.
1997-03-03 20:56:12 +00:00
leo
224221401b
Ooops. Add cvs-id + copyright.
1997-03-03 13:55:50 +00:00
leo
b170f473ba
Add bus_space_peek_[1248] functions. These can be used by match/probe
...
functions.
1997-03-03 12:28:20 +00:00
leo
301f6163bb
Addition of VME bus code.
1997-03-03 12:26:20 +00:00
leo
485c62188c
VME bus code
1997-03-03 12:20:57 +00:00
jeremy
c0b46da054
Use IOMMU_PAGE_SIZE instead of NBPG, since theoretically the IOMMU page size
...
is different than the CPU page size.
1997-03-03 06:51:42 +00:00
scottr
f749003301
Fix part of last change: don't mask off the high bit of the VIA IER until
...
the interrupt has been unflagged. Problem noticed by Paul Goyette.
1997-03-03 04:19:06 +00:00
mycroft
8c6fca26ee
Oops! Fix this to block all interrupts during configuration, after previous
...
interrupt priority changes.
1997-03-03 02:33:41 +00:00
jonathan
72a7ae4ee5
Add architecture-specific ELf relocs for mips chips.
1997-03-03 00:19:29 +00:00
jeremy
290f55615a
Took switch statement out of main loop in pmap_protect() and explained more
...
of the rationale behind it.
1997-03-02 07:59:21 +00:00
scottr
93d8b2c8b0
Add the MAC68K_BROKEN_VIDEO option, which is a hack that delays enabling
...
NuBus interrupts until an Ethernet card is attached.
XXX This should go away at some point, obviously.
1997-03-02 06:43:00 +00:00
scottr
152b0ab7d2
Adapt to sbc driver/attachment split
1997-03-01 20:22:16 +00:00
scottr
421abedbfe
Split bus-dependent autoconfig code from the driver. This allows for
...
the future addition of a Duo Dock front end.
1997-03-01 20:18:58 +00:00
scottr
df7f40213a
Allow A1 to be used for passing arguments to ROM routines. Also, clean up
...
debugging printf() formats. From Allen Briggs and Paul Goyette.
1997-03-01 17:20:34 +00:00
matthias
bda3351fc0
Some cosmetic changes.
1997-03-01 09:50:44 +00:00
matthias
dd064fc88a
Reset the scsibus only when bit 2 is set in flags.
1997-03-01 09:50:40 +00:00
matthias
da45c7f449
remove reference to pc532/kgdb_stub.c. We now use the mi version.
1997-03-01 09:50:30 +00:00
matthias
5a74618671
The ns32532 has no alignment restrictions. Define ALIGNED_POINTER to
...
reflect this.
1997-03-01 09:50:19 +00:00
matthias
035bf3987f
make db_expr_t a long.
1997-03-01 09:50:16 +00:00
matthias
73ea4ca540
Document a non-obvious use of addr in interrupt().
1997-03-01 09:49:48 +00:00
matthias
799c3228ec
kgdb_connect and kgdb_panic are not define in the mi kgdb_stub.c. Define
...
them here.
1997-03-01 09:49:45 +00:00
matthias
63183795c0
imask[IPL_ZERO] was updated after recomputing the run masks for all the
...
interrupt handlers. Due to this
- DIAGNOSTIC kernels would panic
- check_sir would run with the interrupt registered last blocked
Credits for finding and fixing this go to Ian Dall.
1997-03-01 09:49:44 +00:00
matthias
597322b455
* Adapt to changed definition of struct db_variable.
...
* Some cosmetic changes.
1997-03-01 09:49:42 +00:00
matthias
453b47e7bb
removed. We now use the mi version from /sys/kern.
1997-03-01 09:49:20 +00:00
scottr
a4b0e4c070
Protect MCLSHIFT definition so users can customize MCLBYTES, from Jonathan.
1997-03-01 06:57:45 +00:00
scottr
42be6ebfa7
Fix prototype for espmatch()
1997-03-01 06:38:36 +00:00
gwr
8e9324f653
Allow access to the PROM via /dev/kmem (like the sparc port)
1997-02-28 22:35:12 +00:00
gwr
403bdb83fa
Add xxc_print functions to pass to config_found() instead of NULL.
...
(Thanks to Chris Demetriou suggesting the improvement.)
1997-02-28 21:23:06 +00:00
gwr
507bc60404
Define pmap_page_index as a macro.
1997-02-28 19:57:35 +00:00
gwr
03ff0a0c9b
Allow pmap_page_index to be a macro (in pmap.h)
...
Make pmap_free_pages() teturn what actually remains
(Thanks to Wolfgang Solfrank for suggesting the fix.)
Fix some typos while I'm here...
1997-02-28 19:55:37 +00:00
gwr
58a45b478c
Remove a diagnostic check in sunmon_reboot broke reboot on the sun3.
1997-02-28 19:47:15 +00:00
gwr
1354ca2916
Get rid of some printf noise.
1997-02-28 17:17:22 +00:00
mycroft
b2038a332d
Import interrupt priority changes from com patches:
...
* Make it a strict hierarchy. (It was close anyway).
* Add `serial' and rename `softtty' to `softserial'.
* Make soft interrupts a bit less special-case.
1997-02-28 16:24:03 +00:00
scottr
215c0b896a
Convert to generalized VIA interrupt registration
1997-02-28 15:50:50 +00:00
jonathan
b57cf6e1ce
Remove obsolete comment. (This config *does* work).
1997-02-28 09:51:21 +00:00
scottr
705c637874
Define aesetup() to return an int, so that the attach function can
...
determine whether there was an error (if so, we unmap the slot space
for this device). Use this functionality to tell the attach function
that we couldn't clear the card's buffer.
Also in aesetup(), eliminate the bogus repetition of the error message
we print when the buffer clear actually fails. Noticed by Hauke Fath.
1997-02-28 08:56:05 +00:00
scottr
0b3eb5f3f2
Remove duplicate <machine/bus.h> include that crept in.
1997-02-28 07:54:02 +00:00
scottr
17fdd597df
Move the NuBus-specific watchdog function from if_ae.c to if_ae_nubus.c,
...
and allow the attach function to override the default watchdog. Also,
do some minor cosmetic surgery (rename bus space tags/handles and some
KNFing I missed the first time around).
1997-02-28 07:52:44 +00:00
scottr
359101fb43
Convert to generalized VIA interrupt registration
1997-02-28 07:46:59 +00:00
scottr
8f37a2983b
Generalize VIA1 and VIA2 interrupt registration a bit, and do a slight
...
optimization on the VIA interrupt handlers.
1997-02-28 07:41:41 +00:00
mycroft
695fbc60e2
Use splclock() to block time updates, not splhigh().
1997-02-28 05:01:21 +00:00
mycroft
85b2440284
Use splclock() to block time updates, not splhigh().
1997-02-28 04:45:35 +00:00
mycroft
2563167e16
There's no reason to use splhigh() here.
1997-02-28 04:44:08 +00:00
jonathan
cf0bcbc9b6
Define ALIGNED_POINTER
...
(missed when other <arch>/include/param.h files were updated)
1997-02-28 02:24:41 +00:00
jonathan
f0f7e53290
Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".
...
Add code to netstat to use libkvm to for kernel variables "mclbytes"
and "msize', and if found, use those for netstat -m rather than
compiled-in defaults.
1997-02-28 00:14:19 +00:00
ragge
9bf924ecc4
Be able to find out if we are booted from network.
1997-02-27 19:43:26 +00:00
gwr
4d534f3d52
Define VM_MAX_KERNEL_ADDRESS using KERN_END instead of a constant.
1997-02-27 18:22:53 +00:00
gwr
9b75e011ab
Allow option MCLSHIFT=x to control MCLBYTES etc.
1997-02-27 18:12:38 +00:00
mycroft
700dee447e
DTRT if vm_object_lookup() returns NULL. This may happen while an object is
...
being created or destroyed.
1997-02-27 17:49:05 +00:00
briggs
5933eeaaed
Add ncr53c9x flag to esp.
1997-02-27 14:07:59 +00:00
briggs
868344972a
mac68k-specific portion of m.i. ncr53c9x driver.
1997-02-27 14:06:25 +00:00
briggs
2163898eeb
Add the 53c96 variant.
1997-02-27 13:59:32 +00:00
veego
96c6c333c2
Protect MCLSHIFT definition so users can customize MCLBYTES.
...
patch from jonathan.
1997-02-27 08:31:17 +00:00
mikel
275506db58
fix reversal of strings for ddb.lines and ddb.tabstops; from Andrew
...
Wheadon in PR kern/3262.
fix a typo in a comment while I'm here.
1997-02-27 06:25:27 +00:00
mikel
2b739d31e9
update comment corresponding to sun_len; legacy code usually fails to
...
include a terminating NUL character for sun_path. fixes PR 3035.
1997-02-27 05:46:37 +00:00
jonathan
6ed95c4eb8
Protect MCLSHIFT definition so users can customize MCLBYTES.
1997-02-27 03:52:17 +00:00
thorpej
e33bdc63ae
Update for MI 53c9x driver.
1997-02-27 01:30:05 +00:00
thorpej
4042a48848
Update for new 53c9x driver.
1997-02-27 01:27:54 +00:00
thorpej
dea68fb2a1
s/esp/asc/g
1997-02-27 01:21:41 +00:00
thorpej
0017cafe69
s/esp/asc/g, and make it carry the ncr53c9x attribute.
1997-02-27 01:20:53 +00:00
thorpej
2c223871dd
Add a front-end for the MI 53c9x driver, called "asc", which is the
...
name used by Digital UNIX (formerly DEC OSF/1).
1997-02-27 01:19:40 +00:00
thorpej
4878198b5c
Remove this driver; it is now obsolete.
1997-02-27 01:17:56 +00:00
thorpej
f868730b6a
esp carries ncr53c9x attribute
1997-02-27 01:17:09 +00:00
thorpej
5464afa761
Convert the SPARC esp driver to be a front-end for the MI 53c9x driver.
1997-02-27 01:16:19 +00:00
thorpej
d02bfeb0ac
Define the ncr53c9x attribute to pull in the MI 53c9x driver.
1997-02-27 01:13:45 +00:00
thorpej
dd89d8fd78
Machine-independent NCR 53c9x SCSI driver, derived from the SPARC/Alpha
...
versions. Thanks to Chris Demetrious and Paul Krannenburg for the
initial work towards merging the two.
1997-02-27 01:12:07 +00:00
mycroft
2929dff5bd
Use genassym.sh, to support cross-compilation.
1997-02-26 23:50:04 +00:00
thorpej
61deb88642
Remove prepending "#" and "$" characters from constants so this can
...
be used for m68k and i386 targets.
1997-02-26 23:44:24 +00:00
gwr
2de163471e
Minimal changes to adapt to removal of NCR5380_PERMIT_RESELECT.
...
This driver should be updated to allow per-target control over
disconnect/reselect, but I will leave that to the port masters.
1997-02-26 22:29:08 +00:00
gwr
07b4e45308
Allow per-target control over disconnect/reselect.
1997-02-26 22:26:00 +00:00
gwr
9f53f9825f
Use sc_no_disconnect (per-target) instead of NCR5380_PERMIT_RESELECT.
1997-02-26 22:23:48 +00:00
gwr
07378343ed
Add the new member "sc_no_disconnect" to ncr5380_softc, and
...
remove NCR5380_PERMIT_RESELECT.
1997-02-26 22:22:13 +00:00
gwr
bb9cc8ad2b
Use ALIGNBYTES in the new ALIGNED_POINTER macro.
...
(That is always good enough on the m68k.)
1997-02-26 20:36:13 +00:00
gwr
4dd31a28f0
Integrate fix for rude targets that transfer more data than requested.
...
(From Matthias Pfaller).
1997-02-26 20:31:16 +00:00
ragge
5e35ea57c5
Patches to make VS2000 to work. From Ari Suutari.
1997-02-26 18:38:19 +00:00
leo
60bde8d1ca
Fix a kernel-dump that occurred when accessing a grf-device that was configured
...
in the config file but not found by the autoconfig code.
1997-02-26 12:28:40 +00:00
leo
5e2ca8918d
Use generic date conversion module.
1997-02-26 12:26:36 +00:00
leo
2d43c4a079
Allow MCLSHIFT to be overridden by a config option.
1997-02-26 12:22:06 +00:00
leo
9324e8d0ed
Move all spl-related stuff to the new file intr.h. The latter file also
...
contains some generic defines used by the drivers in dev/[pci|isa].
1997-02-26 12:18:50 +00:00
sommerfe
9def46bf50
Fix PR3260: cosmetic glitch in aha autoconf output.
1997-02-26 04:52:13 +00:00
mrg
78cd2f6f78
allow src-routed packetd by default, per host requirements
1997-02-26 04:09:32 +00:00
tls
fad978b853
a mutex on vnode_pager_sync avoids another race condition, only possible if sync were called again while we were sleeping. This should be the last of this nest of bugs. From mycroft.
1997-02-26 02:26:19 +00:00
jonathan
7cebde0e19
Protect MCLSHIFT definition so users can customize MCLBYTES.
...
Also define MCLBYTES from MCLSHIFT.
1997-02-26 01:45:41 +00:00
jonathan
a2ff9d9662
Protect MCLSHIFT definition so users can customize MCLBYTES.
1997-02-26 01:21:18 +00:00
thorpej
cbb4319fb9
vm_object_shadow(): Add a DIAGNOSTIC check for shadowing a null object.
...
From Charles Hannum <mycroft@netbsd.org>
1997-02-25 23:28:09 +00:00
thorpej
a49641e340
vm_map_copy_entry(): Don't set "needs_copy" on a zero-fill entry.
...
From Charles Hannum <mycroft@netbsd.org>
1997-02-25 23:27:08 +00:00
cgd
1dd5b5116d
Back out the last commit:
...
>date: 1997/02/20 06:43:48; author: mikel; state: Exp; lines: +2 -2
>include terminating null in count returned by SUN_LEN macro; from
> Enami Tsugutomo in PR kern/3035.
1997-02-25 20:04:19 +00:00
oki
b339d19d50
fixed typo
1997-02-25 17:49:46 +00:00
cjs
8a449a258b
Add net.inet.ip.allowsrcrt option which allows/drops all source
...
routed packets. This currently defaults to `drop,' but once we
verify that all applications that rely on determining remote IP
addresses for authentication are dropping the connection when they
see a source route option (not just disabling the source route
option), we can turn this back on and conform with the host
requirements.
1997-02-25 08:35:41 +00:00
scottr
a2a40938b1
Move bus-independent setup code back into if_ae.c; enable the use of
...
configuration flags. For NuBus cards, attempt to find the MAC address
in the declaration ROM resources.
1997-02-25 06:36:04 +00:00
cgd
b2d1fe0537
update for current reality. Needs a lot of work.
1997-02-25 03:17:20 +00:00
cgd
0959d79d86
kill this
1997-02-25 03:16:57 +00:00
gwr
3435c699a5
Add ch, fd, ss, tun, uk
...
Add cdev for md
Add lkm slots
1997-02-25 01:15:01 +00:00
gwr
a4d9d21d6e
Define fdc,fd so config will create fdc.h
1997-02-25 00:46:58 +00:00
fvdl
a94614a50f
Use ALIGNED_POINTER to see whether mbuf data needs to be realigned.
1997-02-24 23:26:20 +00:00
fvdl
115b6d92fa
Define ALIGNED_POINTER
1997-02-24 23:16:53 +00:00
thorpej
7327c8cf62
From Charles Hannum:
...
During a collapse, abort if the object is paging; the pagedaemon can
trigger a collapse, causing deadlock. (XXX)
1997-02-24 22:19:26 +00:00
christos
7fb32152cc
Fix PR/3253: Don't try to probe the isapnp port in ioports already claimed
...
by other devices.
1997-02-24 22:13:55 +00:00
christos
e4fb91bcb5
Fix PR/3251; also don't assign the checksum every time around the loop.
1997-02-24 22:08:25 +00:00
gwr
1da91c27bc
Tweak the KGDB glue slightly - do the printf here.
1997-02-24 16:03:05 +00:00
gwr
f9d32cbb9b
Add declaration for zs_check_kgdb()
1997-02-24 16:01:39 +00:00
gwr
ae70fb71ec
No need for dma_cd, so move it into the #if 0 section too.
1997-02-24 15:02:23 +00:00
leo
298aecde5a
Force root to be on the ram-disk.
1997-02-24 12:23:33 +00:00
leo
3052dff85d
Only make the memory-disk device the default root device when
...
MEMORY_DISK_IS_ROOT is defined.
1997-02-24 12:20:47 +00:00
scottr
f03ee128a3
Add support for the Kinetics EtherPort SE/30, from Ken Nakata.
1997-02-24 07:34:18 +00:00
scottr
965cffaf20
NUBUS_SLOT_TO_PADDR -> NUBUS_SLOT2PA
1997-02-24 06:20:04 +00:00
scottr
155eb6369a
Update to reflect ae driver/attachment code split
1997-02-24 06:05:20 +00:00
scottr
6b0774a865
Split out the NuBus attachment code, and convert to bus.h
1997-02-24 06:03:55 +00:00
scottr
5e77023e13
The bus space tag really isn't used; stop the compiler from complaining.
1997-02-24 05:55:14 +00:00
scottr
9c91a181d6
Update copyright and license.
1997-02-24 05:47:33 +00:00
jeremy
1c79e9f83d
The first GENERIC config for sun3x. Includes new esp driver.
1997-02-24 03:53:52 +00:00
jeremy
eaca552bf2
Added files for esp SCSI driver.
1997-02-24 01:47:08 +00:00
jeremy
ad9700fa62
Initial import from SPARC port.
1997-02-24 01:45:13 +00:00
jeremy
202a9fe423
Added some more comments and disabled removal of DVMA alias mapping from
...
kernel space in dvma_mapout() as it may cause problems with the current
pmap_remove().
1997-02-24 01:37:52 +00:00
jeremy
689b14f477
Get rid of inclusion of pmap_pvt.h and use the standard pmap functions for
...
mapping.
1997-02-24 01:35:33 +00:00
cgd
3192bd314f
turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks
1997-02-23 20:42:24 +00:00
mrg
82f19ac36c
lite2
1997-02-23 09:58:53 +00:00
mrg
3b9c3fff2e
restructure vm_object_overlay() to collapse objects in more cases.
...
change one diag panic() to a diag printf(). from mycroft.
1997-02-23 09:01:37 +00:00
mrg
8eba4aeacb
don't clean fading objects. from mycroft.
1997-02-23 08:56:57 +00:00
mark
e5c684f608
Added lots more items.
1997-02-23 04:21:28 +00:00
mark
c812c6e43d
Do profiling if GPROF and PROFILE_ASM are defined.
1997-02-23 04:20:29 +00:00
mark
9675b132fa
Updated to reflect the addition of the icside and rapide drivers.
1997-02-23 04:15:20 +00:00
mark
13f13977eb
Since the setroot changes set_swap_device() is has been a dead function
...
so remove it.
1997-02-23 04:09:53 +00:00
mark
a61dea1a59
Added files for the icside and rapide device drivers.
1997-02-23 04:08:49 +00:00
mark
4fbf5c86aa
Clean and flush the instruction and data caches prior to turning of the
...
MMU in boot0().
This solves the problem of cache hits after the kernel has rebooted the
machine as even with the cache off hits will occur for data/instructions
already in the cache.
1997-02-23 04:05:19 +00:00
mark
045ff1df99
Initial commit of the rapide driver. This driver provides support for the
...
RapIDE32 EIDE interface podules.
This driver currently only support issue 2 podules.
1997-02-23 04:00:31 +00:00
mark
a47555862b
Initial commit of the icside driver. This driver provides support for
...
the ICS IDEA IDE interface podules.
1997-02-23 03:57:45 +00:00
mark
66f1f203e3
Synchronise with podules files.
1997-02-23 03:52:29 +00:00
mark
6c7cc537c9
Add ID for ANT EtherM network slot interfaces.
1997-02-23 03:51:19 +00:00
mrg
3a0a1d42da
in pollscan, cast incoming fd to unsigned int. from mycroft.
1997-02-23 02:23:07 +00:00
fvdl
501f1a3eb9
Do previous change properly (pasto; should have been inside the loop).
1997-02-23 00:07:18 +00:00
fvdl
d4b4c37b39
Cast pointer to u_long, not int, when doing the alignment check.
...
Fixes warnings on the Alpha. Needs a better solution.
1997-02-22 23:33:05 +00:00
gwr
eb84168030
Suport size=4 in bus_peek(), and clean out some junk.
1997-02-22 19:27:18 +00:00
gwr
0f37c96cc4
Add peek_long()
1997-02-22 19:06:24 +00:00
scottr
64d150af76
Avoid duplicate definition of PFIL_HOOKS in the case that the config
...
file specifies that option.
1997-02-22 17:52:44 +00:00
scottr
7524900a0f
Remove niggles that made it into the copyright, and correct the
...
license terms (added Jason Thorpe).
1997-02-22 04:56:17 +00:00
thorpej
a49beaa16a
Possesive, Jason... possesive....
1997-02-22 04:36:48 +00:00
thorpej
75be8504f4
More good stuff from Charles:
...
Eliminate a nasty race condition in vnode_pager_sync() by making
two passes. First, find all of the objects to be cleaned and reference
them. Second, traverse this list objects, cleaning them if there are
references other than us.
1997-02-22 04:11:42 +00:00
jeremy
0b6a4ac7bb
Make the device attach output look more like the SPARC iommu.
1997-02-22 04:02:39 +00:00
jeremy
d6034ecf66
Add page size constant, since I/O mapper page size may differ from cpu page
...
size.
1997-02-22 04:01:04 +00:00
thorpej
cf9c91c5d7
Allow non-superuser to open, listen to, and send safe commands on the
...
routing socket. Superuser priviledge is required for all commands
but RTM_GET.
1997-02-22 03:47:01 +00:00
fvdl
8b21bbed9b
Implement similar fix as in the NQNFS fix from BSDI, to avoid race conditions
...
when unmounting. It cleans up the loop a bit too.
1997-02-22 03:25:05 +00:00
fvdl
0538233e2c
Implement changes to make fix for NQNFS and MFS unmounting (race conditions)
...
work. Not quite as good as with the Lite2 merges, but it'll do until then.
* dounmount() expects to be called with the mountpoint marked busy
* all callers of dounmount() thus make the call themselves
* if a filesystem was being unmounted, and we're woken up in vfs_busy(),
don't reference the mountpoint struct pointer, as it has very probably
been freed.
1997-02-22 03:22:32 +00:00
jeremy
996c634929
Rewrite pmap_remove() to be speedier with large address spaces.
1997-02-22 03:18:30 +00:00
fvdl
9abd6715f6
Fixes from BSDI (thanks go to Keith Bostic). Original RCS message:
...
date: 1997/02/10 18:41:15; author: cp; state: Exp; lines: +8 -2
Make nfs_realign go away on sparc and add functionality to nfsm_disct.
===
[XXX this introduces an ifdef __i386__, see the comment. Should be changed]
1997-02-22 03:11:12 +00:00
fvdl
37986aa09a
Fixes from BSDI (thanks go to Keith Bostic). Original RCS messages:
...
date: 1996/07/23 17:14:46; author: donn; state: Exp; lines: +6 -4
Be sure to push out the last page of the file before truncating it.
date: 1996/10/14 22:41:20; author: donn; state: Exp; lines: +2 -2
From Chris: Nfs_link() called vput() on the wrong vnode when aborting
from a cross-device link, which could (and did) lead to crashes.
date: 1996/10/24 16:43:43; author: pjd; state: Exp; lines: +6 -2
Return EOPNOTSUPP when trying to do a setattr with flags.
===
Also (from BSDI too, but the RCS message did not quite describe the change
to this particular file well): move the EROFS a bit further down to
let VOP_ACCESS do it's work and return an 'expected' error value to
a possible layered filesystem.
1997-02-22 03:08:47 +00:00
fvdl
03fd36b882
Fixes from BSDI (thanks go to Keith Bostic). Original RCS messages:
...
date: 1997/02/10 18:41:14; author: cp; state: Exp; lines: +110 -46
Make nfs_realign go away on sparc and add functionality to nfsm_disct.
1997-02-22 03:03:03 +00:00
fvdl
dce1770311
Fixes from BSDI (thanks go to Keith Bostic). Original RCS messages:
...
date: 1995/11/30 20:37:03; author: cp; state: Exp; lines: +25 -14
Change splsoftclock() to splnet();
Make nfsrv_getstream create two copies of data when
splitting up an mbuf rather than two references to the
same external buffer. The symptom this fixes is client
hangs.
date: 1997/02/10 18:41:13; author: cp; state: Exp; lines: +4 -1
Make nfs_realign go away on sparc and add functionality to nfsm_disct.
1997-02-22 02:59:08 +00:00
fvdl
2958b47104
Fixes from BSDI (thanks go to Keith Bostic). Original RCS message:
...
date: 1996/11/20 20:02:54; author: pjd; state: Exp; lines: +7 -4
In nfsrv_access(), if VOP_ACCESS() returns an error and the
error == EPERM or its not the owner doing the access, return the error.
1997-02-22 02:56:01 +00:00
fvdl
78d0ef4390
Fixes from BSDI (thanks go to Keith Bostic). Original RCS messages:
...
date: 1995/11/30 20:37:53; author: cp; state: Exp; lines: +3 -3
Change splsoftclock() to splnet();
Make nfsrv_getstream create two copies of data when
splitting up an mbuf rather than two references to the
same external buffer. The symptom this fixes is client
hangs.
date: 1996/10/16 00:06:05; author: ewv; state: Exp; lines: +5 -3
Clear pending signal when an unmount fails, this allows us another chance
at the umount after a short sleep. The fixes a problem where /usr is
mounted via nqnfs and the system hangs on shutdown since the umount()
always fails with EBUSY (inetd is still busy on usr) and since we don't
clear the signal we end up stuck looping and never give inetd a chance to
catch its SIGKILL.
date: 1996/10/23 18:22:14; author: donn; state: Exp; lines: +12 -7
Kirk's changes to prevent races when unmounting. (1) Unmount()
and vfs_unmountall() now call vfs_busy() so that they participates
in the mount structure locking scheme. Dounmount() calls vfs_unbusy()
to unlock things, and makes sure to wake up waiters if there's an
error. (2) The MFS and NQNFS daemons also now use vfs_busy() when
unmounting filesystems. Kirk restructured the code so that a
successful unmount by another process won't leave the possibility
that a daemon might reference a mount structure that has been freed.
1997-02-22 02:51:47 +00:00
fvdl
c7a919199a
Silently clear NFSMNT_NOCONN if it's a TCP mount.
1997-02-22 02:48:26 +00:00
fvdl
7a970115da
Fixes from BSDI (thanks go to Keith Bostic). Original RCS messages:
...
date: 1996/09/06 03:00:31; author: donn; state: Exp; lines: +1 -2
Because NFS doesn't implement vnode locking, nfs_inactive() doesn't really
have the vnode locked and hence it can't reliably access the vnode after
it performs a blocking operation. We remove one blocking call and push
the no-op VOP_UNLOCK higher so that we don't access the vnode after we
delete the sillyrename file. This should prevent crashes we've seen in
which the vnode turned into a UFS vnode and caused a panic in ufs_unlock()
when we tried to 'unlock' it.
date: 1996/09/25 19:15:21; author: cp; state: Exp; lines: +4 -0
Kirk's change to not corrupt files after a delete.
date: 1996/11/08 19:53:45; author: donn; state: Exp; lines: +16 -4
Krik's change to solve the paradox that vclean() calls nfs_inactive()
with VXLOCK set on the vnode, and nfs_inactive() was calling vget()
to get a reference on the vnode, which in turn hung on VXLOCK.
Nfs_inactive() now checks v_usecount to make sure that the vnode
is not coming from vclean() before it does a vget().
1997-02-22 02:45:48 +00:00
scottr
db2ab09cf2
Add bus.h, in light of recent nubus_attach_args changes
1997-02-22 02:17:40 +00:00
abrown
4ca0768334
Fix bug in pmap_page_copy and pmap_page_zero that caused data corruption
...
when paging on Sun4m machines with SuperSPARC processors. Essentially,
the copy/zero operations were done via uncached memory accesses, which
bypassed the snooping logic of the write-back caches, causing stale data
to be copied or generated.
Pointed out by Chris Torek <torek@bsdi.com>
1997-02-22 00:06:06 +00:00
scottr
ec6725f267
Make this compile again; missed this file when fixing nubus.h errors.
1997-02-22 00:00:34 +00:00
thorpej
60449c1840
Don't let the read timeout get inadvertently rounded down to 0.
...
From John Hawkinson <jhawk@mit.edu>, PR #2531 .
1997-02-21 23:59:35 +00:00
thorpej
15b56daab6
If posting an error condition because the media has been unloaded,
...
make sure to set the residual count to reflect that no data was
transfered.
From Naofumi HONDA / MINOURA Makoto, PR #3007 .
1997-02-21 23:03:25 +00:00
thorpej
850b75414f
- Tidy up some printf code in chattach().
...
- Implement a simple quirks framework for changers.
- Add a quirk for the Spectra 9000 8mm tape library; it requires a
slightly-longer-than-1-minute delay to take tape inventory. Many
thanks to David Webster at Cygnus Solutions for testing this for me.
1997-02-21 22:06:52 +00:00
thorpej
625d310b1b
Handle optical disks a little better, from Naofumi HONDA / MINOURA Makoto
...
in PR #3009 , with some slight KNF from me.
1997-02-21 21:51:59 +00:00
thorpej
bf13067994
Give the entry point of this LKM a sane name, as suggested by
...
Matthias Scheler <tron@lyssa.owl.de> in PR #3140 .
1997-02-21 21:11:16 +00:00
gwr
900bc3f621
Add OBIO_EMULEX_SCSI, and some comments about attach order.
1997-02-21 20:33:09 +00:00
thorpej
255b9d74d8
Rewrite the object chain collapse code. Bugs fixed are too numerous
...
to describe here. This should fix the problems with "hanging processes"
people have seen since the original object collapse code was committed.
From Charles Hannum <mycroft@netbsd.org>
1997-02-21 20:30:49 +00:00
thorpej
235a2d71f7
Use vm_object_paging() to test if an object has pages in transit.
...
From Charles Hannum <mycroft@netbsd.org>
1997-02-21 20:27:21 +00:00
thorpej
dd8d0f1f00
Define a macro to test if an object has pages in transit. Clarify
...
some arithmetic, and nuke an unneeded prototype.
From Charles Hannum <mycroft@netbsd.org>.
1997-02-21 20:26:03 +00:00
thorpej
17b60fc6e9
In vnode_pager_sync(), we need to vm_object_deallocate() after cleaning
...
pages. Noticed by Thor Simon <tls@netbsd.org>, confirmed by
Charles Hannum <mycroft@netbsd.org>
1997-02-21 20:22:39 +00:00
jeremy
2eff5a6059
Fix typo in comment.
1997-02-21 07:14:21 +00:00