pk
7b9f9e5426
Check user access rights only if `uio_segflg' says it's a user space buffer.
1996-06-13 22:30:18 +00:00
pk
e2655dd7cc
Allow DIAGNOSTIC kernels a FLUSHWIN trap in order to record stack traces
...
(currently used by the nullfs filesystem code, noted by der mouse).
1996-06-13 22:26:21 +00:00
cgd
af576d8a9f
no need for a local implementation of SIOCGIFMTU; delete it.
...
s/ifr_metric/ifr_mtu/ where appropriate (in SIOCSIFMTU code), since
MTU data no longer (loggically) stored in ifr_metric.
1996-06-13 21:51:53 +00:00
cgd
1f29d4b51f
no need for a local implementation of SIOCGIFMTU; delete it.
1996-06-13 21:50:32 +00:00
cgd
ba3b2a87a2
implement SIOCGIFMTU in a generic manner, by pulling the MTU out of
...
each netif's if_data structure. There's no point in making each
driver implement this ioctl.
1996-06-13 21:49:43 +00:00
cgd
2e3d795708
add an ifru_mtu member to the union in 'struct ifreq', and add a
...
#define so that ifr_mtu accesses that. MTU shouldn't be overloaded
with ifr_metric, if only for clarity. Adding an MTU field to the
union hurts nothing (in fact, does not actually _change_ generated
code), and does improve clarity.
1996-06-13 21:48:34 +00:00
cgd
49c6ac313f
update readme files for present reality.
1996-06-13 20:36:04 +00:00
christos
d83602c110
Simplify and add comments.
1996-06-13 19:27:01 +00:00
cgd
53a97a8870
get rid of now-unnecessary kernel config files (now that swap generic
...
works) for my machines and now-nonexistent test machines. Clean up
options in existing config files so that they're more consistent. Add
more units of various pseudo-devices to several.
1996-06-13 19:18:16 +00:00
is
052a8aa0ba
Fix a bug in the 68020+68851 / 68030 branch of the buserr handler:
...
For these CPU's, you have to use the ptest operation to search the mmu
tables in order to decide whether it is a real bus error or just a
page fault or write protection violation.
Our old code assumed user space always when calling ptest, and
erroneously assumed the BUSERR bit in the ptest output (mmusr
register) is the only indication for bus errors to check.
In fact, we have to follow a multistage decision tree to decide. 68060
CPUs are much easier to handle correctly.
1996-06-13 19:12:25 +00:00
christos
4d9a6e0930
- Pass the Elf32_Ehdr in the linux probe function, and use it!
...
Since linux binaries are (mostly) always compiled with gcc, look for
the gcc signature in the .comment section header: "\0 GCC: (GNU) ".
I've changed the probe order in kern/exec_elf.c to probe for linux ELF
binaries first and fall back to SVR4 binaries. This makes statically
linked binaries work for both linux and svr4. Note that gcc-compiled
svr4 binaries, still contain the operating system signature first and
then the GCC signature, so there is no conflict. Yes this is a hack.
1996-06-13 18:42:01 +00:00
christos
9c07ccd65c
- Add definitions for Elf section headers.
...
- Add prototype for elf_read_from.
- KNF.
1996-06-13 18:36:42 +00:00
christos
306987eb37
- Pass the Elf exec header in the emulation dependent probe functions.
...
- remove static from elf_read_from().
1996-06-13 18:35:25 +00:00
christos
5d27db0882
Pass the elf exec header in the probe function.
1996-06-13 18:33:54 +00:00
cgd
386aeb320f
clean up copyright notices
1996-06-13 18:31:49 +00:00
mark
103a43ae29
Get the interrupt flags address from sc->sc_specific.sc_podule rather
...
than sc->sc_podule.
1996-06-13 18:29:45 +00:00
jonathan
592ca35c51
Fix typos in SUSP and DSUSP mapping when setting Ultrix posixmode tty
...
attributes (was 112 and 113, should be 12 and 13).
1996-06-13 18:13:34 +00:00
cgd
1abc77f86d
if kmem_malloc() fails while trying to allocate an mbuf cluster, try
...
and free some space by calling m_reclaim(). Also, log the "mb_map full"
error message (at most) every 60-seconds. The old code would log it
once over the lifetime of the system, but that's not a useful diagnostic.
(More useful is the new behaviour, which roughly indicates how often
periods of heavy load occur, without spamming the console and system
logs with messages.)
1996-06-13 17:02:23 +00:00
cgd
06c209646e
handle the case where kmem_malloc() returns NULL in the 'can wait' case.
...
Right now, this code just panic()s (same as kmem_malloc() used to do
before, but different message), but in the future it should be modified
to try to reclaim wasted memory.
1996-06-13 16:53:34 +00:00
cgd
62034405e6
allow kmem_malloc to return NULL if canwait is set and there's no map space
...
left, rather than panic()ing. This allows callers to set their own policy
for how to handle the shortage. Add a few comments.
1996-06-13 16:52:06 +00:00
jonathan
7adf57b6f5
Fix the reworked autoconfiguration to also boot on a 5000/200.
...
Check and avoid trying to configure (or dereference unknown arguments
to dcattach() and dcmatch() when called with busses the driver doesn't support.
1996-06-13 08:06:12 +00:00
cgd
f41d0a3d9b
in select(), if it's a small number of file descriptors use a
...
automatic array rather than an array allocated with alloca().
(This was the only use of alloca() in the kernel, and it wasn't
necessary or consistent with the way other functions in this file
work.)
1996-06-13 05:08:47 +00:00
cgd
d97900c6f4
boot device autodetection, using PROM's boot device environment variable.
...
This is a bit of a hack, as-is, since there's a lot of code that's
outright duplicated between the various files and because it doesn't
support detection of a network device as the root device. The
latter's not a problem yet, because NetBSD/Alpha can't load the kernel
from the network to begin with.
1996-06-13 04:53:47 +00:00
cgd
1e2b610d5a
#ifdef __alpha__, call a machine-dependent function with new device
...
structure and 'aux', right before ca_attach is called for the
newly-attached device. This allows the alpha port to do root device
autodetection without modifying every bus and device driver which could
be in the 'boot path.' In the long run, it may make sense to make
this machine-independent.
1996-06-13 04:50:29 +00:00
cgd
3a7c6bd270
note that the DEC 21000 isn't supported in the same way as for the 2000/300
1996-06-13 00:28:59 +00:00
cgd
b26a6f1d3d
We'd like to differentiate case for kernel boot flags, but the Alpha AXP
...
Architecture Reference Manual says that we shouldn't. 'a' is now back
to ~RB_SINGLE, and 'n' and 'N' now get RB_ASKNAME.
1996-06-13 00:24:52 +00:00
pk
fbc5fd1fca
Bound the buffer cache to 1/2 of kernel virtual memory, so machines with
...
lots of core don't run out of core (takes care of PR#2506).
1996-06-12 23:48:51 +00:00
pk
5ce90889f0
Remove unneeded header file.
1996-06-12 23:40:29 +00:00
cgd
a59ba05045
don't pass "argc," "argv," and "envp" from boot blocks to kernel;
...
they're unnecessary and there's no reason to use them. Have the
kernel get necessary values from the PROM directly.
1996-06-12 22:11:28 +00:00
cgd
3b3f71fb25
don't pass the firmware's console environment variable to the various console
...
initialization functions any more. None of them used it, and they can
get the same data more easily via the RPB.
1996-06-12 22:06:40 +00:00
cgd
f6d4b1367d
null-terminate strings returned by prom_getenv()
1996-06-12 21:59:52 +00:00
mark
31c4f7d574
Only read beyond the first byte of the podule header if we know that
...
an extended header is present i.e. don't assume an extended header as
however unlikely there could be a podule that doesn't have one.
Calculate an absolute address for the podule's interrupt mask rather
than leaving it relative to the base address of the podule.
If the interrupt status pointers are not present or are zero then
used the default bits as specified in the podule specification to
determine if the podule is interrupting.
1996-06-12 21:09:55 +00:00
mark
857439698b
Claim the interrupt when leaving the interrupt handler as there can
...
only ever be a owner of the netslot interrupt.
Don't declare ebintr() as static.
1996-06-12 21:01:56 +00:00
mark
27ab616466
Don't claim the podule interrupts but pass them on in case of
...
chained podule interrupt handlers.
Fill out the ih_maskaddr and ih_maskbits fields in the interrupt handler
structure so that interrupt dispatcher knows where to look to determine
if the handler should be called.
General code tidy up and source code formatting.
1996-06-12 20:59:10 +00:00
mark
4dd0dabfca
Don't claim the podule interrupts but pass them on in case of
...
chained podule interrupt handlers.
Fill out the ih_maskaddr and ih_maskbits fields in the interrupt handler
structure so that interrupt dispatcher knows where to look to determine
if the handler should be called.
1996-06-12 20:46:58 +00:00
mark
e5aad86168
Allow the mouse interrupt to be specified in the config file. Fall
...
back on timer 1 interrupts if none is specified.
Only set up timer 1 is the driver is using timer 1 interrupts.
Don't claim the interrupt but allow them to be passed on to other
handlers.
1996-06-12 20:30:59 +00:00
mark
7d688793a8
Claim the interrupt if it has been dealt with otherwise pass it on.
1996-06-12 20:28:29 +00:00
mark
08ec43427f
Added some sanity checks to irq_claim().
...
Fixed the handling of IPL_NONE.
Debugged support for interrupt chaining.
Fill out the intrnames array with the name of the interrupt handler
currently at the head of the chain.
Guarded several sanity checks with #ifdef DIAGNOSTIC.
1996-06-12 20:23:58 +00:00
is
51e832dc49
Fix a few off-by-one errors in bitnumbers used by print_fcode.
...
ptestX fc,<ea>,M used to be printed with the wrong semantics of the fc
field, and could panic the kernel if fc was interpreted as a register number.
1996-06-12 20:22:42 +00:00
mark
459cefbe67
Added support for the RC7500 interrupt registers
...
Added interrupt chaining.
Removed some dead debugging code.
Guarded several sanity checks with #ifdef DIAGNOSTIC
Make sure interrupts are disable while updating the IOMD interrupt
masks.
1996-06-12 20:19:35 +00:00
mark
1fd9b6f37c
Removed some dead code that could never get executed (followed a panic).
...
Updated several panic messages to indicate what part of the fault code
they came from.
1996-06-12 20:15:28 +00:00
mark
977f90bd3b
Removed copyin()/copyout() stub code.
...
Removed several old debugging functions that are no longer needed.
Block interrupts while updating the soft interrupt masks.
Fixed softclock interrupts and added IRQ_SOFTPLIP to the SPL_SOFT mask.
1996-06-12 20:12:04 +00:00
mark
47c523fff0
Spilt the copyinout() function into two separate functions copyin()
...
and copyout() so that the address space checks are done here rather than
in a bit of stub code.
1996-06-12 20:06:00 +00:00
mark
7b05ce2841
Updated to match changes in the irq handler structure.
...
Define symbols for the address space limits that copyin() and copyout()
compare against.
1996-06-12 20:02:42 +00:00
mark
13ff05d513
Don't claim the interrupts in hardclock() and statclock() but allow
...
them to be passed on to other interrupt handlers attached to the
timer interrupts.
1996-06-12 20:00:21 +00:00
mark
b8dfbd8fe6
Don't use signed compares when determining the copy direction.
1996-06-12 19:58:43 +00:00
mark
120210258e
Added a new machine command intrchain to dump the interupt handler
...
chains.
1996-06-12 19:57:06 +00:00
mark
8f541bdd1d
Added a couple of comments.
...
Defined VM_MAXKERN_ADDRESS as the maximum address for the kernel address
argument to copyin() and copyout().
1996-06-12 19:55:04 +00:00
mark
78d05630aa
Define insl() and outsl() as macros that currently just panic for the
...
moment.
1996-06-12 19:50:14 +00:00
mark
167d543662
Define several new macros for testing the processor mode.
1996-06-12 19:48:48 +00:00
mark
544631c0be
Guard structures and prototypes with #ifndef _LOCORE
...
Rename the currently unused irq handler structure fields for podule
interrupts so they make more sense.
Define IPL_NONE as a positive value instead of -1 and increase the
number of IPL levels.
1996-06-12 19:47:11 +00:00
mark
4d280731dd
Updated comments.
...
Print the irq masks for IPL_NONE.
1996-06-12 19:42:23 +00:00
mark
1f81e394d6
Only check the proc pointer in userret() if DIAGNOSTIC is defined.
1996-06-12 19:40:48 +00:00
mark
d4a21812c0
Updated the arm_fpe_boot() prototype.
1996-06-12 19:37:37 +00:00
mark
bbf3f35a4c
Pass the cpu structure to the FPE boot function so that the FPU class
...
and type can be updated if a FPA is detected.
1996-06-12 19:37:03 +00:00
mark
d9d6f7f246
RCS Id police.
1996-06-12 19:24:19 +00:00
mark
3ed835cae8
Only attach 1 VSYNC interrupt handler instead of a interrupt handler per
...
virtual console.
1996-06-12 19:12:57 +00:00
pk
2266b8dd57
Use the setting of the ESPCFG2_FE bit rather than revision number to decide
...
on the ESP chip's maximum transfer count.
1996-06-12 19:12:19 +00:00
cgd
5006cfa9ac
remove old, unused, framework for boot device detection. It's going
...
to be replaced by something new and working.
1996-06-12 19:00:17 +00:00
pk
d16dcebba7
Add signature for the Fujitsu MB86904 processor.
1996-06-12 18:39:15 +00:00
pk
f87e51fb6b
Turn on RB_ASKNAME if a `swap generic' kernel was not able to determine
...
the boot device. Also, call boot device hooks for all types of kernel
configurations.
Print "mainbus" name on sun4m machines.
1996-06-12 15:24:05 +00:00
pk
4dd7cb4f5c
Use ic_*' cacheinfo fields, and in the split-I&D case, derive
c_linesize[l2]'
...
from from the corresponding `ic_*' and `dc_*' values. This is not perfect,
but it makes SS4s and SS5s run until we have proper per-cpu cache handling.
1996-06-12 14:57:03 +00:00
pk
52d6871979
Use ic_*' cacheinfo fields, and in the split-I&D case, derive
c_linesize[l2]'
...
from from the corresponding `ic_*' and `dc_*' values. This is not perfect,
but it makes SS4s and SS5s run until we have proper per-cpu cache handling.
Use the `cache-physical?' property to determine the value of `vactype'
on sun4m's. If absent, set vactype to VAC_WRITETHROUGH (XXX) else VAC_NONE.
Print simpler sun4m CPU identifier on attach.
1996-06-12 14:56:09 +00:00
pk
6281105c8f
Introduce separate ic_* fields for instruction caches.
1996-06-12 14:47:45 +00:00
pk
6a4a26da0c
Correct test for dmachild' which failed on
esp at obio*' configs (PR#2541).
1996-06-12 12:46:21 +00:00
oki
add137e8e1
fixed sometimes hang up bug at boot time.
1996-06-12 12:09:30 +00:00
cgd
e1078396e5
copy down from libkern:
...
>use p->hashfraction when doing non-time-critical calculations, rather than
>using HASHFRACTION directly. in time-critical calculations, if HASHFRACTION
>is a power of two, check that p->hashfraction == HASHFRACTION and if so do
>the calculation with the compiled-in value so that the compiler can optimize
>out (potentially) expensive divisions. if p->hashfraction != HASHFRACTION,
>actually do the division. This has the result that on machines with slow
>division, the division can be optimized out of the common case, but that
>if HASHFRACTION changes from the compiled-in value (for whatever reason),
>profiling will still work. Changes suggested by Chris Torek.
1996-06-12 04:16:53 +00:00
cgd
eef7b263f1
remove GENERIC_NFS, because:
...
(1) right now GENERIC can boot via NFS, and
(2) in the long run, GENERIC should autodetect network booting
and pick the correct root device.
Because of (1), GENERIC_NFS is no longer _needed_ in the short term.
Because of (2), GENERIC_NFS is not _wanted_ in the long term.
1996-06-12 02:00:10 +00:00
cgd
811bbb5c72
rework setroot() and friends, largely by cloning from the sparc code
...
and whacking a bit here and there where appropriate. Does not yet do
automatic root device detection, but that's much easier to add now.
RB_ASKNAME now supports specification of network devices, for diskless
booting. Also, RB_ASKNAME is now supported on _all_ kernels.
1996-06-12 01:57:17 +00:00
cgd
ba53a90965
add example 'config' specs for 'root on sd0...' and 'root nfs...'
1996-06-12 01:44:31 +00:00
cgd
698dd157cf
remove "options GENERIC" since it's not needed with new setroot() code for
...
GENERIC kernels, and since it no longer has any other special meaning.
1996-06-12 01:42:46 +00:00
cgd
9d614a5f3f
GENERIC no longer has any special meaning (don't set RB_ASKNAME #ifdef GENERIC)
1996-06-12 01:38:09 +00:00
cgd
5109def361
change the meanings of some boot flags:
...
a (was ~RB_SINGLE, redundant with 'A') -> askname
n (was RB_ASKNAME) -> no meaning
d (was RB_DFLTROOT) -> no meaning (unnecessary with new setroot() code)
m (was RB_MINIROOT) -> no meaning (miniroots currently unsupported;
#ifdef'd out)
N (was ~RB_ASKNAME) -> no meaning (unnecessary; just don't specify RB_ASKNAME!)
1996-06-12 01:36:01 +00:00
cgd
4a4d4dfc26
copy from sparc port, trim bogus swdevt entries
1996-06-12 01:26:37 +00:00
thorpej
87a6b74c89
Sync up with my local tree:
...
- add union filesystem
- add DEFTA device
1996-06-11 23:24:02 +00:00
pk
94cd1644ee
Avoid the "features enable" bit on ESP100A's; apperently this is a source
...
of trouble on many machines (from Krister Walfridsson; PR#2537).
1996-06-11 22:26:16 +00:00
pk
49aec33417
pmap_changeprot: truncate VA argument to page-boundary. Needed in case we
...
call cache_page_flush().
1996-06-11 21:54:44 +00:00
cgd
f4e69ce47d
fix pasto in last commit.
1996-06-11 21:28:31 +00:00
cgd
2d9140fb20
add definitions and code to support use of multiple I/O and _dense_
...
memory regions.
1996-06-11 21:25:25 +00:00
cgd
bbdf2df9b0
since bus_mem_subregion() can return failure, don't even bother to try
...
to handle the case where subregion offset isn't a multiple of 8.
1996-06-11 21:20:08 +00:00
cgd
d714189d53
implement bus_mem_subregion() and bus_io_subregion().
1996-06-11 21:16:21 +00:00
pk
50e7d72655
Protect vnode when updating for started IO on buffers.
1996-06-11 11:15:36 +00:00
mhitch
cc47447cfc
Try to avoid collisions with reselection when starting a new selection.
...
Enable reselections as soon as possible after a disconnect - prevents
losing a reselecting device.
Check for and ignore a spurious interrupt during a DMA input (from the
Mach driver).
1996-06-11 05:15:32 +00:00
scottr
26f0e61730
Update for current reality
1996-06-11 03:39:20 +00:00
scottr
c72d612674
Deal with interrupt flags more carefully, and use the correct offset
...
for PB500-series SCSI I/O. While I'm here, update the copyright.
1996-06-11 03:20:23 +00:00
scottr
c74cec9954
Add missing cpu model info for Powerbook 500, and correct the ROM
...
vectors for the same.
1996-06-11 03:11:06 +00:00
scottr
3bac925c32
Fix bounds check for fpu description array.
1996-06-11 02:56:22 +00:00
scottr
5057bf9c78
Add Powerbook 500 series machine ID
1996-06-11 02:52:54 +00:00
mycroft
95f26583aa
Add a missing PHOLD()/PRELE() pair.
1996-06-11 01:49:38 +00:00
cgd
e7c37e7e8c
note that m_get/MGET and friends, and M_PREPEND will never fail if M_WAIT
...
is specified. also note that MCLGET _can_.
1996-06-10 23:55:39 +00:00
is
5af73f7ab0
Activate M68040 cache flushing code also in 68060 only kernels.
1996-06-10 16:11:20 +00:00
cgd
352d972c94
locc() is unused. Remove it from the machine-independent kernel interface.
1996-06-10 15:33:33 +00:00
cgd
361986fc4b
kill #ifdef DATAKIT and Datakit entries in mbuf type table.
1996-06-10 12:51:21 +00:00
thorpej
156eaa5f84
Add "needs-count" to the `ac' driver so an ac.h file gets generated.
1996-06-10 06:48:44 +00:00
thorpej
a323ce7b09
Add the "Python 28849" to the list of `supported' tape drives as a PYTHON
...
type.
1996-06-10 06:39:31 +00:00
cgd
9aa03f4dd9
update for changed definitions in ciareg.h
1996-06-10 00:04:53 +00:00
cgd
2465bd00e5
store HAE_MEM and HAE_IO register contents in the cia configuration
...
structure, and add prototypes for the bus_{mem,io}_init() functions.
1996-06-10 00:03:59 +00:00
cgd
55cbf94f22
read value of HAE_MEM and HAE_IO, so that the bus_* functions can
...
do window recognition correctly.
1996-06-10 00:02:31 +00:00
cgd
9198817ce3
update for new memory window handling in pcs_bus_mem_common.c.
1996-06-10 00:01:09 +00:00
cgd
c247b24843
add definitions used to figure out how PCI/EISA/ISA memory regions are
...
mapped.
1996-06-09 23:59:38 +00:00
cgd
df2ba1e245
add support for mapping multiple memory windows. This is necessary
...
for mapping ISA/EISA 'hole' memory on the AlphaStation 600.
1996-06-09 23:57:45 +00:00
cgd
8df74fa62a
wrap __STRING() in a #define so that its argument, which must be
...
expanded by the preprocessor, will be. Problem pointed out by Matt
Thomas.
1996-06-09 23:49:24 +00:00
cgd
35125fc8e0
add missing newline in printf. pointed out by Matt Thomas
1996-06-09 23:32:25 +00:00
veego
15088ebf44
Make this really work on the Domino. Patch from Klaus Burkert
1996-06-09 13:21:10 +00:00
briggs
7f550b62ea
Add prototype for hardupdate() ifdef NTP.
1996-06-09 04:55:09 +00:00
briggs
0a55dbede5
Do not declare tickfixcnt ifdef NTP.
1996-06-09 04:51:03 +00:00
briggs
9697ef6407
Add machine/viareg for prototype of via_set_modem().
1996-06-09 04:27:59 +00:00
briggs
2b220a1581
Implement suggestion from is -- handle _fpfault differently for 040 and better.
1996-06-09 01:53:42 +00:00
is
623536ac6e
Make this really really compile.
1996-06-08 15:42:00 +00:00
is
f39d801ab0
Really compile and install keymap loader and binary keymaps.
1996-06-08 15:28:41 +00:00
cgd
e36c62c4a0
print the note about what iomem is being used in a more appropriate place.
1996-06-08 00:11:32 +00:00
cgd
7afdc4e88d
clean up import of new revision (June 7, 1996) from Matt Thomas.
1996-06-07 23:59:15 +00:00
cgd
813c33fa36
clean up import of new revision (June 7, 1996) from Matt Thomas.
1996-06-07 23:35:04 +00:00
thorpej
a01d6597b6
Squish a couple of rogue $Id's..
1996-06-07 21:48:33 +00:00
briggs
b6759b3498
Fix typo.
1996-06-07 13:04:46 +00:00
briggs
04ad749207
Disable ROM vectors if booting from either serial console. PR#2525.
1996-06-07 10:48:26 +00:00
briggs
00c097a027
Changes from Bill Studenmund to support external clocks on the modem port.
1996-06-07 10:41:30 +00:00
briggs
4498ce3c90
Add constants for booter interface.
1996-06-07 10:27:19 +00:00
briggs
0d0487a98b
Wait longer (2.5 sec) in wait_req_true/false. Some targets take a long time.
1996-06-07 02:44:15 +00:00
briggs
5c13e7184b
Fix a typo.
1996-06-07 01:45:43 +00:00
cgd
d9d0cc229c
fix two bugs (the latter potentially fatal) in xdr_string_encode():
...
(1) if length needed was > MCLBYTES, an mbuf would be lost, and
(2) the wrong check was being used to determine if MCLGET succeeded.
1996-06-07 00:48:10 +00:00
briggs
79309c78d8
Patches from Bill Studenmund to get serial default settings from the booter.
1996-06-07 00:15:24 +00:00
cgd
57b8bdb5c3
Fix a bug where free()ing an already-free block, or even a block that looked
...
like it might have already been freed, would cause a crash because of a bad
pointer dereference. Pointed out by Brian Noble <bnoble@cs.cmu.edu>.
1996-06-06 19:13:32 +00:00
thorpej
bcab59cd3c
Remove the old-style disk instrumentation support. Nothing uses it
...
anymore.
1996-06-06 16:17:41 +00:00
thorpej
e9e80a6043
Add calls to tty_attach() and tty_detach() where appropriate.
1996-06-06 15:36:06 +00:00
mrg
8def9fa734
don't tty_detach() in ttyfree(). make the user of ttyfree() do
...
the tty_detach() as not all ttymalloc()'ed ttys are tty_attach()ed.
1996-06-06 15:31:24 +00:00
mhitch
c16e87c7b7
Add tty_attach() calls for pstat -t. Closes PR #2519
1996-06-06 04:47:31 +00:00
jonathan
e0638e0c44
Include <mips/types.h> to bring u_int32_t and u_int16_t in scope for
...
the argument and return type of {n,h}to{h,n}{l,s}.
1996-06-05 23:44:31 +00:00
thorpej
5804211474
Initialize sc_unit in the right place, a'la if_sl.c. Thanks to
...
Jonathan Stone <jonathan@DSG.Stanford.EDU> for pointing this out.
1996-06-05 23:20:49 +00:00
cgd
ebe3a58f01
pull down changes from NetBSD 1.2 release branch:
...
>Update for present reality (function names), clean up a bit (printfs,
>"panic: foo XXX"), and fix a couple of printf format specified bugs
>(which were normally #if 0'd out). Inspired by Multia/UDB support
>changes sent by Matt Thomas.
and:
>changes from Matt Thomas so that the Multia/UDB can attach its
>'com' interrupts, cleaned up some. Basically: if sharing type of
>new interrupt is different than what the hardware is currently set up
>for (e.g. requesting edge-triggered and the hardware is set up by
>the PROM for level triggered) and there are no interrupt handlers on
>that line already, warn about it and use the hardware type that the
>line was already set for (to avoid making the console blow up on
>reboot). If same circumstances but there is already a handler, panic
>as before.
1996-06-05 22:52:34 +00:00
christos
207d85a1cc
Handle T_RESET, otherwise DIAGNOSTIC kernels panic.
1996-06-05 19:30:43 +00:00
christos
38c8b72648
Many bug fixes... These now work well enough for vi, ksh, csh, stty etc.
1996-06-05 19:27:41 +00:00
christos
13bce5bb2b
- report process usage correctly. we used to get panics on SIGTSTP.
1996-06-05 19:26:13 +00:00
christos
53efdc8e32
- return EINVAL on the hardware specific 'X' ioctls, otherwise stty does not
...
work properly.
- use printf -> uprintf.
1996-06-05 19:24:22 +00:00
christos
7e8a7a54eb
- Always check if the file descriptor we are using is a socket.
...
- Make sure we get an so_internal state allocated, even if we
did not open the socket ourselves.
1996-06-05 19:10:34 +00:00
christos
dd1fe33d2e
- Always check if the file descriptor we are using is a socket.
...
- Make sure we get an so_internal state allocated, even if we
did not open the socket ourselves.
1996-06-05 19:07:37 +00:00
cgd
825e13fec1
fix bogus comment pointed out by Mike Grupenhoff <kashmir@umiacs.UMD.EDU>.
...
C-style comments aren't legal in awk (except in gawk, apparently).
1996-06-05 18:32:19 +00:00
oki
ce510f6b02
add tty_attach(tp);
1996-06-05 17:12:52 +00:00
oki
76fc9e1d30
fixed compiler error at kvtop().
1996-06-05 16:21:44 +00:00
is
87e300e2dc
Not needed anymore due to newer boot loader
1996-06-05 16:10:45 +00:00
cgd
37ec86f0cc
avoid lots of upper-case letters in interrupt names. prettier that way.
1996-06-05 03:38:02 +00:00
cgd
56db5baced
print slot number as decimal, not hex
1996-06-05 01:32:00 +00:00
cgd
666c7f6fd4
interrupt counters for TurboChannel systems.
1996-06-05 00:30:48 +00:00
thorpej
56543dfb7d
In sddump(), don't check the SDEV_MEDIA_LOADED bit of the device, since
...
that bit might have been cleared by successful unmounting of all filesystems
on the dump device, e.g. in the case of "reboot -d".
1996-06-04 23:12:14 +00:00
mhitch
3a8d18d828
Fix the oversight that the ASC SCSI adapter can also be on the
...
Turbochannel as well as the IOASIC. It should now work on the 5000/200.
Removed the "aborts" which could leave the disk trashed when the abort
rebooted the system. Fix the data corruption problem by clearing the
FIFO before starting a data transfer.
1996-06-04 21:08:24 +00:00
cgd
78937ab274
change > to >= in #endif comment, too.
1996-06-04 20:01:58 +00:00
cgd
6110ea9366
#ifdef tty_attach() with PCVT_NETBSD >= 120 (rather than just >),
...
since tty_attach() is now in the 1.2 release.
1996-06-04 19:53:28 +00:00
cgd
abc294c9d9
don't tty_attach() the mouse emulator tty.
1996-06-04 19:47:51 +00:00
cgd
2d03e599c7
don't depend on being able to read the IMR. Apparently, it doesn't
...
work (as documented in the DEC 3000/[3-9]00 System Programmer's Manual)
in some of the older 3000/500 systems.
1996-06-04 19:02:16 +00:00
mrg
b9c4c21d8e
add a comment on how to use tty_attach().
1996-06-04 13:59:10 +00:00
briggs
6959d64eeb
Some more constants from Bob Nestor--MacTV ADB works, now.
1996-06-04 03:04:49 +00:00
pk
3dfb6ab8c0
Code the residual computation a bit differently.
1996-06-03 23:48:41 +00:00
mark
b58401e04e
Not needed. This was identical to the VOYAGER config.
1996-06-03 22:50:07 +00:00
mark
8477987501
Fixed lots and lots and lots of -Wall compiler warnings.
1996-06-03 22:44:53 +00:00
mark
f2a8347cc4
Fixed -Wall compiler warnings.
...
Implemented a setsoftintr() function.
1996-06-03 22:44:36 +00:00
mark
bfe01da7b5
Tidied up the prototype declarations.
1996-06-03 22:41:14 +00:00
mark
4732cc6c39
Make sure that the ethernet address has been set correctly before
...
attaching the interface to the network code.
1996-06-03 22:39:12 +00:00
mark
45842a3af6
Merged in the latest changes that have been mode to the isa lpt driver.
...
Merged in the latest plip code from the pc532 port.
1996-06-03 22:36:23 +00:00
mark
0217e55278
Fixed the softnet interrupt code to properly use netisr.
1996-06-03 22:33:51 +00:00
mark
e2391b47fd
Merged in the latest changes that have been made to the isa com driver.
1996-06-03 22:30:36 +00:00
mark
f941f8cdb9
Fixed -Wall compiler warnings.
1996-06-03 22:20:32 +00:00
mark
1c9f0501fc
Don't complain about a drive type of zero, just treat it as no drive
...
present.
1996-06-03 22:19:21 +00:00
mark
59e4127d96
Use the sync information in the mode definition to set the VIDC sync
...
polarity.
1996-06-03 22:14:56 +00:00
mark
2f6e37b679
Fixed -Wall compiler warnings.
1996-06-03 22:11:34 +00:00
pk
433594b99d
missing semicolon
1996-06-03 22:11:23 +00:00
mark
d4b96c659d
Fixed -Wall compiler warnings introduced when fixing the vt220 printing
...
bug.
1996-06-03 22:08:37 +00:00
mark
a2a08dd859
Removed the old QUADMOUSE_* ioctl names. Everything now uses the
...
generic mouse ones.
1996-06-03 22:07:39 +00:00
mark
aa4be90f73
General code format tidy up.
...
Added missing function prototypes.
1996-06-03 22:04:40 +00:00
mark
0ba929925d
Added proper definitions of quadrature mouse button register.
1996-06-03 22:03:36 +00:00
mark
258f83367c
Added setsoftintr() prototype.
1996-06-03 22:00:50 +00:00
mark
0b265889c6
RCS Id police.
1996-06-03 21:58:25 +00:00
mark
515759c222
Added PLIP soft interrupt.
1996-06-03 21:57:52 +00:00
mark
10d9fbd5fe
RCS Id police.
1996-06-03 21:55:46 +00:00
mark
89711a59f0
Fixed -Wall compiler warnings.
1996-06-03 21:53:33 +00:00
mark
17582aa655
Removed some dead code from cpu_exit().
...
Fixed -Wall compiler warnings.
1996-06-03 21:46:15 +00:00
mark
7d3a5033a5
Use special versions of the IRQdisable and IRQenable macros that
...
keep FIQ's active.
1996-06-03 21:43:06 +00:00
mark
2d9f11e999
Add visibale debugging info for the RC7500 board.
1996-06-03 21:41:09 +00:00
mark
2a56b05b3d
Implemented cache and tlb flush functions for the StrongARM.
...
RCS Id police.
1996-06-03 21:38:05 +00:00
mark
8251f6e1f7
Fixed copyright message.
1996-06-03 21:36:14 +00:00
mark
6da55f03ee
RCS Id police.
1996-06-03 21:35:10 +00:00
mark
6ecba1cbe0
Added extra diagnostic information that can be printed when the ARM700
...
prefetch abort bug occurs.
Fixed -Wall compiler warnings.
1996-06-03 21:32:11 +00:00
mark
ff542922fa
getdevice() now defaults to returning the a partition if no partition
...
is specified in the string.
Fixed -Wall compiler warnings.
1996-06-03 21:28:59 +00:00
mark
bd72d43fdc
Major code clean up. Now satisfies the source code style guide.
1996-06-03 21:27:21 +00:00
mark
5a66df3d3d
RCS Id police.
1996-06-03 21:21:29 +00:00
cgd
b1b4f705ba
convert alpha vtophys() #defines to use __alpha_bus_XXX_dmamap(), to
...
get rid of the nasty (vtophys(va) | 0x40000000) expressions, and to make
the code more correct.
1996-06-03 20:30:21 +00:00
cgd
c6dd609e7f
gross hack to get around the fact that there are currently devices with
...
common back-ends that live on multiple very-different busses (e.g. PCI and
TC), which need bus-specific DMA mapping support. As a nice side effect,
this will allow the especially nasty (vtophys(va) | 0x40000000) expressions
to go away in favor of less nasty bus-specific function calls.
1996-06-03 20:18:48 +00:00
cgd
e038a84b34
add "le* at pci?", because it compiles and may actually work.
1996-06-03 20:10:52 +00:00
cgd
729d7a8aa8
only do tty_attach() for first tty of each chip; that's the only real tty.
1996-06-03 19:43:31 +00:00
is
7aaddee417
#define GRFIOCBLANK_LIVE and GRFIOCBLANK_DARK in grfioctl.h to make absolutely
...
clear which switches the video signal on and which off.
Make all grf_??.c (which supported it) use the same polarity of the test.
While being here, use a > test instead of implicit != to make it extensible
to darker than dark values for power managment systems.
1996-06-03 18:55:08 +00:00
cgd
afe080291e
fix pasto: s/NETISR_CCITT/NETISR_PPP/ at the appropriate place in
...
netintr(). From Matt Thomas <matt@lkg.dec.com>.
1996-06-03 18:32:37 +00:00
is
1530e15480
Don't get fooled by the CyberSCSI MK I, which uses the same man/prod id
...
as the Fastlane Z3, but is different enough to let the kernel crash.
Closes PR #2492 by Matthias Scheler. [thanks also to Ralph Schmidt for
confirmation of the patch]
1996-06-03 17:07:20 +00:00
thorpej
2fadbc363c
Move a mis-placed line on slattach() so that SLIOCGUNIT works properly.
...
From Jonathan O'Brien <obrien@phoenix.sfsu.edu>.
1996-06-02 16:22:32 +00:00
mycroft
abfbe7c6c4
Deal with FD_SETSIZE larger than the default.
1996-06-02 14:48:23 +00:00
ragge
28061842a2
Fix include file order to confirm to KNF in master tree also.
1996-06-02 13:28:21 +00:00
jtk
ef561b71a7
print out file systems being unmounted, #ifdef DEBUG. pr#1492
1996-06-01 20:24:05 +00:00
scottr
d9953b15c4
Minor cosmetic cleanup left over from reverting interrupt handlers
1996-06-01 06:10:34 +00:00
scottr
701205b00d
Add tty_attach() as appropriate (for pstat -t)
1996-06-01 00:13:39 +00:00
pk
460d3403be
Initialize video parameters if the board is not yet running. Useful if
...
the cg3 is not the console.
1996-05-31 09:59:22 +00:00
cgd
d4b462666e
if PCVT_NETBSD > 120, do tty_attach() calls so that pstat -t will work.
...
If these changes are pulled up to the 1.2 release branch, they should
be changed so that they are included if PCVT_NETBSD >= 120.
1996-05-31 00:03:59 +00:00
mrg
a715717750
now that tty.h has queue.h, we do not need it here.
1996-05-31 00:03:05 +00:00
cgd
311886cbbe
add call to tty_attach() so pstat -t will work with pccons ttys.
1996-05-30 23:59:11 +00:00
cgd
2fc4279f35
a few minor KNF nits
1996-05-30 23:43:31 +00:00
mrg
13eaf2e29b
check tty_count first (from cgd).
1996-05-30 23:32:33 +00:00
cgd
99a50a5e0d
now that the bug has been fixed, we can go back to using the
...
Alpha-optimized in_cksum().
1996-05-30 23:18:14 +00:00
cgd
ea82d613ab
Fix from Matt Thomas to fix problem where packets like
...
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x01 would be checksummed
incorrectly: rather than adding two 32-bit quantities together to
sum a quadword (which was losing a carry bit), add as four 16-bit
quantities.
1996-05-30 23:08:36 +00:00
cgd
a6539cd434
add options LKM, INSECURE
1996-05-30 22:36:49 +00:00
cgd
00a630739d
don't use pcvt any longer
1996-05-30 22:35:46 +00:00
pk
a8deff302c
Clamp synch-transfer parameters at our maximum values on device-initiated
...
synch negotiation.
1996-05-30 22:19:10 +00:00
cgd
e338d234cb
now uses queue macros, should include <sys/queue.h>
1996-05-30 22:00:20 +00:00
is
4c4c6e7b5f
Pull INSTALL into the trunk.
1996-05-30 20:50:48 +00:00
cgd
6e6fc14f32
add tty_attach() calls where appropriate
1996-05-30 18:44:30 +00:00
cgd
08d585e924
add tty_attach() where appropriate.
1996-05-30 18:24:09 +00:00
leo
e81bea0de0
Add loadkmap
1996-05-30 13:44:36 +00:00
leo
0b59a91269
Add missing spl(x). (Jason Thorpe)
1996-05-30 13:41:58 +00:00
mhitch
601c0013e0
Fix the third LBA extraction from a 6 byte SCSI command that I missed.
1996-05-30 03:15:07 +00:00
pk
c393eae7c5
event_var.h changed location.
1996-05-30 01:40:07 +00:00
pk
9a9cf8c3f5
Put back a `#if defined(SUN4M)' for now.
1996-05-30 00:57:35 +00:00
pk
e86275a0b6
Some slight optimizations.
1996-05-30 00:02:09 +00:00
cgd
efd9d2dc7f
Copy from libkern:
...
Add some casts so that we're not bitten by type promotions on 64-bit
systems. Not a great concern since the only 64-bit system currently
supported by NetBSD (Alpha) uses assembly versions of these routines.
1996-05-29 23:39:30 +00:00
cgd
f7dcef06d4
add missing splx(). From Jason Thorpe
1996-05-29 22:24:47 +00:00
pk
b3666a87b4
Swiatch to `sys/dev/sun/event*'.
1996-05-29 21:57:51 +00:00
pk
3d1e64415a
Switch to `sys/dev/sun/event.c'.
1996-05-29 21:56:38 +00:00
pk
056bb18f67
A configuration file for devices found on Sun machines.
...
Currently holds just `event.c' which should actually be considered
a candidate for `sys/dev'.
1996-05-29 21:54:34 +00:00
pk
f9f5f23ee3
We really need a ring buffer for every unit.
...
Eliminate extraneous ttyalloc() calls.
1996-05-29 21:45:28 +00:00
pk
77323d42d7
Add missing splx(), per Jason.
...
Also, change `"event_var"' to `<dev/sun/event_var.h>'.
1996-05-29 21:24:41 +00:00
pk
7acbd9511d
Make v_swpin & v_swpout tick.
1996-05-29 21:20:11 +00:00
pk
4899447ffc
Add missing splx(), per Jason.
1996-05-29 21:08:28 +00:00
pk
57e61589e7
Fix two cases of handling stale page table information:
...
1. when reading the referenced/modified bits the TLB entry must be flushed
before reading the in-core version.
2. when wrapping up an entire segment in pmap_page_protect(), flush the PTPs
from the TLB to prevent a table-walking operation to pick up stale - or
possibly bogus - PTEs.
(hopefully I'll get a few of my hairs back now..)
1996-05-29 20:58:38 +00:00
mrg
ade39d6cb2
call tty_init().
1996-05-29 19:10:16 +00:00
oki
b042da1f56
fixed reboot problem on Xellent30.
1996-05-29 17:19:07 +00:00
oki
7c5b284636
added missing splx(s). pointed out by thorpej.
1996-05-29 17:03:41 +00:00
scottr
cac1b831e9
- Simplify writes in sbc_drq_intr().
...
- When finished writing, if the SCSI bus has BSY asserted, write another
byte to the SBC to ensure we get an interrupt.
- Unflag SCSI interrupts on the VIA whenever we clear the interrupts
on the SBC itself.
1996-05-29 14:26:33 +00:00
leo
5d8d243a6e
Add UCONSOLE option.
1996-05-29 12:28:06 +00:00
mhitch
40b6370ffb
Fix the DECstation ASC SCSI driver autoconfiguration to more closely
...
match the alpha. The DS3100 will now configure properly. Also fix
the name in the cfdriver structure - somewhere it got changed from
"asc" to "as".
1996-05-29 06:32:38 +00:00
mhitch
fe55416706
Fix autoconfiguration stuff to more closely match the alpha - primarily
...
the IOASIC attached devices. The DS3100 will now configure properly.
Fix the DS5000/25 IOASIC table entry for the RTC so the RTC interrupts
get enabled.
Fix up a moved include file.
1996-05-29 06:29:02 +00:00
mhitch
d8824f1a84
Fix autoconfig stuff to more closely match the alpha. The DS3100 will now
...
configure properly. Also fix devices with TurboChannel and mainbus
attachments so they will work if no TurboChannel was configured.
Fix clock.c for a missing variable if not including NTP support.
Also remove some extraneous includes files or use the right ones.
1996-05-29 06:25:01 +00:00
mhitch
038bd4a782
Fix autoconfig stuff to match the alpha. The DS3100 will now
...
configure properly.
1996-05-29 06:19:49 +00:00
mhitch
de1b9b4230
Fix autoconfiguration stuff to match the alpha. The DS3100 will now
...
configure properly. Also fix devices with TurboChannel and mainbus
attachments so they will work if no TurboChannel was configured.
Fix a panic when the dtop keyboard handler receieves a character
before the device has been opened.
1996-05-29 06:15:40 +00:00
mhitch
9d8526a68d
Use the MI LANCE drivers - the pmax-specific one no longer compiles.
1996-05-29 06:05:05 +00:00
mhitch
a2d094fb48
Fixes to make kernel compile: HZ is required to be defined and CPU_R3000
...
is needed to include R3000 support. Also change the le0 to le* for the
3100 LANCE so it configures properly.
1996-05-29 06:01:13 +00:00
chuck
e35aa10df8
switch to generic boot
1996-05-29 05:06:21 +00:00
chuck
24ac64b87b
fix generic boot code
1996-05-29 05:04:41 +00:00
chuck
9f36687189
borrow part of the sparc port's dk_establish to fix generic boot
1996-05-29 05:03:50 +00:00
chuck
946f08aa87
note if we are the boot device (for fixing generic boot)
1996-05-29 04:29:46 +00:00
chuck
5258929681
detect if we are the boot device (to fix generic kernel)
1996-05-29 04:27:11 +00:00
chuck
ac46d3b779
add to fix boot generic problem
1996-05-29 02:32:21 +00:00
chuck
e4528e0647
save boot device info from bug/bootblocks
1996-05-29 02:28:30 +00:00
mrg
5583238255
impliment ttylist stats based on disk stats.
1996-05-29 02:02:42 +00:00
mrg
65d186d8e8
find a couple minor nits from previous change.
1996-05-29 01:58:09 +00:00
chuck
6645fec14e
fix off by one error
1996-05-29 01:52:03 +00:00
pk
ecbb3b2eb2
Prototype new rip_*() functions.
1996-05-28 23:27:04 +00:00
pk
2d9344eb4b
Prototype new raw_*() functions.
1996-05-28 23:24:50 +00:00
pk
ad4c0ccfdf
Remove unused variable.
1996-05-28 23:24:23 +00:00
pk
8e8956134f
Prototype new unp_*() functions.
1996-05-28 23:23:04 +00:00
chuck
f057fa41d5
leave room for partition
1996-05-28 19:07:32 +00:00
chuck
cd4d6d851b
new kernel call args.
1996-05-28 18:14:24 +00:00
chuck
e0923c774b
bug fix: pass address of le to netboot
1996-05-28 18:03:38 +00:00
oki
532b0a8630
fdboot can boot from 512bytes/sector format floppy now.
1996-05-28 17:01:25 +00:00
chuck
9a628842cf
fix bootst (sync with sun3 tapeboot)
1996-05-28 15:23:53 +00:00
chuck
09e22de574
delete non-working bootst
1996-05-28 15:23:06 +00:00
chuck
da573626b4
new bootst (based on sun3 tapeboot)
1996-05-28 15:22:41 +00:00
mrg
6ce8e31376
change zsinfo to a zs_softc, and impliment intr counts. mostly from OpenBSD.
1996-05-28 14:06:28 +00:00
mrg
08bd090b26
count audio interupts (from OpenBSD).
1996-05-28 13:36:09 +00:00
fvdl
b7a6989848
NetBSD1_1 -> NetBSD1_2, so use it properly (PR 2475)
1996-05-28 12:28:45 +00:00
pk
9913321bff
CMP_PTE_USER_READ4M: check against PPROT_RWX_RWX; this is the canonical
...
stack protection (saves many excursions into trap.c on window underflows
as was the sole intention of the macro..).
1996-05-27 20:46:39 +00:00
pk
d94f5b92f9
prototype mmu_pagein4m() #if DEBUG is on.
1996-05-27 20:29:03 +00:00
fvdl
e4145cb406
Align things right in NWDELAYHASH (for the Alpha). This fixes crashes in
...
the server code. From John Birell.
1996-05-27 11:22:31 +00:00
mhitch
ab7b439a98
The logical block address in a 6 byte command is 21 bits, not 20.
...
Also a transfer length of 0 indicates 256 blocks.
1996-05-27 05:49:49 +00:00
pk
75eb006fa2
No longer need to call mmu_pagein() through a pointer.
1996-05-27 01:13:02 +00:00
pk
522c1d367a
mmu_pagein() is only useful on sun4/sun4c. For now, keep a `mmu_pagein4m()'
...
within `#ifdef DEBUG' for monitoring.
Push user windows to stack in pmap_extract() if we need to switch contexts.
1996-05-27 01:12:34 +00:00
pk
4fa564e10d
Fix case where sequence state wasn't updated properly, resulting in
...
`disk_unbusy' panic.
1996-05-27 00:10:40 +00:00
pk
ec587073d7
I_SIGSET => I_SETSIG (pointed out by Greg Earle).
1996-05-26 23:57:10 +00:00
hpeyerl
3e834c5e86
Update to reflect reality (such as it is).
1996-05-26 23:45:42 +00:00
pk
43b3743977
Implement CMP_PTE_USER_WRITE4M more accurately.
...
CMP_PTE_USER_READ4M needs some more work..
1996-05-26 22:33:31 +00:00
pk
2382529ecd
Some more #defines.
1996-05-26 22:30:20 +00:00
leo
d48f93eef5
Add 'kernel_text' symbol (Gordon Ross).
1996-05-26 20:50:53 +00:00
chuck
9fe4f7c83a
kill "options GENERIC" by replacing it with Theo's sparc code.
1996-05-26 20:47:39 +00:00
chuck
8f19c1d045
fix cngetc() typeo.
1996-05-26 20:42:58 +00:00
jtc
64157258f9
updated for 1.2A (post 1.2)
1996-05-25 21:59:38 +00:00
is
eafd041aca
Fix few more places where 040+060 rlevant stuff was only compiled for 68040,
...
preventing 68060-only kernels to work. (68060 only kernel is tested now by
using it to commit this patch).
1996-05-25 21:54:22 +00:00
christos
be8ad0bbb0
Recognize MFII keyboard ids for BIM ThinkPad 76X's. Closes PR/2468
1996-05-25 18:19:07 +00:00
ws
d1a21707db
Free allocated space in directory after error
...
(While this wasn't technically speaking a bug, it unneccessarily wasted space)
1996-05-25 17:50:41 +00:00
is
33d61f4da3
Show real interupt names (e.g., systat vmstat) on the DraCo.
1996-05-25 17:08:48 +00:00
briggs
014b404127
Clean up the interrupt handling somewhat.
1996-05-25 16:42:24 +00:00
briggs
100623915b
Clear via2 interrupts before processing, too. It is up to the drivers to clear
...
any interrupts that are flagged during processing.
1996-05-25 16:31:04 +00:00
is
25b2ef1b72
Yet another unused variable cleanup; noticed in a kernel without bpfilter.
1996-05-25 16:30:16 +00:00
is
4d0559ac27
Fix stupid pasto.
1996-05-25 15:23:52 +00:00
briggs
d6345a7855
More from Dave Huang (khym@bga.com)--set ROMLEN to 2MB and make another
...
class for AV machines (C660AV and Q840AV).
1996-05-25 14:48:38 +00:00
briggs
30e64f90b7
Patches from Dave Huang (khym@bga.com) to get MRG ADB working on his 660av.
1996-05-25 14:45:31 +00:00
briggs
10221fc1cd
Do not let getty open ite if it's not been initialized.
1996-05-25 00:56:38 +00:00
pk
f699a85094
sync with reality.
1996-05-24 23:18:23 +00:00
is
ab97b65e37
Finish adosfs' support for International FFS (we not only have to use an
...
internationalized hash function to search for files, but also to use an
internationalized compare to compare the candidates). This also removes one
use of strcasecmp() in the kernel.
1996-05-24 20:16:02 +00:00
is
452b12520a
Delete some occurences of kernel startup debug code, move others inside
...
#ifdef DEBUG_KERNEL_START.
1996-05-24 19:59:33 +00:00
is
c978bf3f9f
Make the GRFIOCBLANK ioctl set the right timing divisor when switching the
...
screen back on.
1996-05-24 19:26:12 +00:00
mycroft
91ac291d97
Move some code into a separate rip_bind() function.
1996-05-24 19:03:13 +00:00
cgd
407faf0374
add line for 'strip' pseudo-device, and include slcompress.c if it's included.
1996-05-24 13:03:57 +00:00
mycroft
d66ec0288c
Add a forward declaration of struct proc.
1996-05-24 11:58:54 +00:00
thorpej
a0be48ca23
Implement ST_Q_UNIMODAL quirk, which indicates that a drive will reject
...
all attempts to mode select, even if the attempted mode is supported.
Add the ST_Q_UNIMODAL quirk for the HP Colorado T4000s which exhibits
this behavior. (Someone please lob a tactical nuke in that direction.)
From David Rosenthal <dshr@vitria.com> on netbsd-bugs.
1996-05-24 02:04:29 +00:00
mycroft
4e8477f520
Mostly minor changes.
...
Convert the listen queue to a TAILQ to avoid O(n^2) insertion. Should probably
be a hash table.
1996-05-23 23:35:22 +00:00
cgd
f7f3f4299d
print pointers with %p, rather than by printing with %x and casting to
...
(unsigned int).
1996-05-23 23:34:14 +00:00
cgd
48652c763f
fix UMAPFS entry, add entry for UNION
1996-05-23 23:29:10 +00:00
cgd
82dd8bf609
disable alpha-specific in_cksum.c; it seems slightly buggy
1996-05-23 23:27:25 +00:00
fvdl
2847784948
* Make mounts with symlinks work (needed for direct mounts with amd). PR #1917
...
* Never change the NQNFS flag and/or version when just doing an update mount.
Fixes a problem that made diskless booting impossible under some
circumstances.
1996-05-23 22:47:27 +00:00
pk
3c13903472
Enable just enough interrupts to get "L1-A" through. Patch from Jason to
...
avoid spurious floppy interrupts on Jason's machine...
1996-05-23 22:35:11 +00:00
mycroft
ea64155398
Mirror changes in uipc_usrreq.c.
1996-05-23 18:45:14 +00:00
mycroft
c630947e89
We must indirect through the higher-level protocol for
...
PRU_{BIND,CONNECT} so that it can check the sockaddr.
1996-05-23 18:30:57 +00:00
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