nathanw
5127aa189d
In fdioctl(), allocate fd_formb dynamically when needed, rather than on
...
the stack, and remove the no-longer-necessary PHOLD()/PRELE() calls
in fdformat().
(This eliminates 1/3 of the instances of PHOLD()/PRELE() in the kernel code.)
XXX We still have too many mostly-redundant floppy drivers.
2000-08-24 20:04:28 +00:00
augustss
cf4250b7f3
Add UKBD_DEBUG.
2000-08-24 14:13:38 +00:00
augustss
fa9cfe5e39
Removed unnecessary variable declaration.
2000-08-24 14:12:34 +00:00
augustss
d08216d4e2
Add a quirk for audio devices that claim to have an extension unit, but it
...
can't be manipulated.
2000-08-24 14:11:09 +00:00
ragge
5796505d43
Fix after %b fixes.
2000-08-24 13:12:25 +00:00
msaitoh
b78abd33dc
KNF
2000-08-24 11:35:16 +00:00
uch
97749b6bb4
don't refer cf_unit.
...
undef __BROKEN_CONFIG_UNIT_USAGE
2000-08-24 11:19:19 +00:00
haya
6cbde58ee4
Add flag defines for 3CCFE575BT and 3CCCFE575CT (CardBus cards).
2000-08-24 08:54:31 +00:00
imp
9386fe0821
Sync to 1.98 of pcmciadevs
2000-08-24 07:12:20 +00:00
imp
cbacec4196
Sort BAY into numerical order.
2000-08-24 07:10:36 +00:00
thorpej
4f944290a2
Correct a comment.
2000-08-24 06:14:34 +00:00
chs
db3465f65b
in uvm_coredump(), avoid dumping parts of the stack multiple times
...
while skipping parts of the stack that hasn't been used.
pointed out by SAITOH Masanobu <masanobu@iij.ad.jp>.
2000-08-24 06:09:25 +00:00
uch
2111496e74
Rewrote TX39 series cache routines.
2000-08-24 05:31:59 +00:00
sommerfeld
6d8ab92a1a
Move kernel_lock release/switch/reacquire from ltsleep() to
...
mi_switch(), so we don't botch the locking around preempt() or
yield().
2000-08-24 02:37:27 +00:00
nathanw
7023c5166c
Fix typo in comment.
2000-08-23 23:17:14 +00:00
eeh
5ca48b896d
Update the scheduler to the new locking scheme.
2000-08-23 21:35:56 +00:00
matt
4e1f5ebf66
When reading dir entry by dir entry, we need to pad out the receive buffer
...
to at least a block to make ufs_readdir happy.
2000-08-23 21:11:47 +00:00
jhawk
2ea44b1dd4
install dosboot.com in the release(7) hierarchy.
2000-08-23 21:00:46 +00:00
wrstuden
4678e2bb87
Correctly spell DRIVER. Noted by Tsubai. :-)
2000-08-23 19:15:25 +00:00
jhawk
5056d0ce7c
Add support for "microwave oven robustness" with wiconfig -M.
2000-08-23 19:01:04 +00:00
bjh21
acb0541a4b
Use symbolic names for interrupt lines.
2000-08-23 17:28:51 +00:00
christos
e2bcf6b0b5
add support for sigaltstack(2) needed for jvm-1.3 support.
...
XXX: Only on i386, don't have access to other linuxes...
2000-08-23 17:02:18 +00:00
christos
7f6c062b21
regen
2000-08-23 17:01:20 +00:00
christos
303ab3ee07
add support for syscall 186 [sigaltstack]
2000-08-23 16:59:51 +00:00
sommerfeld
11eae2ffaf
Default simple_lock_debugger to "on" on MULTIPROCESSOR.
...
Change uninitialized simple_lock check from KASSERT to use SLOCK_WHERE
(to show the "real" source line where the error was detected).
2000-08-23 15:17:47 +00:00
pk
7c10808744
Use common fb.c from sys/dev/sun.
2000-08-23 13:41:58 +00:00
pk
12cd7ada9a
Common framebuffer functions.
...
(currently includes a special cased fb_isconsole() for sun4u).
2000-08-23 13:41:15 +00:00
tsubai
5558e41363
New PowerBook (firewire) seems to use edge-triggered interrupt.
...
XXX cannot hot-plug yet
2000-08-23 12:18:17 +00:00
pk
194a6c2d97
remove pfourreg.h.
2000-08-23 12:08:16 +00:00
pk
a50a11e47f
Add fb_setsize_pfour() prototype.
2000-08-23 12:02:47 +00:00
pk
408d2f01d0
Brooktree DAC support now lives in sys/dev/sun.
2000-08-23 10:08:48 +00:00
pk
837ef2bae6
This driver is now in sys/dev/sbus.
2000-08-23 10:07:46 +00:00
pk
aa81eb0f8b
This file is now in sys/dev/sun.
2000-08-23 10:07:25 +00:00
pk
c85ada8053
These drivers are now in sys/dev/sun
2000-08-23 10:05:46 +00:00
enami
d7236f8d44
Update nfs mount flags correctly. Fixes a bug introduced in rev. 1.65.
2000-08-23 09:59:22 +00:00
scw
da7dfaefcc
Though the VMEchip2 documentation is not explicit on the subject, a
...
VMEbus analyser confirms that D8 transfers are possible on all the
master ranges.
2000-08-23 08:13:14 +00:00
mrg
6e45dfc933
replace a head | tail | sed sequence with a single link awk invocation,
...
that also finds versions outside the range [0-9].[0-9] (eg, 10.10).
2000-08-23 07:15:20 +00:00
pk
317a570728
These devices will never be found on sun4u machines.
2000-08-22 21:43:35 +00:00
pk
1e1790859a
Pull in sys/dev/sun/files.sun.
...
Remove driver declarations that are now in /sys/dev/{sbus,sun}
2000-08-22 21:35:45 +00:00
pk
17e5f7b17c
Declare drivers moved here from arch/sparc.
2000-08-22 21:31:16 +00:00
pk
e02ba8698f
Declare drivers moved here from arch/sparc/dev.
2000-08-22 21:30:27 +00:00
pk
91f1b275c9
Remove driver declarations that are now in /sys/dev/{sbus,sun}
2000-08-22 21:29:49 +00:00
pk
702e1dd9e6
Use the framebuffer drivers & header files that now live in /sys/dev/sun.
2000-08-22 21:28:24 +00:00
bjh21
769e82477f
Move contents of <machine/spl.h> to <machine/intr.h>.
...
Add IST_* macros to <machine/intr.h>, mostly for the feature-list tickbox.
Generally tidy up.
2000-08-22 21:27:21 +00:00
bjh21
6e3e3a755d
Don't include <machine/spl.h> any more.
...
Include <machine/intr.h> everywhere than uses spl(9) functions.
2000-08-22 21:22:48 +00:00
pk
d29f2ce630
Get tcxreg.h from the correct location.
2000-08-22 21:18:57 +00:00
pk
40903bf7d3
Split off `pfour' code from sparc/dev/fb.c into a separate file.
...
This file will be pulled in by framebuffer drivers that define the `pfour'
attribute.
2000-08-22 21:18:14 +00:00
thorpej
7508bd7231
Use spllock() rather than splhigh().
2000-08-22 19:47:26 +00:00
thorpej
58e7a6954b
Add spllock(). See spl(9) for details.
2000-08-22 19:46:26 +00:00
thorpej
a2f2d10800
Slight adjustment to INTERLOCK_*() macros to make it easier
...
for the compiler to optimize.
2000-08-22 17:31:32 +00:00
thorpej
f759220f40
Define the MI parts of the "big kernel lock" perimeter. From
...
Bill Sommerfeld.
2000-08-22 17:28:28 +00:00
eeh
3787c3f7fd
Should use an `intrptr_t' for address calculations rather than `int'.
2000-08-22 16:44:51 +00:00
sommerfeld
867ca7767a
Fill in next mtu field of NEEDFRAG ICMP error message.
...
From Marc Horowitz, pr10857
2000-08-22 16:02:16 +00:00
thorpej
25fe521af4
Fix a locking glitch in callwheel_slock handling. Noted by Bill Sommerfeld.
2000-08-22 15:30:59 +00:00
leo
67f170f93c
Need to specify BINDIR or the executable ends up in /
2000-08-22 14:26:04 +00:00
abs
02a00854f4
Diet a little to help fitting onto a floppy
2000-08-22 13:36:14 +00:00
wdk
caa807ac35
* Tidy up reading of Mips volume header information
...
All compatable values are copied from the MIPS volume header to the
BSD disklabel structures.
* Add support for writing Mips volume header.
* Remove support for writing NetBSD label directly (this was broken)
These changes allow the kernel to read either a BSD disklabel created under
NetBSD/sparc or a MIPS volume header created under RISC/os.
There is a small amount of losage with the conversion between the 2
types of disk labels (mainly to do with file system types).
A table is used to map partition numbers and types between the two
types, and unless someone does something real fancy (or crazy) it should
work in both senario's
This change will allow the stand alone shell to directly load a NetBSD
kernel and mount a file system, avoiding the need for a seperate disk or
bootp server to bootstrapping NetBSD.
NetBSD/mipsco is now self sufficiant. We are not far from having a
miniroot filesystem and removing the need to have another NetBSD
machine to create the base filesystems.
Minor Trap for young players:
The root partition must be created with 'newfs -O' in order for the
stand alone shell to boot the kernel
TODO:
Add support for writing NetBSD disk labels back in - it will be useful
for non boot disks. I'm just not sure how to control the 2 behavours
2000-08-22 11:59:34 +00:00
tsubai
eaa177d2f1
Add a missing entry to chrtoblktbl.
2000-08-22 11:48:23 +00:00
joda
ce1bf05583
update description
2000-08-22 11:42:14 +00:00
tsubai
f406aae2d2
MD part of mcount.
2000-08-22 11:25:49 +00:00
joda
71cabc49dd
(rbus_pccbb_parent_mem): make the rbus minimum start address
...
configurable (RBUS_MIN_START), since default value of 1GB doesn't work
well on some ThinkPads
2000-08-22 08:42:55 +00:00
mrg
d12156f1bf
#include <compat/netbsd32/netbsd32.h> if necessary
2000-08-22 07:36:04 +00:00
mrg
8638251139
declare struct firm_event32
2000-08-22 03:35:14 +00:00
erh
df316aa06c
Change the heap limit from 40000 to 50000 so the heap is the same size as it was before the "Hack from Hell'.
2000-08-22 02:46:30 +00:00
thorpej
14c0be9cd4
Protect hardclock_ticks and softclock_ticks with the callwheel
...
lock to prevent a race between hardclock() and callout_reset().
2000-08-21 23:51:33 +00:00
thorpej
b7e86fa7a8
spllowersoftclock() is already void; no need to cast it.
2000-08-21 23:43:30 +00:00
thorpej
012500bf1f
Add a lock for the callwheel (callout facility), and only go to
...
splclock() while holding it.
2000-08-21 23:40:56 +00:00
scw
72f826d727
A VMEbus RAM board configured for use by mvme68k can now be
...
treated as just another available VMEbus slave image as far as
bus_dma(9) is concerned.
To preserve faster onboard memory, mvmebus_dmamem_alloc() will
allocate first from the offboard VMEbus RAM slave image if present,
and assuming its address modifier matches the caller's constraints.
This can be overidden by specifying the BUS_DMA_ONBOARD_RAM flag.
2000-08-21 20:50:13 +00:00
tsubai
365ec2aa42
Scheduler locking changes.
2000-08-21 18:46:03 +00:00
enami
efb0ce0996
Recognize Promise ATA-100 controller as PDC-20262 instead of 20246.
2000-08-21 15:52:50 +00:00
enami
84ebb6165e
Match the Promise ATA-100 controller found on the mother board
...
MS-6321 (MSI 694D Pro). Reported in PR#10756 by Kazuki Sakamoto.
2000-08-21 15:43:46 +00:00
enami
b84a81b268
Regen.
2000-08-21 15:33:45 +00:00
enami
7012027317
Add a product id for the promise ata-100 controller found on
...
MS-6321 (694D Pro). Reported in the PR#10756 by Kazuki Sakamoto.
2000-08-21 15:28:17 +00:00
bjh21
a776e1268d
General cleanup of definitions of translation table stuff.
...
Also add PPN[8] for the A540. Now all I need are two more RAM cards for my
A540 so I can test it.
2000-08-21 14:37:51 +00:00
thorpej
7951ece147
Use splsched() instead of splhigh(), and explain why in a comment,
...
as well as document a pitfall of the approach being used.
2000-08-21 14:25:14 +00:00
ad
53204cdb36
Regen.
2000-08-21 14:11:45 +00:00
ad
360142a622
- Add vendor and product codes for Compaq array controllers.
...
- Pull in entries from OpenBSD that we don't already have.
2000-08-21 14:11:07 +00:00
haya
35c0f133ec
Regen.
2000-08-21 09:13:02 +00:00
haya
500edf585d
Add several Texas Instrument's PCI-CardBus bridges.
2000-08-21 08:58:51 +00:00
itohy
5755dca55d
Fix typos.
...
No functional changes.
2000-08-21 07:39:42 +00:00
enami
d707b78562
Declare this static simplelock data only when MULTIPROCESSOR or LOCKDEBUG is
...
defined to prevent compiler warning.
2000-08-21 06:42:57 +00:00
thorpej
7da965dade
splsched() is appropriate for select()/poll().
2000-08-21 06:27:59 +00:00
castor
2d8994210a
Add a bunch of macros of the form PCI_<regname>_CODE similar to
...
existing PCI_ID_CODE to create the PCI appropriate register from
parameters.
Avoid use of 'class' in macro -- it's a C++ reserved keyword.
2000-08-21 05:17:33 +00:00
castor
0c05c0b9f2
Add register definitions for S.M.A.R.T. -- an autonomous disk monitoring
...
standard.
2000-08-21 03:53:55 +00:00
thorpej
a616e3a1af
splhigh() -> splsched(), and an XXXSMP.
2000-08-21 02:33:04 +00:00
thorpej
b4dc5fb0b7
splhigh() -> splsched()
2000-08-21 02:31:59 +00:00
thorpej
9bd3060650
Remove a totally unnecessary splhigh/spl0 pair.
2000-08-21 02:29:32 +00:00
thorpej
5573e863c7
- Clean up _simple_lock_held()
...
- In simple_lock_switchcheck(), allow/enforce exactly one lock to be
held: sched_lock.
- Per e-mail to tech-smp from Bill Sommerfeld, r/w spin locks have
an interlock at splsched(), rather than splhigh().
2000-08-21 02:17:45 +00:00
sommerfeld
78e4a089b8
Don't bother reinitializing statically-inited locks
2000-08-21 02:16:30 +00:00
thorpej
f42254818f
splhigh() -> splsched()
2000-08-21 02:09:33 +00:00
thorpej
4b2bdb6565
splhigh() -> splsched().
2000-08-21 02:07:18 +00:00
thorpej
23a7f255d4
Make sure we provide splsched() as described in spl(9).
2000-08-21 02:06:31 +00:00
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
ross
37262919a9
Edit adv0 comment to include "SCSI"; now 'grep -v -i SCSI GENERIC' works.
2000-08-15 20:09:26 +00:00
fvdl
534b45c853
Move identifycpu to a place where it gets called earlier in the process,
...
so that special setup functions needed for some CPUs will be run before
some things (like UVM) are inited.
Add vm_page_zero_enable = FALSE to the cyrix 6x86 case, as page zeroing
while idle causes problems.
2000-08-15 18:21:44 +00:00
fvdl
4ca7344324
Fix omission in previous.
2000-08-15 17:54:59 +00:00
eeh
2ce37274f1
Fix LP64BE bug.
2000-08-15 16:26:42 +00:00
fvdl
ce4bcf47f3
Do not call MALLOC with M_WAITOK while holding the "lock". Thanks to
...
Ethan Solomita for the reminder.
Mark the parent vnode lock as recursive while flushing pagedeps. XXX.
Should fix kern/10564.
2000-08-15 14:25:08 +00:00
thorpej
c7b8439ec4
- Make lazy I-sync a little safer -- always mark the pmap as needing
...
I-sync in pmap_remove_mapping() if the old mapping had PG_EXEC, and
kick curcpu (IMB) or other CPUs (via an IPI) only if the pmap was
the kernel pmap or active on other CPUs (curcpu is handled in userret()).
- Use lazy I-sync everywhere, (hopefully) eliminating the last of the
I-sync issues for multiprocessor support.
- Eliminate some memory barriers added in a couple of previous revisions,
after some discussion on port-alpha/tech-smp.
Still some lazy I-sync optimization possibilites:
- pmap_changebit() does not need to I-sync when only write-protecting
a page.
- pmap_asn_alloc() may be able to cancel a pending lazy I-sync when a
new ASN is allocated. Need to double check against Green Book or
Brown Book.
2000-08-15 05:21:20 +00:00
wdk
33016f23e0
* Tidy up interrupt handlers by implementing an intr_establish()
...
handler to hook up device interrupts and softc callbacks.
Suggested by: Jason Thorpe and Toru Nishimura
* Fixup the indenting in a few places to conform to NetBSD style
2000-08-15 04:56:45 +00:00
wdk
374fb8efbc
Decrement the block count to compensate for 64 bytes prefetched to fill
...
the DMA FIFO on non block aligned writes. Not doing this causes large
writes (>4k) that are not aligned to incorrectly write 64bytes
of data every 4k interval. This only occurs on raw devices - typically
newfs fails to create a clean filesystem.
2000-08-14 21:04:44 +00:00