uwe
ae7219a39a
Don't compare an integer to NULL.
2003-10-22 21:10:15 +00:00
uwe
49bb9c9d40
Don't compare an integer variable to NULL.
2003-10-22 21:09:09 +00:00
kleink
eef6265460
G/c the local declaration of __nanf; handling of this (conditional on
...
__HAVE_NANF) was moved to <math.h> some time ago.
2003-10-22 21:04:40 +00:00
kleink
b3bc4360e2
C99: provide DECIMAL_DIG.
2003-10-22 20:31:05 +00:00
he
f99f18a0af
Fix two more instances of paddr_t vs. NULL (use 0 instead).
2003-10-22 20:26:32 +00:00
he
20af44689e
Bring this back to a compileable state; fallout from NULL type change,
...
so just use 0 before casting to paddr_t.
2003-10-22 20:15:20 +00:00
uwe
129cf6259c
Catch up with GENERIC (1.148).
2003-10-22 18:24:53 +00:00
matt
7e1d1cca33
s/SSR/SRR
2003-10-22 17:29:18 +00:00
matt
3f37cf2db7
Rework ddblow so that if PSL_PR == 1, it dispatches directly to the
...
trap handler and bypasses the ddbtrap code.
2003-10-22 17:27:58 +00:00
augustss
f42962a2c2
Add Dvorak keyboard map. From PR kern/23230, jacereda@tractor.act.uji.es.
2003-10-22 17:24:43 +00:00
jdolecek
958d4a6d68
add kttcp major
2003-10-22 17:12:54 +00:00
jdolecek
51c4eb4597
add majors for mly, dpti, dpt, twe, joy, radio, cir
2003-10-22 17:08:13 +00:00
jdolecek
ee510816af
add wsfont major to archs which have the other wscons devices
2003-10-22 16:53:22 +00:00
kleink
5a44ed37d3
C99: provide FLT_EVAL_METHOD.
2003-10-22 16:18:48 +00:00
manu
8beb6e32ae
Patch from http://mail-index.netbsd.org/current-users/2003/09/04/0018.html
...
to fix problems with a sound card
2003-10-22 15:57:33 +00:00
kleink
22c6452bfb
_ISO_C99_SOURCE -> _ISOC99_SOURCE
2003-10-22 15:51:18 +00:00
thorpej
0f781c4abb
Add support for the SPI EEPROM found on the newer i82541 and i82547
...
chips. Add the i82541 and i82547 product IDs to the table, #if 0'd
out, for now (there are still more changes to come for these new chips
to work properly).
2003-10-22 15:50:39 +00:00
briggs
0fd0bfe35a
enami noted that my last fix was not correct. Simplify the code some (and
...
make it more correct) by removing a flag to track wdc attachment. Disable
the function after wdcattach() is called, and remove a conditional when
enabling the function in wdc_pcmcia_enable().
2003-10-22 15:03:04 +00:00
itohy
8a3fce54f8
Fix in debug code (no functional changes).
2003-10-22 14:18:27 +00:00
kleink
5d1a2f48d2
Use a common <machine/math.h> for amd64 and i386.
2003-10-22 11:54:23 +00:00
fvdl
91371415b1
Match the Promise FastTrak 378.
2003-10-22 11:32:40 +00:00
fvdl
ba07312903
Match the nForce3 AC-97 chip.
2003-10-22 11:32:12 +00:00
fvdl
653fb67506
Regen.
2003-10-22 11:31:18 +00:00
fvdl
5b7cf69d6e
Add:
...
* an id for the Promise FastTrak 378
* several ids for NVidia nForce3 devices
2003-10-22 11:30:52 +00:00
agc
25cf475b83
Another NULL vs. 0 correction.
2003-10-22 10:04:43 +00:00
agc
0192c15f19
Don't use NULL when 0 is needed.
2003-10-22 09:43:07 +00:00
mjl
e959b27d7f
Typo in comment. From OpenBSD.
2003-10-22 09:04:39 +00:00
agc
f3d647fc2c
Don't use NULL for integer values.
2003-10-22 09:03:40 +00:00
mjl
088da88a56
Typos in comments. From OpenBSD.
2003-10-22 09:02:49 +00:00
agc
df214f1879
Don't use NULL when an integer is needed.
2003-10-22 08:58:38 +00:00
briggs
1e810e3178
Since we enable the pcmcia function on attach, disable it on the detach.
2003-10-22 07:48:25 +00:00
briggs
40823fb6bb
Maintain reference count properly for nested enables/disables.
2003-10-22 07:46:48 +00:00
thorpej
9e4220c00a
Oops, a little to aggressive in the previous patch; TCP_TIMER_INIT()
...
still needs to be in tcp_newtcpcb(), for now. Pointed out by enami.
2003-10-22 05:55:54 +00:00
augustss
6d60d8ab89
Re-add the quirks that force certain In-System Design adapters to appear
...
as (non-standard) ATA over BBB adapters. Without these quirks they are
not regocnized by the umass driver.
2003-10-22 05:38:16 +00:00
briggs
33a79483d0
Fix a panic that occurred when trying to traverse a corrupt msdosfs
...
filesystem. With this particular corruption, the code in pcbmap()
would compute an offset into an array that was way out of bounds,
so check the bounds before trying to access and return an error if
the offset would be out of bounds.
2003-10-22 03:51:12 +00:00
thorpej
31923baa46
Rather than zeroing a tcpcb structure and filling in all the fields
...
individually, create a tcpcb template pre-initialized (and pre-zero'd)
with the static and mostly-static tcpcb parameters. The template is
now copied into the new tcpcb, which zeros and initializes most of the
tcpcb in one pass. The template is kept up-to-date as TCP sysctl
variables are changed.
Combined with the previous sb_max change, TCP socket creation is now
25% faster.
2003-10-22 02:45:57 +00:00
fvdl
eee926f0a9
Only declare intr_scan_bus if NIOAPIC > 0.
2003-10-22 01:53:49 +00:00
mycroft
98fb62de25
Add a code that appeared in a PR recently.
2003-10-22 00:35:41 +00:00
christos
55222ec4a6
Regen
2003-10-22 00:18:32 +00:00
christos
c1ce37728d
Remove backslash for new gawk
2003-10-22 00:17:39 +00:00
christos
ddccf85c50
support for NE2000_TYPE_AX88790 from
...
Yong-Jhen Hong yongjhen at alqualonde dot org
2003-10-22 00:12:36 +00:00
fvdl
e74e8c0c71
Correctly walk up the PCI bus tree to find an interrupt match with
...
a swizzled pin.
2003-10-21 23:25:48 +00:00
fvdl
80cec054e5
If a bus has not been configured by MPBIOS/ACPI, and the attach hook
...
for it is called, mark it as configured.
2003-10-21 23:22:52 +00:00
thorpej
4011fcfefd
Cache the "adjusted" value of sb_max when sb_max is changed, in order
...
to avoid doing quad math in sbreserve().
Change suggested by Simon Burge, and code inspired by a similar change
in FreeBSD.
2003-10-21 22:55:47 +00:00
thorpej
861856caa0
Add event counters that measure FAST_MBSEARCH.
2003-10-21 21:17:20 +00:00
kleink
7d9835b758
Don't use NULL in integer-type assignments/comparisons.
2003-10-21 20:59:31 +00:00
tsutsui
4ec21ca21e
Use proper macro instead of NULL.
2003-10-21 17:07:20 +00:00
tsutsui
680fc37c3b
Remove declarations of constab[] and *cn_tab. They are in <dev/cons.h>.
2003-10-21 17:03:52 +00:00
thorpej
3e560e2b48
Add a TODO list item.
2003-10-21 16:52:08 +00:00
thorpej
c50f2ac573
- Move the i82540EM (LOM) along with the other i82540 product IDs.
...
- Match the i82545GM (1000BASE-T and 1000BASE-X) and i82546GB
(1000BASE-T and 1000BASE-X) product IDs.
2003-10-21 16:51:17 +00:00
thorpej
a866babe44
If we're on PCI-X, look up the PCI-X capability. Verify that the
...
max memory read byte count in the command register is <= the max designed
memory read byte count in the status register. If not, reset it to the
status register's value. This is necessary because some BIOSes configure
the wrong value, and the wrong value confused some versions of the PCI-X
capable chips.
2003-10-21 16:41:51 +00:00
tsutsui
564931c4a5
- Use scsibus* at scsi?
...
- Use atabus* at ata?
- Use atapibus* atapi?
- Sort ATA/ATAPI device entries.
- Comment out aceride, piixide, siside, and viaide.
2003-10-21 16:28:20 +00:00
thorpej
fa32a2cf94
- Since we access PCI config space as 32-bit words, redefine the PCI-X
...
command register bits offset and shifted appropriatly (PCI-X command
makes up the upper 16 bits of the register that holds the PCI-X cap ID
and next-cap-pointer).
- Define shift counts for max memory read byte count in the command
and status registers.
2003-10-21 16:22:48 +00:00
tsutsui
e6a659ad96
The 6th argument to extent_create() is size_t, don't pass NULL in it.
2003-10-21 16:19:04 +00:00
tsutsui
281b9dfec6
vaddr_t is not pointer, so don't compare it against NULL.
2003-10-21 16:17:18 +00:00
tsutsui
62486dcbeb
- Use one 'atabus* at ata?' instead of multiple 'atabus* at XXXide? channel ?'
...
- Comment out piixide. (can it be attached on cobalt?)
2003-10-21 15:09:19 +00:00
tsutsui
bf4d10546f
vaddr_t is not pointer, so don't compare it against NULL.
...
(BTW, should we also fix "NULL" in following printf messages?)
2003-10-21 15:05:56 +00:00
tsutsui
fa49899d30
Add bswap64.c, required by options FFS_EI.
2003-10-21 14:49:00 +00:00
itohy
29baf4fd02
white space police
2003-10-21 13:10:42 +00:00
itohy
173218ef29
Slightly change the base address so GENERIC kernel may boot (but not confirmed).
2003-10-21 12:43:19 +00:00
itohy
87bcaf3acc
1.2: Support disklabel.
2003-10-21 12:40:15 +00:00
itohy
3fd01cc3f8
Add -D__daddr_t=int32_t so that the arguments of IODC are
...
not promoted to 64bit.
On 32bit PDC machines, IODC *requires* 32bit args and IODC
can handle only 2GB, and need not to use 64bit integer.
2003-10-21 12:35:23 +00:00
itohy
59f09ea752
Fix types of printf() args to match the format strings.
2003-10-21 12:26:27 +00:00
itohy
76595c213b
Enable disklabel support.
2003-10-21 12:24:11 +00:00
itohy
d71dd6d1f4
#if 0 unused parts.
2003-10-21 12:22:37 +00:00
itohy
a57f5d5d08
Use ../common/libsa.h for prototype declarations of common functions.
...
Add tgets prototype (should be in some header file?).
2003-10-21 12:21:05 +00:00
itohy
1bb2ee7654
Add prototypes.
2003-10-21 12:19:24 +00:00
itohy
9833e639a8
Add a prototype.
...
Silence -Wshadow.
2003-10-21 12:18:02 +00:00
kleink
004922cd70
Don't use NULL in integer-type assignments/comparisons.
2003-10-21 12:08:11 +00:00
petrov
fd995d7327
More NULL vs not pointer.
2003-10-21 09:02:50 +00:00
petrov
2ba6e4bf47
don't assign/compare integer and NULL.
2003-10-21 08:43:32 +00:00
petrov
9aefdf5971
Don't assign/compare integer and NULL.
2003-10-21 08:38:04 +00:00
petrov
688c2d65e3
Don't use NULL for integer.
2003-10-21 08:31:11 +00:00
petrov
e092522bfc
Don't use NULL for an int comparsion.
2003-10-21 08:27:20 +00:00
petrov
73c14af7a1
don't use NULL for an int initialization.
2003-10-21 08:26:31 +00:00
petrov
de7eafdbf8
don't initialize an int with NULL.
2003-10-21 08:20:15 +00:00
skrll
601de4df8c
Rename dsrtc to ds1687rtc to avoid conflicting with the MI i2c
...
ds1307 driver.
Hi Jason.
2003-10-21 08:15:39 +00:00
petrov
1176590ac1
don't use NULL for u_long initialization.
2003-10-21 08:12:46 +00:00
skrll
c6935c341a
Remove the channel locator in atapibus* at umass?
2003-10-21 08:03:16 +00:00
itojun
a5b0232610
backout previous; pf and crypto are moved to common majors range
2003-10-21 07:46:50 +00:00
itojun
8386af6745
major for pf/crypto
2003-10-21 07:38:22 +00:00
simonb
45cf1137ea
Remove break after return.
2003-10-21 06:22:46 +00:00
simonb
7feb1a91fa
Remove return after panic().
2003-10-21 06:22:16 +00:00
thorpej
abc7f80ca5
- Map I/O space on chips that support it. While it is not used for
...
normal operation, it is required to implement a bug work-around on
some chips.
- When issuing a reset on the i82544, i82540, i82545, i82546,
and i82541, use I/O space, if available, to work around a problem
with the memory write cycle (problem only occurs when issuing
a reset).
2003-10-21 05:45:11 +00:00
thorpej
f44ddf324f
Fix a typo.
2003-10-21 05:07:10 +00:00
thorpej
0143773bbc
Add some additional register definitions needed for newer chips:
...
- Control register shadow
- SPI EEPROM stuff
2003-10-21 04:39:32 +00:00
thorpej
2cadb9ce85
Record characteristics of the bus connection at attach time.
2003-10-21 04:35:01 +00:00
fvdl
8b99487c1e
Define NULL as (void *)0, unless C++ is being used.
2003-10-21 03:27:32 +00:00
fvdl
ce7e811d1d
And the wise man said: An u_int32_t is not a pointer, my young apprentice,
...
so thou shalt not compare it to NULL.
2003-10-21 03:24:25 +00:00
fvdl
c9aca9f010
Don't pass NULL as an integer value.
2003-10-21 03:22:25 +00:00
fvdl
7a6172fe2e
Fix NULL assignment to an integer field.
2003-10-21 01:54:23 +00:00
fvdl
80d06975ab
Fix int vs. NULL comparison.
2003-10-21 01:45:25 +00:00
fvdl
f4fff513a1
Fix NULL vs. int comparison.
2003-10-21 01:44:45 +00:00
fvdl
38bee36b4c
Fix some int vs. NULL comparisons.
2003-10-21 01:38:42 +00:00
fvdl
d114e05b9c
Don't compare an integer value against 0.
2003-10-21 01:20:12 +00:00
fvdl
5e8b006a17
Add missing field initializer.
2003-10-21 01:12:42 +00:00
yamt
65995a9aa2
don't swap powerhook and shutdownhook.
2003-10-21 01:00:57 +00:00
fvdl
5f1e7fa5f8
Correct NULL abuse.
2003-10-21 00:57:47 +00:00
fvdl
a08babb013
NULL -> 0 for preempt() argument.
2003-10-21 00:49:34 +00:00
fvdl
a7ee73261e
Correct argument to preempt().
2003-10-21 00:46:09 +00:00
fvdl
c6019338cd
Correct preempt() calls.
2003-10-21 00:39:03 +00:00
uwe
62c7814709
Add missing NetBSD/hpcsh devices.
2003-10-21 00:33:12 +00:00
fvdl
86c363960e
Correct NULL abuse.
2003-10-21 00:25:59 +00:00
fvdl
2a11316bc0
Correct NULL abuse.
2003-10-21 00:22:04 +00:00
thorpej
e2d086d69d
- Do better error checking on EEPROM access.
...
- Let the EEPROM wire-protocol handler perform the loop.
2003-10-20 22:52:19 +00:00
manu
a591d65ec7
One more section type in the Mach-O format. Now /usr/X11R6/bin/quartz-wm links
...
and run (it aborts because the dock is not launched).
2003-10-20 22:42:40 +00:00
kleink
36a2ba5ccd
Need to make sure __sysconf() has C linkage.
2003-10-20 22:16:33 +00:00
thorpej
12c5273afa
Move all the code that handles the MicroWire EEPROM protocol into
...
a separate function.
2003-10-20 16:28:23 +00:00
briggs
1ce6ced119
As suggested by Jason Thorpe, rename m41t to m41trtc.
2003-10-20 16:24:10 +00:00
jdolecek
bf6449bbff
add major for wsfont
2003-10-20 16:20:53 +00:00
briggs
795751a888
Add i2c and the m41t00 RTC on the i2c bus.
2003-10-20 15:37:46 +00:00
thorpej
fedb07bc8d
Fix a typo in the "failed to acquire eeprom" case.
2003-10-20 15:34:25 +00:00
thorpej
0ebc93fe43
Move the code that reads a series of bits from the EEPROM into a
...
separate function.
2003-10-20 15:33:48 +00:00
yamt
f3f1661306
set READres EOF flag correctly.
2003-10-20 13:53:47 +00:00
dsl
b203df0726
Include FS_VINUM in FS_MAXTYPES.
...
Note there are discrepencies between this list, and that of Free/OpenBSD.
2003-10-20 13:41:28 +00:00
wiz
48f28cea9e
sa_vp_faultaddr, sa_vp_ofaultaddr, sa_vp_stacks_low, and sa_vp_stacks_high
...
are vaddr_t (and thus unsigned long).
Initialize them with 0 instead of NULL.
Closes PR 23204 by Dheeraj Reddy.
2003-10-20 07:15:26 +00:00
thorpej
17aaa92402
Make all of the functions in this file static.
2003-10-20 06:00:26 +00:00
thorpej
10926a6056
Factor out the code that sends bits to the EEPROM into a separate function.
2003-10-20 05:56:17 +00:00
simonb
d4b0d4911f
Remove some numeric asm labels that aren't used.
2003-10-20 05:52:55 +00:00
simonb
066683efa3
Need Data Relocate in the MSR for the dcbf in pmap_procwr().
...
From Matt Thomas.
2003-10-20 05:47:52 +00:00
thorpej
f5fc41219d
Move the code that handle the EEPROM handshake into separate functions.
2003-10-20 05:40:03 +00:00
matt
421dd6cc28
Reorganize the way powerpc port install machine specific headers.
...
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and
<powerpc/bat.h>. Remove unneeded <machine/cpufunc.h>. To insure
1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include
"../../powerpc/include/Makefile" in "arch/FOO/include/Makefile".
Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-20 00:12:09 +00:00
dyoung
ab4a574ce1
Don't take the 802.11 header off of a frame until after we've given
...
it to the driver's BPF tap.
2003-10-19 22:00:54 +00:00
kleink
bb07f8defb
Add COMPAT_16.
2003-10-19 22:00:01 +00:00
he
536bcfc87a
Adapt to the new wdcattach() signature.
2003-10-19 19:29:50 +00:00
matt
e43846141a
Remove unused header.
...
Don't install kernel-only headers.
2003-10-19 18:56:39 +00:00
he
d37f50098a
Adapt to the new wdcattach() signature.
2003-10-19 18:49:25 +00:00
fvdl
e9ee9a82c7
Don't use err and trapno from a copied in mcontext.
2003-10-19 18:14:42 +00:00
cl
ed9c2d7075
don't uvm_swapout LWPs which are LSONPROC on another cpu.
...
uvm_swapout_threads will swapout LWPs which are running on another CPU:
- uvm_swapout_threads considers LWPs running on another CPU for swapout
if their l_swtime is high
- uvm_swapout_threads considers LWPs on the runqueue for swapout if their
l_swtime is high but these LWPs might be running by the time uvm_swapout
is called
symptoms of failure: panic in setrunqueue
fixes PR kern/23095
2003-10-19 17:45:35 +00:00
jdolecek
e66b4221b3
add major for ksyms, and add the comment about MD major range
2003-10-19 16:51:04 +00:00
bouyer
0ca33bf011
Better late than never, add the chip-specific PCI ide controllers.
2003-10-19 15:41:23 +00:00
ragge
9cbcd57e32
Add lcspx.
2003-10-19 15:04:08 +00:00
ragge
90f561b5ff
Add lcspx console device driver.
2003-10-19 15:03:25 +00:00
ragge
a893520c07
Add console text device driver for the LCSPX framebuffer. Really dump,
...
cannot change colours, and is really slow; I haven't found how to buffer
writes to the console yet.
2003-10-19 15:02:17 +00:00
ragge
9fb208fc0a
Avoid the pvtable when devices are mapped. Fixes panics when unmapping
...
framebuffers. Set aside space in kernel map for framebuffer on VS4k.
2003-10-19 14:58:22 +00:00
ragge
836c5d5ec4
Allow mmap() of /dev/mem.
2003-10-19 14:56:28 +00:00
ragge
89d60ed8ea
Fetch SCSI controller ID from nvram for VS4k90 also.
2003-10-19 14:54:24 +00:00
he
5e5a2bb96f
Make this compile as a tool; we need to pick up the target's
...
sys/bootblock.h header in that case.
2003-10-19 11:34:27 +00:00
tsutsui
8d36037f37
Utilize bus_dma(9) functions more efficiently.
...
pcscp(4) is the first device driver I wrote about five years ago,
but I still have to learn about bus_dma(9) implementation...
2003-10-19 10:25:42 +00:00
manu
d77ec799a5
Support Darwin static binaries (I should say: support the only Darwin
...
static binary: otool). Dynamic binaires have a pointer to the Mach-O
header on the top of the stack, static binaries don't have this, and
having it produced a crash.
One bugfix: the EXEC_MACHO code assumes that entry = NULL means that
the entry point has not been found in the load commands seen so far.
Therefore we need to initialized entry to NULL if we want a static binary
to discover it. (dynamic binaries were forced to iscover it because when
the intepreter load command is found, entry is updated whatever its
value was before).
One hack: Both COMPAT_MACH and COMPAT_DARWIN are willing to run Mach-O
binaries. COMPAT_MACH fails for dynamic binaries because it cannot find
the interpreter in /emul/mach. For static binaires, it will accept them
(and for Darwin static binaries, this will cause a failure). Until we
rite a test for matchinf Darwin static binaries, just swap the order of
COMPAT_MACH and COMPAT_DARWIN in the exec switch so that COMPAT_DARWIN
is tried first (this will have the advantage of speeding up program
startup). EXECSW_PRIO_{FIRST_LAST} does not seem to work...
2003-10-19 07:52:22 +00:00
scw
175f717bf5
Be more careful about validating the user-specified geometry, otherwise
...
it's too easy to specify a geometry which will cause a divide by zero
elsewhere in the disklabel code.
2003-10-19 07:41:19 +00:00
matt
3dc55c1216
Add IBM Network Station 1000 port. From John Gordon and updated by me.
2003-10-19 03:33:49 +00:00
matt
3642aa4ccc
Add PCN_NO_PROM flag. (read the macaddr from the chip assuming the "BIOS"
...
has properly written it). From John Gordon.
2003-10-19 03:32:25 +00:00
matt
ba34947f80
Add powerpc-specific isa and isadma machdep code. (Merge common code from
...
prep and sandpoint and ...)
2003-10-19 03:19:32 +00:00
uwe
437e63c180
__KERNEL_RCSID.
2003-10-19 02:22:56 +00:00
uwe
738a5e234e
Config glue for j6x0tp(4).
2003-10-19 02:21:40 +00:00
uwe
e4bd58b011
Driver for Jornada 680 touch screen.
2003-10-19 02:20:25 +00:00
simonb
9833c17169
Remove some unreachable code with the comment "To shut up compiler"
...
that neither gcc 2.95.3 or 3.3.1 complains about if that bit of code
is missing...
2003-10-19 01:49:03 +00:00
simonb
59fb31d7cc
Remove unreachable break after return and goto statements.
2003-10-19 01:44:48 +00:00
itohy
29f0f3babf
Change the location of BSD disklabel not to overlap with LIF header.
...
LABELSECTOR: 0 -> 1
LABELOFFSET: 64 -> 0
per discussion on NetBSD mailing lists: port-hp700 and tech-kern.
2003-10-18 23:45:30 +00:00
uwe
a2a5c1629e
Make intc_intr_priority() return old level. While here, make the code
...
more compact by factoring out register update to happen in one place,
outside the switch statements.
Add intc_intr_disable() and intc_intr_enable().
2003-10-18 23:21:35 +00:00
cdi
492c11116f
Revert previous change as it breaks the build on a number of ports.
2003-10-18 21:26:22 +00:00
matt
3109d133ea
Regen.
2003-10-18 18:53:09 +00:00
matt
0d7c37b872
Add Philips SAA7146AH
2003-10-18 18:51:29 +00:00
christos
3825627f57
define SIGTRAMP_VALID()
2003-10-18 18:34:10 +00:00
briggs
1c36c6dcdb
Add SIGTRAMP_VALID().
2003-10-18 18:34:09 +00:00
briggs
11088af0ac
Add SIGTRAMP_VALID().
2003-10-18 18:29:53 +00:00
briggs
093821886e
Define SIGTRAMP_VALID(v).
2003-10-18 17:57:06 +00:00
yamt
4e9f921204
be more strict about sa->vp.
...
(make sure the last lfs_updatemata in lfs_putpages takes effect.)
2003-10-18 15:52:42 +00:00
manu
8c5377c3b8
Remove references to wsmux_cdevsw and wsdisplay_cdevsw (how to remove
...
them completely?)
Add SETCURSORPOSITION operation
2003-10-18 13:27:17 +00:00
manu
3b556e0bb2
Fix error in struct definition
2003-10-18 13:25:27 +00:00
enami
e51f5c64e5
Fix indent.
2003-10-18 13:05:45 +00:00
enami
e7533e9811
Don't limit xfer size to SBP2_MAXPHYS. Its not transfer size limit
...
but just a threshold how to describe transfer.
2003-10-18 12:47:28 +00:00
enami
145fb5989c
Factor out common code.
2003-10-18 12:40:09 +00:00
enami
3072a86cf0
Whitespace nits.
2003-10-18 12:31:37 +00:00
ragge
895d584f93
Add cnmagic support to the DZ driver. Pmax should also use cnmagic instead
...
of it's homwgrown tests.
2003-10-18 12:10:53 +00:00
ragge
c862115a9d
Use the vax confdata to determine whether to use serial console.
...
Do cn_set_magic() for the VAX DDB escape sequence (ESC-D).
2003-10-18 12:09:18 +00:00
ragge
7b77aca6ae
Do not try to fetch the current proc if curlwp == NULL. This caused
...
DDB to fail if no process were running.
2003-10-18 12:07:44 +00:00
ragge
f545d1a885
Read out confdata for the VS4000/90 also.
2003-10-18 12:06:11 +00:00
manu
15af059557
On some machines, the keyboard is not enabled after a reset, rendering the
...
console useless. Fix that by explicitely enabling the keyboard when it is
attached.
2003-10-18 09:19:04 +00:00
lukem
7d84b90c92
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
...
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:30:12 +00:00
lukem
184141db07
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
2003-10-18 08:12:07 +00:00
lukem
e1616bdc8a
use 'atabus* at ata?'
...
use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:11:02 +00:00
tsutsui
fd5c63296f
Fix some attach messages for new ahc(4).
2003-10-18 07:44:51 +00:00
wiz
810d184699
Fix typo in comment.
2003-10-18 07:41:26 +00:00
petrov
b8454aaa52
cpu_getmcontext: get fsr from correct place.
2003-10-18 06:51:42 +00:00
itohy
faf6cfae4c
Rename local variables read' to
nread' to shut up -Wshadow.
2003-10-18 06:39:12 +00:00
itojun
e0c9ee7f93
print "association failed" message only if IFF_DEBUG
2003-10-18 05:06:43 +00:00
simonb
78c2103e34
Remove assigned-to but otherwise unused variables.
...
Remove unreachable break after return statements.
2003-10-18 04:50:35 +00:00
simonb
513b330566
Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if
...
necessary.
2003-10-18 04:34:30 +00:00
simonb
136dd90b25
Remove unused ohci stub.
2003-10-18 04:31:37 +00:00
simonb
c25af55e8c
Remove assigned-to but otherwise unused variable.
2003-10-18 04:03:22 +00:00
onoe
ba543e3743
Do not update SSID by beacon, because hidden SSID implementation is vary.
...
ex. 0-length, single space, 0x00 with correct length.
So, we don't update SSID in node table by beacon, but always update by
Probe Response.
2003-10-18 03:33:51 +00:00
uwe
b78fce9820
Config glue for j6x0pwr(4).
2003-10-18 01:40:05 +00:00
uwe
8b50c662e8
Jornada 680/690 power &c. Doesn't do much useful at the moment, but
...
provides RTFS documentation on how things are wired in Jornada.
Listens to "switch off" interrupt generated when On/Off button is
pressed, or the lid is closed.
Polls the status of main and backup batteries and warns if main
battery is low.
2003-10-18 01:38:39 +00:00
lukem
6ba1832265
regen for more ServerWorks devices
2003-10-18 01:33:16 +00:00
lukem
f1b836d0c9
Remove http://members.hyperlink.net.au/~chart/pci.htm link; it doesn't
...
exist anymore.
Add some more ServerWorks devices
2003-10-18 01:32:30 +00:00
uwe
15e3e96e71
Config glue for adc(4).
2003-10-18 01:29:05 +00:00
uwe
721e6868b8
Driver for analog->digital converter in sh7709.
2003-10-18 01:27:18 +00:00
matt
3575370e0a
Remove worthless load.
...
Save curcpu before doing uniprocessor dispatch.
2003-10-17 22:21:38 +00:00
thorpej
b0bced8029
Store the number of EEPROM address bits in the softc.
2003-10-17 21:12:48 +00:00
matt
12ecf72b47
Don't zero curlwp/curpcb in cpu_switchto.
...
Use correct register in the store conditional.
Add DIAGNOSTIC check for null curpcb on cpu_switch exit.
2003-10-17 21:08:57 +00:00
thorpej
2d858d3912
Add internal representation for i82545 rev 3, i82546 rev3, i82541,
...
i82541 rev 2, i82547, and i82547 rev 2.
2003-10-17 20:57:32 +00:00
thorpej
e3ca7c2c73
Make the "align tweak" factor per-interface (since the MTU is per-interface).
2003-10-17 20:41:21 +00:00
enami
bae9643b84
Increment stats when packet is dropped since there is no room
...
to put all fragments in the interfaces's send queue. Some large
UDP packets are dropped here and administrator may want to bump ifqmaxlen.
2003-10-17 20:31:12 +00:00
cdi
61da4642b8
Introduce null console. This pseudo device acts as a normal console with the
...
exception that it discards any output, and is useful for booting the kernel
on headless boxes.
2003-10-17 20:27:38 +00:00
fvdl
c8c91c50dd
Correct VM_MAXUSER_ADDRESS definitions, it was wasting a few pages.
2003-10-17 20:27:00 +00:00
matt
67ab911529
Add a KASSERT() to verify the pcb is not NULL.
2003-10-17 19:56:18 +00:00
cdi
d65b10404c
Change console code to use cninit() and null console. Add serial console
...
check.
2003-10-17 18:20:10 +00:00
cdi
2b3e81f067
Introduce null console. This pseudo device acts as a normal console with the
...
exception that it discards any output, and is useful for booting the kernel
on headless boxes.
2003-10-17 18:16:42 +00:00
tsutsui
3a646e9b6c
Add some delay before calling comcnattach() to wait
...
previous console output to complete.
2003-10-17 18:15:52 +00:00
tsutsui
f7772c7c77
- No need to set VR_TXCTL_TLINK in vr_start() because all TX buffers have
...
only single segment.
- No need to set VR_CMD_TX_ON in vr_start().
- Initialize BCR0 and BCR1 registers.
- Change RX DMA threshold 128bytes.
Mostly from FreeBSD via OpenBSD.
2003-10-17 17:42:35 +00:00
tsutsui
19e183345a
Add vr at pci and dmphy at mii. Tested on my O2.
2003-10-17 17:18:16 +00:00
mycroft
568ccf202d
Add a comment explaining the INQUIRE behavior.
2003-10-17 16:44:48 +00:00
tsutsui
631fad8686
Misc cosmetics.
2003-10-17 16:39:09 +00:00
fvdl
5b12e0425d
Put the ucontext pointer in %r15 for signal delivery, so that it is
...
saved across the handler call.
2003-10-17 16:24:31 +00:00
tsutsui
0a3ddecb47
Use common PCI macro/functions for PWRMGMT.
2003-10-17 16:00:43 +00:00
yamt
818ef92da6
add comments and tweak code a little for readability.
...
(no behaviour changes)
2003-10-17 14:20:12 +00:00
sekiya
a747a8f16d
Mouse port offset was incorrect.
2003-10-17 12:43:08 +00:00
sekiya
af12cdb68a
Compile dsclock_hpc.c only if dsclock is present in config file.
2003-10-17 06:49:34 +00:00
lukem
0b441623fe
Add user flag CCDF_NOLABEL to prevent the on-disk label from being read
...
during CCDIOCSET.
Use this when creating a new ccd to ignore any existing disklabel
which is probably wrong.
2003-10-17 05:16:15 +00:00
dyoung
5dca575ce1
ieee80211_newstate() wants for ic->ic_state to equal the previous
...
state, so do not update ic->ic_state in wi_newstate() before calling
ieee80211_newstate(). Instead, update ic->ic_state when we do not
let ieee80211_newstate() run.
2003-10-17 03:58:23 +00:00
mycroft
e879d3a728
PQUIRK_NOSENSE is dead here. Remove the code supporting it.
2003-10-17 00:20:28 +00:00
mycroft
f8a10571e5
Remove the Fuji quirk from here, too.
2003-10-17 00:19:46 +00:00
mycroft
3fd37812f4
The Yano quirk was intended to do FORCE_SHORT_INQUIRY. Not that that's gone,
...
we shouldn't need this any more, so nuke it.
2003-10-17 00:12:58 +00:00
mycroft
ecb8d5d482
Set the REQUEST SENSE command length to 12 for ATAPI, too. (UFI and ATAPI are
...
really the same...)
Fixes problems with Sony Vaio memory stick slots, which advertise themselves as
"ATAPI over CBI".
Remove the quirk for Fuji cameras, since this is almost certainly the same bug.
2003-10-16 23:39:40 +00:00
fvdl
6a6db3cbd9
Add hooks and structures to allow the MP table intr mapping code a
...
better shot at finding a mapping. For PCI interrupts, if a bus
has no mappings, try its parent, with the swizzled pin, and the
bridge's device number.
2003-10-16 22:56:29 +00:00
mycroft
055625357d
Whoops, set cmd_length correctly for the 36-byte INQUIRE.
2003-10-16 22:46:07 +00:00
matt
f90b1121c4
bpfattach/bpfdetach need to be protected with NBPFILTER > 0
2003-10-16 22:25:00 +00:00
mycroft
19ef8301a7
Switch back to UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO in a few cases. Not that
...
it really matters, but UMATCH_VENDOR_PRODUCT effectively overrides the class
code, and that is not supposed to be part of the "quirk".
2003-10-16 20:01:06 +00:00
mycroft
f8c8ef3b63
Document the Olympus, ScanLogic and Sony "quirks" better. Also, the ScanLogic
...
correctly reports itself as SCSI -- it is *not* UFI.
2003-10-16 19:54:01 +00:00
mycroft
0f1275cee2
Do a 36-byte SCSI 2 inquiry first, and iff that returns an additional length
...
>32 do a 74-byte inquiry. Fixes problems with devices that barf on longer
inquiries. (Linux uses 36 bytes almost everywhere, as a data point.)
2003-10-16 17:34:43 +00:00
christos
cd026bf62c
Sprinkle more COMPAT_NETBSD32 for good cheer.
2003-10-16 16:06:43 +00:00
christos
b51967d220
add -DCOMPAT_NETBSD32 so that it builds.
2003-10-16 15:59:01 +00:00
christos
74e287ff04
Add more compat options until this builds.
2003-10-16 15:57:12 +00:00
jdolecek
4bb42bc621
switch ARM to use same minor for /dev/zero as other archs
...
as discussed on tech-arm@
2003-10-16 12:02:58 +00:00
dyoung
d531221c67
Prepare for wi rate adaptation. Add wi_write_txrate, which only
...
writes a hardware register when the data rate selection actually
changes. Add wi_cfg_txrate, which writes the data rate selection
regardless.
Name some fields in the wi Tx buffer which we will use for rate
adaptation.
Name the Prism "Alternate Retry Count" RID, WI_RID_ALT_RETRY_COUNT.
2003-10-16 10:57:35 +00:00
dyoung
50daf0a217
The upper & lower bounds on wi RSSI are completely bogus, AFAICT.
2003-10-16 10:38:07 +00:00
dyoung
7c0b454d52
Cosmetic change: shorten 6 lines to 2.
2003-10-16 10:04:14 +00:00
dyoung
1ff3c191c9
Fix WEP transmission, too. From FreeBSD/Sam Leffler.
2003-10-16 09:31:08 +00:00
dyoung
bcde77e394
ath(4) failed to detect when the number of DMA segments exceeded
...
the number of descriptors, because of a disparity between the
bus_dmamap_load_mbuf implementation in FreeBSD and NetBSD. Now I
cover up the difference using ath_dmamap_load_mbuf.
Thanks Enami Tsugutomo for diagnosing this.
2003-10-16 09:13:30 +00:00
wiz
68f5a56945
regen
2003-10-16 08:05:54 +00:00
wiz
7127923ca9
According to Linux USB Ids list, 0b7a belongs to zeevo, inc.
2003-10-16 08:05:42 +00:00
ichiro
581dfca276
add {shutdownhook,powerhook}disestablish()
2003-10-16 07:55:18 +00:00
pk
f845a339ac
Enable VLAN encapsulation.
2003-10-16 07:20:54 +00:00
mycroft
d7b6d72e8c
Deal with the damn DiskOnKey devices. See the comment for an explanation.
2003-10-16 00:36:46 +00:00
itojun
5f3342505f
$NetBSD$
2003-10-15 23:24:36 +00:00
itojun
a4a1466cb5
add $NetBSD$
2003-10-15 23:23:39 +00:00
itojun
ba71e93c60
backout previous (ENETREST special handlng)
2003-10-15 22:55:34 +00:00
uwe
390e87a8b6
Use 'CH' for channel select in the ADCSR bits format string for consistency.
2003-10-15 22:55:07 +00:00
enami
73473f6883
Return 0 on SIOC{ADD,DEL}MULTI.
2003-10-15 22:41:22 +00:00
itojun
d587f445de
s/printf/DPRINTF/ for ath_rate_ctl()
2003-10-15 22:19:31 +00:00
itojun
90d92fe2d9
ignore ENETRESET on ADDMULTI
2003-10-15 22:16:35 +00:00
itojun
018cb094b4
ignore ENETRESET on ADDMULTI.
2003-10-15 22:15:25 +00:00
itojun
ea0e5abff9
translate pci device ID until HAL gets updated. suggested by sam leffler
2003-10-15 20:33:30 +00:00
itojun
5f3b1ef5ad
regen
2003-10-15 20:31:52 +00:00
itojun
809ac79214
add Atheros product IDs from athhal_devid.h
2003-10-15 20:31:38 +00:00
bouyer
70b50b0608
Make sure chp->atabus is initialised, and wakeup the right address when
...
shutting down the kernel thread.
2003-10-15 20:29:26 +00:00
bouyer
ea6912c52d
- don't ignore last bit when checking for floating bus value on slave
...
device; some ATAPI devices as master will report 0x7f in all registers
for slave before reset
- For the same reason, remove the er1 check.
Makes slave device with a "strange" ATAPI master probe again.
Problem reported and fix tested by Gary Duzan on current-users.
2003-10-15 20:26:33 +00:00
bouyer
3d6919754d
Clear chp->ch_drive[i].drive_flags if we didn't find a driver for the
...
drive.
2003-10-15 19:54:30 +00:00
jdolecek
6b5eef9a33
add major for nsmb, at #98 to be in sync with i386
2003-10-15 18:27:20 +00:00
jdolecek
79ebb210fa
add majors for ipfilter, lkm, vnd, tun, raid, cgd, ccd, and md
...
where missing
2003-10-15 18:20:19 +00:00
thorpej
eea31306c8
Remove the superuser check for MNT_FORCE on new mounts. It's been
...
pointed out by several people that it offers no real protection.
2003-10-15 17:26:38 +00:00
scw
def6ab457b
Remove the #ifdef __XSCALE__ around the strd test as the instruction
...
is available on any v5E processor.
Pointed out by Richard Earnshaw.
2003-10-15 14:07:03 +00:00
fvdl
4b84b8d930
Don't put the netbsd32_compat*.c files in the 'compat library'. Unconditionally
...
compiling these causes a ripple effect making it hard to conditionalize
anything on COMPAT_* in the kernel.
2003-10-15 13:32:14 +00:00
pk
7dceb5fbf9
obp_v2_getbootfile: we might as well be complete by also considering the
...
PROM environment variables `diag-switch?' and `diag-file'.
2003-10-15 11:51:48 +00:00
dyoung
db0e43b296
Add WEP shared-key authentication.
2003-10-15 11:43:51 +00:00
dyoung
e86c830f2a
Fix WEP reception.
2003-10-15 11:40:07 +00:00
hannken
a3a898ff0f
Add the gating of system calls that cause modifications to the underlying
...
file system.
The function vfs_write_suspend stops all new write operations to a file
system, allows any file system modifying system calls already in progress
to complete, then sync's the file system to disk and returns. The
function vfs_write_resume allows the suspended write operations to
complete.
From FreeBSD with slight modifications.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-10-15 11:28:59 +00:00
rjs
9f105a9400
Regen.
2003-10-15 11:11:55 +00:00
rjs
41929af1e0
Add more IDs.
2003-10-15 11:10:45 +00:00
drochner
ecbadcc56c
fix typo (harmless as long as pmap_update() is a noop)
2003-10-15 09:44:55 +00:00
dsl
b03412ca14
Set vnode size of character disk devices to that of the partition when they
...
are opened (was always done for block devices).
This means that fstat will report the partition size and hence newfs
needn't grovel into the disklabel to find the filesystem size.
2003-10-15 08:41:26 +00:00
tron
d8c9e38848
Fix build error caused by last change.
2003-10-15 08:28:29 +00:00
itojun
5752b1f9ee
add __attribute__((__format__)) to if_printf
2003-10-15 08:13:28 +00:00
pk
a2fbe60ed4
sun4m_access_fault: Treat text/data error traps as if they were text/data
...
exception traps, except that they're logged on the console.
2003-10-15 07:49:41 +00:00
simonb
662c7128cd
Re-order a little so that there's no unreachable code in this block.
2003-10-15 07:18:17 +00:00
simonb
07c9a24e6a
One defintion of OP_SYNC should be enough.
2003-10-15 06:46:46 +00:00
simonb
9606d846fa
Don't check an uninitialsed error variable before printing an error
...
message.
2003-10-15 06:43:36 +00:00
simonb
20178cc3db
Fix obvious typos in a call to pci_mapreg_map().
2003-10-15 06:32:35 +00:00
petrov
7b20d2185b
Set CPU_UPAID when enabling timer interrupts.
2003-10-15 05:16:36 +00:00
gson
d1298fd2a7
If a bootxx program already happened to be a multiple of 512 bytes in
...
length before padding, the shell command to conditionally pad it to
a multiple of 512 bytes returned a nonzero exit status, causing the
build to fail.
2003-10-15 03:49:57 +00:00
enami
8823a8da9a
Port multicast handling to NetBSD. Addresses PR23151.
2003-10-15 03:04:03 +00:00
briggs
f2f02bc9da
Make sure descriptors get bus_dmamap_sync()ed.
...
Restructure a little to make this a little easier.
Also try to avoid allocating things at reset time.
2003-10-15 02:18:52 +00:00
simonb
ef41f16231
Correct a test for setting IFF_OACTIVE on the interface.
2003-10-15 02:10:00 +00:00
grog
b95a3b2e71
Change definitions to compile correctly without VINUMDEBUG flag.
...
Reported by: hubertf
Remove $FreeBSD$ ID string.
2003-10-15 01:31:39 +00:00
lukem
1fa9c076ee
Use a shell variable instead of a cpp #define to provide the full
...
version string; it's more consistent.
2003-10-15 01:28:49 +00:00
itojun
a8d71f892f
define struct prf_ra outside of in6_prflags, to be c++ friendly. sync w/kame
2003-10-15 01:28:28 +00:00
dyoung
f2a9708c75
Do not index arrays using enum constants, since enums can be
...
re-ordered and extended. Instead, use a switch-statement or a
key->value table with appropriate bounds-checking.
2003-10-14 23:13:44 +00:00
dyoung
0fc2b8e13f
Add missing pktattr declaration. Should compile w/ ALTQ, now.
2003-10-14 23:02:52 +00:00
fvdl
14cdf7ae6d
Proper checks for kmem reads beyond _end
2003-10-14 22:33:29 +00:00
nathanw
768b79db69
Catch up to ata/ide changes; look for a parent device of wd named "atabus"
...
instead of "pciide", and check one layer farther up in the device hierarchy
for the scsipidev device.
From Manuel Bouyer, tested by me on a up1500 (identical changes to other
ide-booting code).
2003-10-14 22:01:02 +00:00
fvdl
8639708413
Pass the right argument pointer to trace_enter/trace_exit.
2003-10-14 18:54:34 +00:00
ichiro
f4f7b1ae5c
add support ath on cardbus
...
- implement power management
2003-10-14 17:47:03 +00:00
ichiro
6fc4a5549a
regen
2003-10-14 17:44:09 +00:00
ichiro
5e3d3508b6
add ATHEROS AR5001 WirelessLAN 802.11a/b/g CardBus
2003-10-14 17:43:55 +00:00
christos
bd5d984311
Check for file existance, not readability. Remove extra touch.
2003-10-14 16:59:54 +00:00
tsutsui
53cbca2fa2
Add options COMPAT_16.
2003-10-14 16:16:04 +00:00
lukem
5ab4225f2d
assign the variables on separate lines; makes it easier to read and
...
easier to change one locally with minimal cvs merge issues
2003-10-14 14:23:10 +00:00
dbj
fe7c786886
add mnt_iflag field to struct mount for internal flags
...
mv MNT_GONE, MNT_UNMOUNT and MNT_WANTRDWR to this field
additonally add mnt_writeopcountupper and mnt_writeopcountlower fields
in preparation for pending write suspension support work
bump kernel version to 1.6ZD
2003-10-14 14:02:56 +00:00
yamt
1fb76f9bad
add a prototype of check_segsum().
2003-10-14 13:51:51 +00:00
yamt
d457c892fa
when roll-forwarding, check segment serial numbers correctly.
2003-10-14 13:46:30 +00:00
wiz
09d05922dc
Fix mixer wraparound. Closes PR 16652.
...
Patch from Sergey Svishchev. mycroft says "looks ok".
2003-10-14 13:12:19 +00:00
yamt
73e762ca69
add a missing fsbtodb() to read a correct block for roll-forwarding.
2003-10-14 12:52:28 +00:00
yamt
1508246f38
remove a redundant definition of LFS_MAX_ACTIVE.
2003-10-14 12:51:31 +00:00
tron
162ada1c8b
Replace symbolic link "/usr/include/varargs.h" (pointing to
...
"/usr/include/machine/varargs.h") by a stub include file which will
emit an error if GCC 3.3 or newer is used and include "machine/varargs.h"
otherwise.
Based on a suggestion by Richard Earnshaw. This fixes PR toolchain/22888
by myself.
2003-10-14 12:46:44 +00:00
martti
fd34f3d937
Added another Dell PERC 4/Di
2003-10-14 11:33:36 +00:00
martti
a027ea5f33
Regen: Dell PERC 4/Di
2003-10-14 11:32:19 +00:00
martti
f4ae717ace
Added another Dell Perc 4/DI
2003-10-14 11:30:36 +00:00
lukem
6fc70a0f8c
clean up the method to initialize sccs[] and version[] to remove
...
unnecessary duplication in the source
2003-10-14 06:46:57 +00:00
itojun
5e7b0c710b
more correction to ip_fragment; free mbuf correctly if ENOBUFS is raised
...
during fragmenting.
2003-10-14 06:36:48 +00:00
itojun
40e6b63c60
fix endian bug in fragment header scanning.
2003-10-14 05:33:04 +00:00
itojun
00af50df1b
avoid mbuf leak on ip_fragment(); obey 4.4bsd mbuf passing rule (mbuf passed
...
to a function must be freed by the called function on error).
pointed out by enami
2003-10-14 03:38:49 +00:00
christos
5a36293740
Make COMPAT_NETBSD32 compile again (untested)
2003-10-14 00:28:19 +00:00
christos
d0e3551301
Add mcontext32_t and friends. This is WIP.
2003-10-13 23:45:14 +00:00
augustss
359109cff2
Regen.
2003-10-13 22:34:32 +00:00
augustss
6c07c4466a
Another Logitech camera.
2003-10-13 22:34:10 +00:00
nathanw
b5b9ca33d7
Catch up DEBUG printfs to siginfo changes.
2003-10-13 22:19:15 +00:00
scw
9be5d4cbe9
Document the need for pcb32_r8 to be quad-aligned, now that cpuswitch()
...
uses Xscale's "strd" instruction.
2003-10-13 21:46:39 +00:00
scw
63d24b09fd
A couple of Xscale tweaks:
...
- Use the "clz" instruction to pick a run-queue, instead of using the
ffs-by-table-lookup method.
- Use strd instead of stmia where possible.
- Use multiple ldr instructions instead of ldmia where possible.
2003-10-13 21:44:27 +00:00
scw
100d67ec52
Xscale-optimised bcopyinout.
...
Contributed by Wasabi Systems.
2003-10-13 21:22:40 +00:00
scw
3bf49b3ae8
Tweak the read/write data abort check to recognise Xscale's strd/ldrd
...
instructions.
While the original code matched "strd" just fine, it also matched
the "ldrd" instruction ...
2003-10-13 21:13:30 +00:00
cl
1f11f69f25
add MD part of SA/pthread pagefault handling on hppa
2003-10-13 21:12:12 +00:00
scw
9d9ddf0409
Xscale-optimised b{copy,zero}_page().
...
Contributed by Wasabi Systems.
2003-10-13 21:03:13 +00:00
scw
063066a055
On Xscale, define PMAP_UAREA() and use it to tweak uarea mappings so
...
they use the mini D$.
This results in a small performance boost on xscale platforms, since
flushing the main cache on a context switch won't affect the kernel
stack/pcb.
2003-10-13 20:50:34 +00:00
scw
4355b16f71
In uvm_lwp_fork(), check if PMAP_UAREA() is defined and if so, invoke it
...
with the KVA of the newly-wired uarea.
This is useful on some architectures (e.g. xscale) where the uarea mapping
can be tweaked to use the mini-data cache instead of the main cache.
2003-10-13 20:43:03 +00:00
ad
1e3b781fed
Make this work with the newer 'Quartz' controllers.
2003-10-13 20:35:53 +00:00
dyoung
193ac59e63
Fix PR 23146 (sys/net80211/ intergration break WEP/power management
...
function) from FUKAUMI Naoki.
2003-10-13 20:05:09 +00:00
scw
5e7e19ec12
Xscale-optimised mem* functions, contributed by Wasabi Systems.
...
(Note: memcmp/memset improvements also benefit non-Xscale).
memcmp() - Compare 32-bits at a time if possible. Special-case 6-byte
comparisons, for the benefit of the network stack.
memset() - More loop unrolling, plus use of 'strd' instruction,
results in > 100% speedup on Xscale.
memcpy() - Big-endian support, unrolled loops, 'strd/ldrd/pld', plus
special-cases for very common length/alignment combinations
(at least in the kernel). Benchmarks show ~50% improvment on
Xscale.
memmove() - Big-endian support. Use fast memcpy(), above, if the regions
don't overlap. Otherwise unchanged.
2003-10-13 19:59:24 +00:00
fvdl
ff376b0763
Implement 32bit get/setcontext entry points.
2003-10-13 18:55:30 +00:00
fvdl
fd1fb232de
Regenerate.
2003-10-13 18:54:57 +00:00
fvdl
4a68d0f9cb
Define compat_16 as valid prefix; define the 1.6 compat sigreturn.
2003-10-13 18:53:35 +00:00
fvdl
f7ae3d4536
Define a few 32bit compat types (if COMPAT_NETBSD32, not exported to
...
userspace). Having them here is both good and bad. Good because they're
close to the actual native ones, bad because it exposes things out
of compat/netbsd32. However, putting the exclusively in the latter
requires a lot of reshuffling in the includes there, so this will
do for now.
2003-10-13 18:50:43 +00:00
fvdl
759027f9ca
Define a 32bit compat version of the siginfo sendsig, and rename the
...
old one to reflect it's COMPAT_16 status.
2003-10-13 18:47:10 +00:00
fvdl
6781db3e2a
Do checks on passed in context values (sigreturn/setcontext) explicitly;
...
can't rely on catching the trap on iret for a few reasons.
2003-10-13 18:45:59 +00:00
fvdl
0deb20a334
Define 32bit versions of signal frames and contexts.
2003-10-13 18:41:11 +00:00
fvdl
ef0bb54192
Define a few macros to validate userspace selectors.
2003-10-13 18:40:16 +00:00
fvdl
dc921bb48e
Define mcontext32_t (if COMPAT_NETBSD32).
2003-10-13 18:38:34 +00:00
fvdl
4505ad3141
Define all frame members as unsigned, to avoid any possibility of
...
sign extension on these values.
2003-10-13 18:38:02 +00:00
cl
e9de14a4d3
add MD part of SA/pthread pagefault handling on sh3
2003-10-13 18:08:45 +00:00
thorpej
a58b40631e
* Shuffle some flags to make it easier to visually compare lists
...
of flags.
* In the new mount case, make sure to clear the mount "action" flags.
* Allow MNT_FORCE to be set by root on new mounts.
2003-10-13 18:02:20 +00:00
pk
595fb05c30
obp_v2_getbootfile: use the value of the `boot-file' prom environment
...
variable if we determine that the boot arguments presented to us by the
PROM do not contain a boot file name.
Idea from Greg Woods on port-sparc@netbsd.org .
2003-10-13 17:59:19 +00:00
augustss
32ee02b1f9
Regen.
2003-10-13 17:16:55 +00:00
augustss
c88ef72c1d
Add some IOMEGA products.
2003-10-13 17:15:03 +00:00
thorpej
f7840303a1
Whitespace nits.
2003-10-13 17:07:55 +00:00
thorpej
1bdc80d6cc
Whitespace.
2003-10-13 16:55:10 +00:00
dyoung
031c2c9baa
Why don't I make up my mind? No need to left-shift the country
...
codes when I right-shift the country-code register! Fixes a bug
reported by Dan Carosone: regulatory domain "ETSI" registered as
domain "Spain/Other", so he could only tune channels 10 and 11.
2003-10-13 16:35:49 +00:00
agc
b2b49933f4
Move Matt Green's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
itojun
e6d129819b
update m_pkthdr.len
2003-10-13 08:55:59 +00:00
dyoung
5cea02e6fe
Complete replacement of the old 802.11 layer with the new.
2003-10-13 08:34:15 +00:00
dyoung
2295b27590
Install athioctl.h, defining ioctls for Atheros 802.11a/b/g radios.
2003-10-13 08:29:48 +00:00
dyoung
372fd2b92a
Adapt atw(4) to the new 802.11 layer.
...
Simplify atw_start, atw_newstate.
Synchronize access to atw_start by bracketing the call to
ieee80211_next_scan in atw_next_scan with splnet()/splx().
2003-10-13 08:22:19 +00:00
dyoung
e31cc884ed
Adapt awi(4) to the new 802.11 layer.
2003-10-13 08:10:48 +00:00
dyoung
ef743c64b6
Switch wi(4) to the new 802.11 layer.
2003-10-13 08:07:21 +00:00
dyoung
690ab87058
Use new 802.11 header files.
2003-10-13 08:02:02 +00:00
dsl
ca9f17c96d
Add bsd.obj.mk so these directories get their own obj directory (for the
...
library objects shared by their subdirectories).
Needed when the obj directory isn't a parent of the subdirectories obj directory
2003-10-13 06:56:47 +00:00
dyoung
c2ca61c2e6
Build net80211/.
2003-10-13 06:49:14 +00:00
dyoung
2459b02669
Switch an(4) to using the header files in the new 802.11 layer.
2003-10-13 06:45:32 +00:00
dyoung
5dbbaac41d
Switch to the new 802.11 layer.
2003-10-13 06:43:22 +00:00
dyoung
18cc6db280
For PCI attachment, ath(4) needs both the HAL binary and the files
...
listed in dev/pci/files.ath.
2003-10-13 06:40:14 +00:00