Commit Graph

40522 Commits

Author SHA1 Message Date
itojun
29a4fb39d9 minor typo. s/iPsec/IPsec/ 2000-08-30 15:04:45 +00:00
soren
55dbdb6091 Typo. 2000-08-30 14:59:48 +00:00
itojun
58c93e23cf LP64 fix (cast to u_long when printing size_t) 2000-08-30 14:58:33 +00:00
tsubai
c6615ed380 Initialize pv_head locks. 2000-08-30 09:55:28 +00:00
is
9ec45c470a Use an INSTALL kernel, instead of GENERIC. We want this to be as small as
possible so that it can boot even on low memory Amiga machines.
2000-08-30 09:43:04 +00:00
sommerfeld
99d6bcc3e1 more range-checking.
In debug code, limit the size of malloced buffers to a reasonable amount.
2000-08-30 01:13:22 +00:00
is
e83ee64031 Stripped down Install kernels (no audio, no OSI or Xerox networking, no
scanners).
INSTWDCPCM has the wdc instead of the idesc, and the PCMCIA support, so
that people can test it easily.
2000-08-29 21:09:28 +00:00
leo
6c521b3fcc Now that formatting works (Thanks Nathan!), it shows that spec_read() is
issueing a 'DIOCGPART' at every read. Avoid re-reading the label at
every format-verify (or read/write on the block-device) by fetching the label
at open-time and caching it until we close.
2000-08-29 20:00:16 +00:00
sommerfeld
90eb61037d Range-check ioc->len 2000-08-29 15:15:13 +00:00
takemura
212b3fa9d8 The bootloader has been improved by Kazuma Arino.
- dialog style main window
  - support to read compressed kernel image
  - automatic boot with timer
  - human readable configrarion file
version no gets '1.15.00 2000.08.29'
2000-08-29 15:10:14 +00:00
sommerfeld
6b88a0fc51 Emulation stackgap sanity checks, based partly on fixes from
FreeBSD-SA00:42.

Change stackgap_alloc to bounds-check the allocation vs. the stack
gap, returning NULL if there isn't room for the allocation.

Change emul_find() to check for a NULL return from stackgap_alloc()
and convert that into ENAMETOOLONG.

Reorder various emulation syscalls so that all *_CHECK_ALT_{EXIST,CREAT}
calls (which turn into emul_find() under the covers come *after* small,
fixed-size stackgap_alloc() calls.

Clean up ibcs2 {get,set}groups.
2000-08-29 14:33:25 +00:00
wdk
35871e7996 Report memory sizes using format_bytes(9) kernel function 2000-08-29 12:12:59 +00:00
itojun
2af85c262b improve code sharing for esp_schedule(). add some diagnostics cases
for esp_cbc_{en,de}crypt().  sync with kame.
2000-08-29 11:32:21 +00:00
wdk
149a5fc5f2 Engage the clutch before changing gears.
If the machine uses a Z85230 ESCC device with deep buffers, we observe
output glitches when printing the zstty{0,1} probe lines when the device
is reset & reprogrammed during startup.

There is no easy 'hook' in the MI Z8530 driver, so we wait for output
buffer to drain before changing the baud rate generator prescaler value.
2000-08-29 11:25:08 +00:00
wdk
5656bdea79 Don't trust the realtime clock if the data is before 1988. This is
consistant with other ports.

Prevent uninitialized time from being written back to the RTC (1-Jan-1970)
if the machine is halted from the root device name prompt
(bootflags & RB_ASKNAME)
2000-08-29 10:34:13 +00:00
itojun
6fe60cce5f do not forward packets with unspecified source address (::).
this is clarification recently made to RFC2460.  sync with kame.
2000-08-29 09:19:43 +00:00
itojun
bb8d535cc5 use per-block cipher function + esp_cbc_{de,en}crypt. do not use
cbc-over-mbuf functions in sys/crypto.

the change should make it much easier to switch crypto function to
machine-dependent ones (like assembly code under sys/arch/i386/crypto?).
also it should be much easier to import AES algorithms.

XXX: it looks that past blowfish-cbc code was buggy.  i ran some test pattern,
and new blowfish-cbc code looks more correct.  there's no interoperability
between the old code (before the commit) and the new code (after the commit).

XXX: need serious interop tests before move it into 1.5 branch
2000-08-29 09:08:42 +00:00
haya
25147761ff Add support 3C[CX]FE575CT. 2000-08-29 08:54:50 +00:00
wdk
aaa3f11967 Fix an obscure bug with dump corrupting files during raw reads.
If the DMA chaning interrupt couldn't be serviced immediately (higher spl
level when kernel doing something else) a few microseconds later the NCR
controller will fill its FIFO and also interrupt the CPU.

The SCSI interrupt sees the terminal count has been reached, calls
asc_dma_intr to finish the job off.   The FIFO cannot be flushed because
the block count hasn't been setup for the last dma segment (DMA chaining
still wasn't serviced).

Since the NCR 53c94 FIFO is only 16 bytes in size, any short DMA in this
size combined with the machine 'doing something else' causes the problem
to occur.

Servicing the DMA chaining interrupt before the NCR SCSI interrupt solves
this problem.

Add tests to ensure the DMA FIFO has been flushed correctly at the end of
each DMA operation just to be on the safe side.
2000-08-29 08:24:06 +00:00
wiz
4739c00231 regen 2000-08-29 01:18:17 +00:00
wiz
52454a3dd6 add vendors HAUPPAUGE, ASKEY, AVERMEDIA 2000-08-29 01:17:06 +00:00
sommerfeld
1cbfb08951 Fix !LOCKDEBUG && !DIAGNOSTIC case 2000-08-28 21:07:52 +00:00
pk
55af96281e Pull down from 1.4 branch: default relocation address = 3E0000 2000-08-28 19:10:31 +00:00
eeh
bbede65f5b Fix E250 identification. 2000-08-28 18:01:23 +00:00
jdolecek
a020e8fbb5 regen 2000-08-28 17:44:33 +00:00
jdolecek
8b242e878a add entry for SupraExpress 56i Sp V.90, as sent in kern/10902 2000-08-28 17:43:59 +00:00
joda
00305bb997 provide some randomness 2000-08-28 13:25:22 +00:00
tsubai
f671e87235 Add an argument to need_resched macro. 2000-08-28 11:52:59 +00:00
tsubai
077c9ca312 Enable hash filter mode. 2000-08-28 11:27:44 +00:00
haya
403941c60d Regen to correct wrong keyword. 2000-08-28 10:35:59 +00:00
haya
7591b1332b Correct wrong keyword. 2000-08-28 10:33:58 +00:00
haya
128fa6e8fb Correct PCI interrput setup routine for Texas Instruments PCI113X.
Now PCI113X is able to handle hot insertion and deletion properly.
2000-08-28 09:26:38 +00:00
haya
21ddff737c Regen. 2000-08-28 09:18:09 +00:00
haya
86063b7c73 Add 3Com 3C656 LAN + MODEM CardBus cards. 2000-08-28 08:59:49 +00:00
simonb
94d3076df3 #define<tab> cleanup. 2000-08-28 02:12:22 +00:00
sato
2a9cfc2e99 add pwctl PWCTL_LCD, PWCTL_LCDLIGHT for NEC_MCR_FORDOCOMO, NEC_MCR_500. 2000-08-27 22:56:31 +00:00
mjacob
37c83e1340 fix some missing initializations 2000-08-27 21:43:26 +00:00
itojun
e101febc8f make sure to stir ESP IV. pool allocator gives me almost constant
value.  we may need to do an advisory...
2000-08-27 17:41:12 +00:00
matt
4027af140c Make the pmap: enter on myself panic conditional under DIAGNOSTIC 2000-08-27 17:14:44 +00:00
ragge
fa53886b69 Wiring of a page were done at the wrong place, so pages in kernel space
never got the wired bit set. This caused panics if a swapped out process
was swapped in again and the kernel stack had not yet been unmapped.
While here, add a forgotten lock initializer.
2000-08-27 14:14:50 +00:00
is
115bd3b350 Replace one callout handler by using a timeout in tsleep().
1.4.x version of it submitted by Ingolf Koch; translated to 1.5-ish by
myself.
2000-08-27 10:35:43 +00:00
itojun
3da9705446 add a warning on IPv6 setsockopt number space (*BSD shares the number space
so consult KAME for number allocation)
2000-08-27 01:02:48 +00:00
matt
98e5e148fa Since cpu_switch (aka Swtch) is now called at splsched() with sched_lock
locked, cpu_exit needs to do that too.  Since in the lock debug case we
have to use a CALLS which wipes out R0-R6, change the convention for Swtch
so that the proc is passed in R6 and that R6 is clobbered.  This is so
Swtch itself doesn't have to save/restore the proc pointer explicitly.
2000-08-27 00:21:46 +00:00
minoura
cbac1a91d9 Add #ifdef _KERNEL ~ #endif to protect kernel variables from userland. 2000-08-26 23:23:43 +00:00
minoura
33f305090e Set fputype earlier, before proc0 initialization. 2000-08-26 23:04:44 +00:00
eeh
194bbc3c5d Don't bcopy() from luserland. 2000-08-26 20:08:22 +00:00
sommerfeld
bdc30aed03 Since the spinlock count is per-cpu, we don't need atomic operations
to update it, so don't bother with <machine/atomic.h>

Flush kernel_lock_release_all() and kernel_lock_acquire_count() (which
didn't do spinlock accounting correctly), and replace them with
spinlock_release_all() and spinlock_acquire_count().
2000-08-26 19:26:43 +00:00
thorpej
fe036cae9a Fix a printf format (for Alpha). 2000-08-26 17:02:16 +00:00
eeh
a0f2ab32f7 Make 64-bit clean. 2000-08-26 16:02:06 +00:00
matt
5c62e0cab4 Fix the idle loop. 2000-08-26 15:13:23 +00:00
itojun
152da24bd9 implement net.inet6.ip6.{anon,low}port{min,max} sysctl variable. 2000-08-26 11:03:45 +00:00
itojun
26dc854c41 make sure anonport{min,max} is not negative number 2000-08-26 10:41:29 +00:00
itojun
4d40179399 add missing IPNOPRIVPORTS case 2000-08-26 10:40:03 +00:00
thorpej
9eed6192a2 Un-transpose some characters in an abbreviation. 2000-08-26 06:58:25 +00:00
sommerfeld
8d5cbaa48d Forward-declare struct cpu_info 2000-08-26 04:17:44 +00:00
sommerfeld
340951f9d1 On second thought.. pass cpu_info * to roundrobin() explicitly. 2000-08-26 04:01:16 +00:00
matt
7e0ad8b0c2 Update to reflect new processor switching conventions w/ LOCKDEBUG
and MULTIPROCESSOR
2000-08-26 03:38:46 +00:00
sommerfeld
ec08310fab More MP clock/scheduler changes:
- Periodically invoke roundrobin() from hardclock() on all cpu's rather
than from a timer callout; this allows time-slicing on non-primary cpu's.
 - Make pscnt per-cpu.
 - Notice psdiv changes on each cpu, and adjust pscnt at that point.
Also, invoke setstatclockrate() from the clock interrupt when each cpu
notices the divisor change, rather than when starting/stopping the
profiling clock.
2000-08-26 03:34:36 +00:00
thorpej
0ba350214f Thinko in previous. 2000-08-26 03:33:49 +00:00
thorpej
2af5e3861c Fix a couple of typos in previous. 2000-08-26 03:32:36 +00:00
thorpej
0e04909346 Snapshot of TLB shootdown bugfixes. 2000-08-26 03:27:44 +00:00
matt
fc1511e910 add a COMPAT_15 and remove TCP_COMPAT_42 2000-08-26 02:32:57 +00:00
matt
3fec8167d3 Reverse polarity on INSN_EMULATION to NO_INSN_EMULATION. Thus by default
all kernels will have instruction emulation.
2000-08-26 02:30:59 +00:00
jhawk
ce7a425d77 Revert last, softc is now updated.
I neglected to checkin the if_wivar.h update earlier, sorry.
2000-08-26 00:08:43 +00:00
jhawk
a44862dea9 oops, missed this file earlier (Doh!):
Add support for "microwave oven robustness" with wiconfig -M.
2000-08-26 00:05:54 +00:00
thorpej
5bd1b19b29 Don't use MALLOC() for variable-sized allocations. 2000-08-25 21:22:16 +00:00
bjh21
7c9498f7cb Move setsoftast() and friends into cpu.h and make them into macros, so arm26
is the same as every other port (except arm32).
2000-08-25 16:43:46 +00:00
tron
a97bfde931 Add new sysctl variables "net.inet.ip.lowportmin" and
"net.inet.ip.lowportmax" which can be used to the set minimum
and maximum port number assigned to sockets using
IP_PORTRANGE_LOW.
2000-08-25 13:35:05 +00:00
tsubai
308d7eb3e4 Add (experimental) awacs audio driver. Output (play) only. 2000-08-25 12:44:42 +00:00
bjh21
36f4367186 <machine/spl.h> -> <machine/intr.h> (missed this one last time) 2000-08-25 10:37:58 +00:00
haya
0e2c6c0cc1 Access on ELINK_W3_INTERNAL_CONFIG register with 32-bit mode. Remove
16-bit access code.  This register is 32-bit.  16-bit access with the
register causes data inconsistency (especially for CardBus cards).
2000-08-25 09:01:59 +00:00
pk
baa6bfe332 The `fb' device is optional. 2000-08-25 08:12:49 +00:00
jeffs
d3afa878a2 Fix typo in SIATXRX_SPP comment. 2000-08-25 08:03:10 +00:00
matt
3351f4cf4b Need <bsd.own.mk> for OBJECT_FMT. 2000-08-25 03:51:34 +00:00
sommerfeld
3a2b5d49a6 partial backout of last commit: #if 0 references to sc->wi_mor_enabled
since it doesn't exist in the softc.
2000-08-25 03:11:14 +00:00
sommerfeld
392f867be8 MULTIPROCESSOR: Initialize new proc's p_cpu pointer to NULL, so
anything which looks at it before it runs won't explode.
2000-08-25 02:55:49 +00:00
thorpej
4db6fc7542 Make need_resched() take a "struct cpu_info *" argument. This
causes gives a primitive form of processor affinity.  Its use in
roundrobin() still needs some work.
2000-08-25 01:04:06 +00:00
mjl
8358c07048 Add bpf tap to gre interface. 2000-08-25 00:51:20 +00:00
eeh
61197aa4f0 Add workaround for E250s. 2000-08-24 22:00:04 +00:00
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