thorpej
2648536e0c
Add experimental code for pausing other CPUs upon a CPU's
...
entry into the debugger. While I'm here, add splsched()
as per spl(9).
2000-08-21 02:03:12 +00:00
augustss
b3b158b922
Implement handling of the UQ_SPUR_BUT_UP quirk. Some keyboards sometimes
...
generate a key up quickly followed by a key down for the same key, so we
take care of that.
(Finally I can type again without going nuts. :)
2000-08-20 22:30:17 +00:00
pk
124d256269
Move these SBus drivers here from arch/sparc.
2000-08-20 22:27:07 +00:00
augustss
d9426e06b6
Install usbdevs.h as well.
2000-08-20 22:25:20 +00:00
scw
3cac59ee4f
Expand on how VMEbus master addressing modes are specified, to better
...
deal with dynamic address modifier generation based on the CPU's
function code pins.
Also implement VMEbus slave mode for mvme147. (Not yet 100% working.)
2000-08-20 21:51:31 +00:00
thorpej
a86d1f4891
Add a lock around the scheduler, and use it as necessary, including
...
in the non-MULTIPROCESSOR case (LOCKDEBUG requires it). Scheduler
lock is held upon entry to mi_switch() and cpu_switch(), and
cpu_switch() releases the lock before returning.
Largely from Bill Sommerfeld, with some minor bug fixes and
machine-dependent code hacking from me.
2000-08-20 21:50:06 +00:00
pk
f83d14e14b
Move declaration up, before it is used.
2000-08-20 20:01:45 +00:00
pk
5a308cf392
Split & move cgthree sbus attachment from arch/sparc.
2000-08-20 19:59:46 +00:00
pk
124ea6d974
<machine/fbio.h> -> <dev/sun/fbio.h>
2000-08-20 19:58:53 +00:00
pk
e8ed83e13f
Split & move cgthree from arch/sparc.
2000-08-20 19:58:19 +00:00
scw
3f2adcb2b0
Checkpoint of code to add VMEbus slave support using vme_dmamap* and
...
vme_dmamem*.
This is still a work in progress, but seems to DTRT on mvme167 so far.
TODO:
. Get VMEbus slave mode going on mvme147. This should be easy.
. Fix up the A16 slave mappings.
. Bounce buffer support. (Messy, but pretty much a `must have'.)
. Figure out how to deal with `location monitor' interrupts
within the framework. (Useful for Busnet, among other things.)
. It would be nice to make use of the VMEchip2's DMA facilities...
2000-08-20 17:07:41 +00:00
thorpej
a6b7f5a17d
Use RF_WAIT_COND() to avoid locking errors.
2000-08-20 16:51:03 +00:00
thorpej
d06cb9ab29
RF_COND_WAIT(): use ltsleep().
...
RF_SIGNAL_COND(): use wakeup_one().
2000-08-20 16:15:31 +00:00
bjh21
567f2768d1
Implement the easy ptrace requests and turn off the difficult ones.
2000-08-20 15:16:49 +00:00
mrg
e144281c4e
move ofwboot & bootblk here; add a Makefile to build ofwboot.net
2000-08-20 14:58:36 +00:00
mrg
85737336b4
add/merge sparc64 support.
2000-08-20 14:57:16 +00:00
mrg
9bea0e1a52
fix ultrasparc support.
2000-08-20 14:56:28 +00:00
mrg
b74059e5cf
move everything to arch/sparc/stand; leave the Makefile behind.
2000-08-20 14:53:19 +00:00
mrg
651a58c846
add SOFTDEP
2000-08-20 14:51:56 +00:00
pk
7857ad0b81
Move cgsix and bwtwo Sbus attach code here from arch/sparc.
2000-08-20 14:33:25 +00:00
pk
1eeffbaac6
De-P__
2000-08-20 14:30:13 +00:00
pk
6e36f80602
Move cgsix, bwtwo and BT DAC support here from arch/sparc.
2000-08-20 14:28:49 +00:00
pk
4ec48d799f
fbio.h moded to sys/dev/sun.
...
Retain symlink from /usr/include/machine.
2000-08-20 14:02:59 +00:00
pk
02c262b278
Move fbio.h and fbvar.h here.
2000-08-20 14:00:43 +00:00
eeh
7becceeb4b
Add COMPAT_NETBSD32 support.
2000-08-20 13:44:14 +00:00
bjh21
ba6517aa9c
Adjust register spacing to take A0 into account. This should make supporting
...
8-bit uses of the 8005 (such as, I suspect, 8-bit Ether3 cards) easier.
2000-08-20 13:43:23 +00:00
bjh21
ef49e5cd42
Exclude cpu_Debugger if DDB is not defined.
2000-08-20 13:41:44 +00:00
pk
b369b979ae
Remove duplicate `flags' from printf format string.
2000-08-20 11:51:52 +00:00
bjh21
3e6dc8178c
Ensure that uvmexp.freemin is above the kernel reserved-page count.
...
When it wasn't (which could happen on a 4Mb machine with 32kb pages),
uvm_pagealloc_strat could refuse to allocate user memory, while the pagedaemon
didn't think it was worth freeing any more, resulting in the system seizing up.
2000-08-20 10:24:14 +00:00
tsubai
31ec486214
Correct asm parameter to avoid gcc uninitialized warning.
2000-08-20 07:48:45 +00:00
tsubai
1267826d5d
Increase stack size.
2000-08-20 07:04:59 +00:00
tsubai
58aaeaae7f
In decr_intr(), update lasttb only when clock interrupt is not masked.
2000-08-20 07:02:41 +00:00
tsubai
d832bf8e95
Add "type" argument to openpic_enable_irq().
2000-08-20 06:56:42 +00:00
thorpej
dd87a44f4a
Initialize PV head simple locks, done slightly differently than
...
in the sommerfeld_i386mp_1 branch.
2000-08-19 19:48:53 +00:00
thorpej
8bc6ee56cb
Lock debugging fix: Make sure a simplelock's lock_holder gets
...
initialized properly, and consistently tracks the owning CPU's
cpuid. Add some diagnostic assertions to enforce this.
2000-08-19 19:36:18 +00:00
oster
49742b54fa
Remove a bogus VOP_UNLOCK.
2000-08-19 18:20:07 +00:00
oster
3a17c9470d
Don't try to initialize a component label on a failed component.
2000-08-19 18:07:36 +00:00
sommerfeld
8875442492
Statically initialize statically-allocated locks
2000-08-19 17:25:33 +00:00
eeh
1e8c5f2119
Fix netbsd32_ioctls.
2000-08-19 14:38:18 +00:00
wdk
9ac68bcb51
- Add support for calling most prom firmware functions
...
- Using the prom getenv function determine the correct console port
- Remove old prom function hooks
- Tidy up bootflags (remove upper case names, fixup RB_ASKNAME) as
recommended by Jaromír Doleèek
2000-08-19 12:13:46 +00:00
pk
0c448da29b
When breaking up a transfer in vndstrategy(), only inherit B_READ and
...
B_ASYNC from the original buffer's flags.
2000-08-19 10:44:02 +00:00
itojun
cabceaa265
- icmp6 nodeinfo: remove possibility of unaligned pointer access.
...
- jumbo payload output: fix incorrect mbuf manipulation
- pedant: align issues, mbuf assumption
(sync with kame)
2000-08-19 08:15:53 +00:00
wrstuden
17c0d4d853
Add some new partition types, and flags. Have the Apple Partition Map
...
code ignore the new partition types, and look for the new "USR" partition
flag.
From SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp> with slight changes by me.
Closes PR port-macppc/10046
2000-08-18 22:40:28 +00:00
cgd
0199b04bef
update for changed makesyscalls.master
2000-08-18 19:35:15 +00:00
cgd
6858b430d3
tweak white space around generated NetBSD rcs ids
2000-08-18 19:33:30 +00:00
cgd
3af42e5211
update for changed makesyscalls.sh
2000-08-18 19:26:56 +00:00
cgd
e539b49106
update for my change to makesyscalls.sh, and apparently previous
...
changes as well...
2000-08-18 19:25:37 +00:00
cgd
287e8a9edf
update for new makesyscalls.sh, and also for correct ids for changed
...
syscalls.master files. (you need to regenerate after checking in
syscalls.master to get the correct ids.)
2000-08-18 19:19:50 +00:00
cgd
c07a11c347
nuke __P for generated syscall prototypes and sy_call_t
2000-08-18 19:14:33 +00:00
matt
8666ad87ba
Fix read problem on directories on UFS.
2000-08-18 17:38:33 +00:00
itojun
f5fa53578a
repair m_dup(). specifically, now it is safe against non-MCLBYTES cluster
...
mbuf. noone seem to be using this function at this moment.
2000-08-18 16:19:22 +00:00
itojun
243eebc256
disable m_dup(), as it makes false assumption on cluster mbuf and unsafe
...
(does not do the right thing).
2000-08-18 14:23:48 +00:00
itojun
1905ac079e
add a comment about false assumption made by m_dup()
2000-08-18 14:12:47 +00:00
sommerfeld
8f5586c98f
Avoid calling tsleep when running above splhigh()
2000-08-18 13:22:39 +00:00
bjh21
9c77b69be0
Add upc
2000-08-18 12:54:32 +00:00
bjh21
cc396125ae
Add support for clearing IRQ 0, which is latched by the IOEB (on IOEB systems).
2000-08-18 12:50:00 +00:00
sato
d5b133164a
- disable warning: add missing argument.
2000-08-18 07:33:14 +00:00
wiz
6b569d798f
fix typo in comment
2000-08-18 05:55:31 +00:00
jhawk
8c3116e66a
Copy wi_{dst,src}_addr from struct wi_frame into faked-up ether_header
...
instead of addr1 and addr2. THis means that tcpdump -e will show the
correct MAC address for communications with access points instead of showing
the BSSID.
In the future there should be 802.11 support for bpf/libpcap/tcpdump,
but that is aways down the road.
Also fix a typo in a comment.
2000-08-18 04:11:48 +00:00
augustss
2af3c25d9d
Regen.
2000-08-17 23:28:00 +00:00
augustss
7e5bb38ef2
Add an XXX comment.
2000-08-17 23:18:56 +00:00
augustss
2d8b50667e
From FreeBSD: add code for Insystem USB cable.
2000-08-17 23:16:16 +00:00
augustss
44c15e95b5
Add two keys to the raw mapping for German keyboards.
...
From Matthias Kretschmer <McCratch@gmx.net>, fixes PR 10850.
2000-08-17 23:08:07 +00:00
bjh21
a81231398b
Oops. Remember to close the comment!
2000-08-17 22:09:10 +00:00
wdk
702ec79b19
#include <mips/locore.h> no longer required since implementing bus_space(9)
...
remove unused extern variable that is never used in mipsco port
2000-08-17 21:26:34 +00:00
bjh21
b89efe2b21
"upc" uses "wdc", so put the former after the latter.
2000-08-17 18:56:17 +00:00
bjh21
6bc85d382a
Add cdevsw entries for bpf, tun, com, lpt.
2000-08-17 16:31:52 +00:00
darrenr
e1d18090ac
add vendor/product information for Rainbow i-Key 2000
2000-08-17 15:17:00 +00:00
matt
693b01e5da
Fix IBCS2_S_IFWGRP
2000-08-17 15:16:01 +00:00
thorpej
3a1f5cdbfc
If maniuplating a read lock on the proc list, we no longer need
...
to go to splclock() -- spinlockmgr() handles the interrupt blocking
while holding the interlock for us, now.
2000-08-17 14:37:54 +00:00
thorpej
391e1e1f44
For spinlocks, block interrupts while holding the interlock. Partially
...
from Bill Sommerfeld.
2000-08-17 14:36:32 +00:00
bjh21
7fd0191223
Hard-wire the unit number of the on-board wdc so podules don't confuse it.
...
Add commented-out wd, atapibus etc in GENERIC and FOURMEG. Not yet tested.
2000-08-17 13:38:51 +00:00
msaitoh
4a9013cf38
add code to mask mmucr register (SH4 only)
...
I'm sorry, I'd forgotten to commit it for a long time.
2000-08-17 13:13:28 +00:00
msaitoh
a8fe4a6776
check INTEVT_SCIF (SH4 only)
...
I'm sorry, I'd forgotten to commit it for a long time.
2000-08-17 13:07:51 +00:00
wdk
b9333bd4e7
Check for memory aliases when sizing physical memory. Remove 32MB memory
...
restriction.
Tested with 32 x 1MB SIMM's plus mix of 4MB and 1MB SIMM's to ensure the
aliases is detected in all memory configuratiions.
2000-08-17 05:05:01 +00:00
thorpej
b6aaff9c44
Add a DIAGNOSTIC check for release of an unlocked lock.
...
From Bill Sommerfeld.
2000-08-17 04:18:21 +00:00
thorpej
f2098b2382
Some more lock debugging support:
...
- LOCK_ASSERT(), which expands to KASSERT() if LOCKDEBUG.
- new simple_lock_held(), which tests if the calling CPU holds
the specified simple lock.
From Bill Sommerfeld, modified slightly by me.
2000-08-17 04:15:43 +00:00
msaitoh
7369c6d979
add an INTEVT code for WDT
2000-08-17 00:01:53 +00:00
bjh21
999646a30b
Add some extra levels for MI drivers.
2000-08-16 23:58:29 +00:00
bjh21
d7eebd9227
Basic driver for CHIPS 82C710 Universal Peripheral Controller and friends,
...
as used on later arm26 system (A5000, A4, A3010, A3020, A4000).
What we have got:
...
upc0 at iobus0 base 0x010000: config state bb 87 1c 00 00
fdc at upc0 offset 0x3f4 not configured
wdc0 at upc0 offset 0x1f0
lpt0 at upc0 offset 0x278
com0 at upc0 offset 0x3f8: ns8250 or ns16450, no fifo
...
What we haven't got:
- FDC support (found, but not configured).
- Clearing lpt interrupts on arm26 systems (needs help from IOEB).
- A upc(4) manual page.
- More than minimal testing (my A3020s don't have root devices).
- A proper probe routine (arm26 can't use one anyway).
2000-08-16 23:56:08 +00:00
wdk
4cad781e16
Parse bootflags and attempt to find the root device from the boot command line
2000-08-16 21:54:43 +00:00
wdk
bf69eb6def
Trap and report memory parity errors
2000-08-16 21:00:39 +00:00
matt
b0c9fcd14a
Add a NOPREVENT quirk which prevents the sending of PREVENT messages (some
...
manual 9track tapes don't support it). Add a quirk entry for the NCR H621
9track tape drive.
2000-08-16 19:22:25 +00:00
mjacob
4f5e77ca58
Change _res field in ispstatusreq_t to be req_response for FC.
...
Add some more FC specific response defines and split the response
defines into common, SCSI only and FC only cases.
2000-08-16 18:11:38 +00:00
mjacob
d9162135d4
Add some changes/notes suggested by eeh@netbsd.org (zero header of
...
response queue entry). Clean up some of the Fibre Channel completion
stuff so that thing we check actually match the current manual. There's
only one silly lossage that the manual doesn't cover at present- if
an FC command completes with SV (sense valid), the f/w does *not* s
et "GOT_STATUS" in the state bits- I guess they assume that you'd figure
out that if you have SENSE DATA you probably have a CHECK CONDITION. Still-
yet another fine f/w frotz from Qlogic. Add in an ISP_EXEC_THROTTLE
define to set a per-device execution throttle.
2000-08-16 18:10:21 +00:00
thorpej
1b0163bd50
Garbage-collect a constant that nothing uses.
2000-08-16 16:32:06 +00:00
tron
29e1f8bd9f
Use accurate rounding in conversion between OSS and NetBSD volume values.
...
The optimized integer formula was supplied by Wolfgang Solfrank on
"tech-kern@netbsd.org". This fixes problems with e.g FreeBSD TV (fxtv),
RealPlayer-7.0 Beta 2 (PR pkg/10818) and KDE's "kscd".
2000-08-16 16:14:33 +00:00
pk
1f76e23f2c
Drop two #ifdef SUN4U's, since
sparc{64}/include/instr.h' are now synced.
2000-08-16 11:36:36 +00:00
pk
d48d0665e9
Sync with sparc64.
2000-08-16 11:30:38 +00:00
pk
814e226e9d
Fix two printf formats: %ld' ->
%d'.
2000-08-16 11:29:42 +00:00
itojun
e6efb27c84
add missing splx, when outgoing interface queue is full on tunnelled
...
ESP packet output. KAME PR 280.
2000-08-16 09:54:39 +00:00
mrg
ac5a03b4eb
find loadfile_machdep.h on sparc64.
2000-08-16 08:24:01 +00:00
mrg
286b5c3fbf
backout previous; unintentional.
2000-08-16 08:21:52 +00:00
mrg
ecd972e9cb
include the sparc loadfile_machdep.h as-is; we can blow this header away
...
completely later.
2000-08-16 08:17:49 +00:00
mrg
3eeab3822d
deal with 64 bit ELF
2000-08-16 08:16:58 +00:00
thorpej
b0dc085df7
Move the TSS selector out of the PCB and put it into mdproc. We
...
need to access this when we have the proclist locked for reading,
and thus cannot store it in the PCB (which may be swapped out).
As part of this, call pmap_activate() from cpu_switch() to switch
to the new address space, and refresh the PCB's copy of the LDT
selector from the pmap structure (see above paragraph). We need
to do this for MP support anyhow.
Fixes a "panic: spinlock_switchcheck: CPU 0 has 1 spin locks" via
gdt_compact() reported by Nathan Williams.
2000-08-16 04:44:35 +00:00
thorpej
5a7793edd9
Implement MP-safe lazy FP context switching, modeled on the
...
way Bill Sommerfeld implemented it for x86 (and bug fixes
fed back to Bill :-)
2000-08-15 22:16:17 +00:00
itojun
32e6a89b31
net.inet.tcp.rstratelimit is deprecated. make it invalid and return
...
ENOPROTOOPT.
2000-08-15 22:13:02 +00:00
thorpej
831a48fd0b
Make this compile without INET6 again.
2000-08-15 21:43:57 +00:00
jhawk
b70721109d
Add kernel counters for arp events, displayable with netstat -s -f arp
2000-08-15 20:24:57 +00:00