Commit Graph

83195 Commits

Author SHA1 Message Date
matt
87eed1926a Make sure .data is .long aligned. (fixes linker warning) 2006-09-01 19:11:56 +00:00
cube
207af46910 Add a note about the use of CTL_CREATE in sysctl_createv, otherwise the
code can be confusing.
2006-09-01 16:28:53 +00:00
matt
3672c831f3 Remove explicit cast which causes assignments to PC_REGS(f) to fail. 2006-09-01 13:58:46 +00:00
matt
47006e8ea3 Remove unneeded volatile. 2006-09-01 13:54:48 +00:00
cube
52f4c135dc Device isabus has to expose an interface attribute otherwise it can't have
children attaching and config(1) detects isa0 as orphaned in RC3230.

While turning isabus into an interface attribute doesn't work (because the
attribute 'isabus' already exists), depending on that very same attribute
works.

XXX  I wonder what to allow, what to disallow.  I'll think about it.
2006-09-01 13:28:17 +00:00
matt
be6447a4f3 Reorder AFLAGS to avoid assembler warnings 2006-09-01 13:07:51 +00:00
matt
1661cfe5d2 Increase SYMTAB_SPACE to 410000 2006-09-01 12:39:36 +00:00
mrg
09534a159a fix the previous: don't replace a NULL with a "" in an initialiser.
fixes sparc64 kernel from crash when starting ipfilter.  thanks to
jnemeth@ for flagging the delta that caused the problem.
2006-09-01 09:47:47 +00:00
mrg
663a6e2d8f s/E2BIG/EFBIG/ for bus_dma(9) errors. this is what every other
bus_dma does and several drivers depend on it.  in particular,
both re(4) and ath(4) would both spew "can't map mbuf" messages
as rapidly as possible (spamming the 9600 bps console) and
effectively locking up the interface until ifconfig "down up"
cycle was run.  with this fix, i get a much, much slower spew
of messages, and the interface (re(4)) continues to operate.
2006-09-01 09:21:18 +00:00
dyoung
4e2fa34401 Delete ath, it is known to be broken on alpha. 2006-09-01 08:19:03 +00:00
garbled
bb2f95cc58 hptide controller was tested on prep by a user. Adding to GENERIC 2006-09-01 07:41:57 +00:00
garbled
a9bf7a7670 I dunno how -Os crept into GENERIC, but yank it. 2006-09-01 07:23:51 +00:00
garbled
fcfc216b3b Fix a horrible bug in how we initialize the 8259 interrupt controller.
The bug displayed itself by locking up console output on a 7043-140
following a powercycle.  This may also have been the cause of bogus
interrupts on motorola class machines.
2006-09-01 07:02:28 +00:00
sekiya
bf3f4189a1 Fix delay() so that gcc4 does not optimize it into a noop. Lifted from the
newsmips implementation by tsutsui@
2006-09-01 05:43:23 +00:00
mrg
356f83eb40 clean up ptrace changes: #include "opt_ptrace.h" 2006-09-01 05:27:15 +00:00
dyoung
9079f579cb Add ath(4) to GENERIC alpha kernel. UNTESTED. 2006-09-01 04:58:17 +00:00
dyoung
ae7bd05531 Skip computing tags on IP Filter while its compatibility #defines
shadow important names like radix_node and radix_node_head.
2006-09-01 04:55:12 +00:00
sekiya
b103a9ae62 Store return value of iur_proc_queue() in local variable iwpr (unreferenced
anywhere else in function), to appease gcc4.
2006-09-01 04:54:45 +00:00
sekiya
40be9d473d Include <sys/vnode.h>. Caught by gcc4. 2006-09-01 04:49:48 +00:00
sekiya
4edb45ca0c Add missing equal sign. 2006-09-01 04:47:44 +00:00
rumble
db8f31d6dd Comment out tl(4) and nsphy(4) (used by the Set Engineering board) as it
appears to have an unresolved problem with bulk transmits.
2006-09-01 03:36:30 +00:00
rumble
67e8288ba5 Remove the 'FIFO Full' hack for interrupt vector 0.
It is unclear that this interrupt fails to latch as int2_wait_fifo()
depends on it doing so and appears to work. Furthermore, we were previously
unconditionally unmasking the interrupt 0 vector, which led to more
'unexpected interrupt' messages on the console, rather than avoiding them.

Approved by sekiya@.
2006-09-01 03:33:41 +00:00
matt
49b2425f19 Use an unsigned int for the blksize on read_cd_capacity. 2006-09-01 03:29:32 +00:00
dyoung
013444d78c Remove the declaration of an unused local variable 'reg'. 2006-09-01 03:24:58 +00:00
matt
4139dfe2aa Move a variable to prevent a "unused" variable warning. 2006-09-01 03:24:50 +00:00
matt
28ee68ae9b Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
matt
aa6c194477 Remove an unneeded volatile. 2006-09-01 03:22:58 +00:00
matt
fc28199c6e Fix a -Wshadow error. 2006-09-01 03:22:26 +00:00
dyoung
19ce2e4680 Vastly simplify the code that copies an ICMP6 packet to two data
paths: ICMP6 reply path, and socket path.
2006-09-01 02:44:46 +00:00
dyoung
cb88bdd489 Re-use macro IN6_IS_SCOPE_EMBEDDABLE(). 2006-09-01 02:25:29 +00:00
dyoung
f583dae6cb Restore historical kernel behavior: let an application bind(2) an
IPv6 interface address (e.g., sin6_addr fe80::200:24ff:fec3:4bac
sin6_scope_id 1), set a multicast interface with
setsockopt(,IPPROTO_IPV6,IPV6_MULTICAST_IF,), and sendto(2) multicast
destinations with "wildcard" scope ID, 0, without error EHOSTUNREACH.

Prior to this patch, sendto(2) would exit with EHOSTUNREACH, even
though the scope ID was unambiguously specified both by bind(2)
and setsockopt(2).  This was a bug because it broke old applications.

Thanks JINMEI Tatuya for the patch!
2006-09-01 01:59:56 +00:00
dyoung
9cc1c09a17 Rename gre_softc member sc_sp to sc_soparm to fix NetBSD/alpha
compiles, where some other system header #defines sc_sp.

In gre_ioctl, GREDSOCK case, do not try to delete sc_fp if it is
NULL.

Move GREDSOCK and GRESSOCK definitions to where the other GRE ioctls
are defined.

Remove #ifdef GRESSOCK, it's unnecessary now that the feature is
complete.
2006-09-01 01:34:05 +00:00
matt
0b50c4ad5c Make this compile again (hi xtos!). Switch to C99 structure initializations. 2006-08-31 23:21:54 +00:00
bjh21
1323fd42da This file isn't used any more. 2006-08-31 23:16:28 +00:00
freza
fd156a0bc9 * move the "cheating" conditional into unmapiodev() implementation
itself (instead of memio_unmap()), as it differs between OEA and
  ibm4xx.

OK by matt@
2006-08-31 23:14:38 +00:00
freza
8f274ce5a8 * implement unmapiodev(), make mapiodev() aware of ppc4xx_tlb_mapiodev()
* we now don't rely on having console linear-mapped (that was terribly
  broken, really)
* also, this can be used as generic ibm4xx mapiodev()/unmapiodev()

OK by matt@
2006-08-31 22:53:40 +00:00
freza
ca97defaa7 * ppc4xx_tlb_reserve(): allocate "reserved" TLB entries dynamically
* ppc4xx_tlb_mapiodev(): resolve pa to va from reserved TLB entries

OK by matt@

XXX we'll keep TLB_NRESERVED defined until we fix explora to use new API
2006-08-31 22:13:51 +00:00
reinoud
037fe176f0 Add shortcut for struct long_ad 's Unique ID hint that covers the lower 32
bits of the targeted files 64 bits Unique ID for recovery purposes.
2006-08-31 21:38:14 +00:00
reinoud
0b228f5987 Fix panic on reading/writing to a (raw) CD device and encountering an
error. It now correctly sets bp->b_resid to the full size of the buffer.
The failed SCSI read/write command allways contains the complete buffer.

When encountering a read (or write) error, the scsipi stack sets the
xs->resid to zero since the command has been accepted by the drive. The
scsi command set does not allow a partial read or write to be performed and
will signal a success or an error.
2006-08-31 21:32:42 +00:00
freza
60d1041835 * add PVR values for Xilinx 405 cores
* don't try to decode vendor-specific PVR, print raw value instead.
* panic() if we see cache wasn't probed, we'd crash later anyway.
* rework the way PVR gets translated to core name.
* while there, normalize printf format ("%s: ...", device_xname(self), ...).

OK by matt@
2006-08-31 21:32:27 +00:00
reinoud
e3b1c755c2 Remove two spurious empty lines in functions 2006-08-31 20:22:34 +00:00
reinoud
055cdf5d13 Fix fencing bug on CD disk size; the comment was wrong, its the *length* of
the device and since we count from zero its equal to the number of sectors
and thus one higher than the last sector.

This fixes the read/write problems on the (raw) device where the last
sector was not readable/writable.
2006-08-31 19:46:54 +00:00
dyoung
8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
tsutsui
a714ccc7c2 volatile void func(decl) -> void func(decl) __attribute__((__noreturn__)) 2006-08-31 19:23:44 +00:00
matt
3d36667ef9 Appease GCC4 by making /* NOTREACHED */ code return 0. 2006-08-31 18:31:59 +00:00
matt
77ef4246de Call unmapiodev when unmapping bus_space to possibly reclaim the VA. 2006-08-31 18:28:47 +00:00
matt
3d324b035e Add unmapiodev(vaddr_t, vsize_t) (to be used by bus_space_unmap) 2006-08-31 18:23:40 +00:00
matt
25159b5f42 Add unmapiodev. 2006-08-31 18:18:17 +00:00
matt
6a157410d2 Increase SYMTAB_SPACE 2006-08-31 18:12:42 +00:00
dogcow
5d399ea343 process_stoptrace is also used by PTRACE; fixes INSTALL_SMALL, GENERIC_TINY,
et al, where KTRACE isn't defined but PTRACE is.
2006-08-31 18:05:21 +00:00
matt
00185e0248 Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
2006-08-31 17:53:19 +00:00
dyoung
7ad81e35ff Remove an extraneous line that snuck into my previous commit. 2006-08-31 17:49:12 +00:00
dyoung
47be766fd3 Add a mode to gre(4) that sends GRE tunnel packets in UDP datagrams.
Fix MOBILE encapsulation.  Add many debugging printfs (mainly
concerning UDP mode).  Clean up the gre(4) code a bit.  Add the
capability to setup UDP tunnels to ifconfig.  Update documentation.

In UDP mode, gre(4) puts a GRE header onto transmitted packets,
and hands them to a UDP socket for transmission.  That is, the
encapsulation looks like this: IP+UDP+GRE+encapsulated packet.

There are two ways to set up a UDP tunnel.  One way is to tell the
source and destination IP+port to gre(4), and let gre(4) create
the socket.  The other way to create a UDP tunnel is for userland
to "delegate" a UDP socket to the kernel.
2006-08-31 17:46:16 +00:00
matt
d2fa9e5329 Make cpu_coredump dependent on COREDUMP 2006-08-31 16:49:21 +00:00
matt
34827b737d More PTRACE fallout. 2006-08-31 16:39:13 +00:00
he
3e73ce6bef Protect the include of "opt_ptrace.h" by _KERNEL_OPT. 2006-08-31 15:01:56 +00:00
tron
595808ad47 Don't build "linux_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 14:00:29 +00:00
tron
3a715a0a6f Don't build "freebsd_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 13:25:50 +00:00
matt
5322f324e6 Make this console now that vconsole is done and with GCC4. 2006-08-31 05:11:07 +00:00
xtraeme
6b60608a48 Execute k8_powernow_init() if it's a K8 CPU and is able to change FID/VID
(previously the test was always false).

POWERNOW_K8 now runs in 32-bit mode with amd64 CPUs.
2006-08-31 04:20:21 +00:00
oki
a7e68afd48 Regen (for PTRACE). 2006-08-31 00:23:11 +00:00
oki
a978ade516 Update for options PTRACE. 2006-08-31 00:21:09 +00:00
rumble
8b5466f087 Describe the GIO Product Identification Word and add a few macros to
extract other fields.
2006-08-31 00:01:10 +00:00
rumble
c693018067 Add the giopci device and associated ethernet/mii chipsets for the Phobos
and Set Engineering GIO fast ethernet boards.
2006-08-30 23:59:50 +00:00
rumble
ba52409a2e Provide a pseudo-pci bus for the following PCI ethernet boards, which live
behind custom PCI<->GIO bridges:
	- Set Engineering GIO Fast Ethernet (TI ThunderLAN)
	- Phobos G100 (DEC 21140?)
	- Phobos G130 (DEC 21143)
	- Phobos G160 (DEC 21143)

All boards present the chipsets' pci configuration registers at some
defined offset in their slots' address space as well as device registers.
We simply allow the MI pci subsystem to attach the devices.

This has been tested with a G130 board (DEC 21143) and works well on IP20
and IP24. The Set Engineering board attaches, works fine when receiving and
lightly transmitting, but chokes for unknown reasons on heavy transmits.
The tl(4) driver may need some fixing.
2006-08-30 23:58:13 +00:00
rumble
2d1cbf7222 Implement the gio_arb_config() interface for changing the machine-specific
gio bus arbiter parameters via imc(4) or pic(4).

Slots are identified by name: GIO_SLOT_GFX, GIO_SLOT_EXP1, GIO_SLOT_EXP2.

Provide some helper functions for establishing interrupts associated with
each slot and obtaining product descriptions.
2006-08-30 23:48:55 +00:00
rumble
a4d0bfd738 Add pic and imc-specific functions to alter the GIO bus arbiter
configuration. These are to be used exclusively by a higher interface in
gio/gio.c.

Also add functions to enable, disable and query the state of SysAd bus
parity detection since certain gio(4) cards need to be able to disable
it in order to work around their own buggy implementations.
2006-08-30 23:44:52 +00:00
rumble
aa71bc7886 Generalise pci/pci_machdep.c further and move all mace-specific code into
mace/pci_mace.c in preparation for pci devices on the gio(4) bus.
2006-08-30 23:35:10 +00:00
rumble
cc8a477ce5 Add quirks for the Phobos GIO Fast Ethernet boards. 2006-08-30 23:32:07 +00:00
rumble
e980865174 Phobos boards (my G130 at least) have a non-standard srom layout. Try to
identify it and pull out the enaddr.
2006-08-30 23:31:08 +00:00
rumble
75e28cc7ed Make this compile again when TLDEBUG is defined. 2006-08-30 23:29:01 +00:00
he
30ef9162ed Regen (for PTRACE). 2006-08-30 23:00:45 +00:00
he
77e02d283d Update for options PTRACE. 2006-08-30 23:00:06 +00:00
matt
4ba15ad876 Conditionalize cpu_coredump on COREDUMP 2006-08-30 22:24:55 +00:00
matt
2107a6af86 Don't include cpu_coredump unless the COREDUMP option is present. 2006-08-30 21:25:22 +00:00
plunky
999bb1e465 It seems that EHCI at least will complete a empty transfer with
status == NORMAL_COMPLETION.

Guard against that.
2006-08-30 19:42:37 +00:00
christos
738af19b41 fix initializers. 2006-08-30 19:25:46 +00:00
christos
47be5467d6 Fix initializers 2006-08-30 19:20:48 +00:00
christos
a2b752877c fix incomplete initializer. 2006-08-30 19:16:03 +00:00
christos
e07cc888fc remove empty code. 2006-08-30 19:15:05 +00:00
christos
2a76cd386d off by one element. 2006-08-30 19:12:56 +00:00
christos
6d155711f9 avoid empty if body. 2006-08-30 19:04:52 +00:00
christos
3fad7e8079 complete identifiers. 2006-08-30 19:04:26 +00:00
christos
2434b8bf99 Fix initializers. 2006-08-30 19:00:22 +00:00
christos
da6e78aa67 fix initializer 2006-08-30 18:55:09 +00:00
christos
cddf6d88fb static comes first 2006-08-30 18:54:19 +00:00
christos
67cdc0f9ea fix initializers 2006-08-30 18:53:04 +00:00
christos
5d91315335 complete initializer 2006-08-30 18:50:20 +00:00
tsutsui
79d3499096 Disable asm statement which defines bpendtsleep symbol as "handy breakpoint"
on all m68k ports since it may cause a multiple symble definition error
by code duplication of gcc4 optimizer. Also note about this in comment.
2006-08-30 17:28:32 +00:00
christos
e8c80b0ceb remove impossible comparisons. 2006-08-30 17:15:22 +00:00
he
7fae0d129f Allow this to build as an LKM by testing for _KERNEL_OPT before
including opt_ptrace.h.
2006-08-30 17:14:34 +00:00
christos
ff89ad5027 fix initializers 2006-08-30 17:13:45 +00:00
christos
966c4b104a Fix initializers. 2006-08-30 17:11:53 +00:00
christos
e6aa223b06 - fix initializers
- comment out dead code.
2006-08-30 17:07:33 +00:00
christos
ca0d162d55 add missing initializers 2006-08-30 17:05:30 +00:00
christos
514b3fccd7 fix initializer 2006-08-30 17:00:15 +00:00
christos
9d7a9c4079 fix initializers 2006-08-30 16:59:34 +00:00
christos
378a57007e fix initializers. 2006-08-30 16:58:38 +00:00
christos
3ed5fa0441 Fix initializers. 2006-08-30 16:57:59 +00:00
christos
ce149b700c fix initializers. 2006-08-30 16:55:06 +00:00
christos
bf74b6c774 add missing initializers 2006-08-30 16:51:24 +00:00
christos
048533a23b complete initializers. 2006-08-30 16:49:07 +00:00
christos
989f6e4d42 avoid empty if body. 2006-08-30 16:45:40 +00:00
christos
26f4467d26 fix initializers. 2006-08-30 16:43:56 +00:00
christos
a7239032fa Fix initializer 2006-08-30 16:42:04 +00:00
christos
a3b3beb093 fully initialize IF_CLONE_INITIALIZER 2006-08-30 16:41:08 +00:00
christos
dd762fc161 fix initializers and add const. 2006-08-30 16:40:03 +00:00
christos
e9198d13b8 fix initializer. 2006-08-30 16:38:23 +00:00
christos
46d616fab0 fix incomplete initializers. 2006-08-30 15:46:58 +00:00
christos
eb6054a9fe Fix initializers 2006-08-30 15:45:54 +00:00
christos
63753f66cf comment out impossible comparisons. 2006-08-30 15:40:41 +00:00
christos
ec1b24cce5 fix initializers 2006-08-30 15:40:00 +00:00
cube
dc566666d0 Work around an issue in gas when cross-compiling i386 from amd64.
XXX gas should be fixed to not be confused by such statements instead.
2006-08-30 15:35:56 +00:00
christos
989f66d120 wrong place for __inline 2006-08-30 15:34:58 +00:00
cube
c847884087 Let this compile under "no options COREDUMP". 2006-08-30 15:34:31 +00:00
christos
45c427c7fb fix initializers 2006-08-30 15:32:23 +00:00
christos
13714b86fb comment out impossible comparison. 2006-08-30 15:27:18 +00:00
christos
f5d9b98eb1 add missing initializer 2006-08-30 15:25:58 +00:00
christos
86fad06b76 declare the type of code. 2006-08-30 15:25:08 +00:00
christos
8cc5bb6be9 fix and comment initializers. 2006-08-30 15:22:45 +00:00
christos
c1d5ec6516 add missing initializers. 2006-08-30 15:14:11 +00:00
cube
67306d2035 Make this compile under "no options COREDUMP". 2006-08-30 14:41:06 +00:00
cube
c7efdaf65b Make SYSTRACE depend on PTRACE because it uses process_domem(). 2006-08-30 14:07:09 +00:00
he
a7d7842fcb Regenerate after dealing with options PTRACE. 2006-08-30 14:02:12 +00:00
cube
98719e5089 Let this compile under "no options COREDUMP". 2006-08-30 14:01:57 +00:00
he
4ca1029105 Update to deal with options PTRACE. 2006-08-30 14:01:25 +00:00
cube
12092a2b5c Regen (netbsd32_ptrace protection). 2006-08-30 13:58:51 +00:00
cube
1282264dd1 Protect netbsd32_ptrace with options PTRACE. 2006-08-30 13:57:47 +00:00
cube
f5dc39b8bf netbsd32_core.c is need only under options COREDUMP. 2006-08-30 13:57:11 +00:00
cube
ed78ad7eae Protect netbsd32_ptrace with options PTRACE. 2006-08-30 13:56:48 +00:00
cube
c09480be6c Let those compile under "no options COREDUMP". 2006-08-30 13:55:03 +00:00
cube
21222420ab Regen against correct syscalls.master version [hi gimpy!]. 2006-08-30 13:53:41 +00:00
cube
bd859bd3de Restore dependency on PTRACE for PROCFS.
Bump required config(1) version.
2006-08-30 13:49:27 +00:00
matt
984109dc99 Regen. 2006-08-30 11:35:21 +00:00
matt
0cf3f9db4e Add || defined(_KERNEL) to ptrace entry (like ktrace). 2006-08-30 11:34:26 +00:00
matt
3a7b10b907 Regen 2006-08-30 11:19:23 +00:00
matt
ad6aa2b08e Update to deal with options PTRACE 2006-08-30 11:14:39 +00:00
cherry
d98d4f0f0f remove redundant #defines 2006-08-30 11:14:23 +00:00
cherry
50ca7431be #include cleanups. 2006-08-30 11:12:04 +00:00
matt
583998d384 sys_process.c is also used by KTRACE. 2006-08-30 11:08:15 +00:00
matt
5efede10eb Regen (for PTRACE). 2006-08-30 11:05:14 +00:00
matt
181c494b95 Update for options PTRACE 2006-08-30 11:04:37 +00:00
matt
1f5dae8a54 #include "opt_ptrace.h" 2006-08-30 10:17:49 +00:00
jnemeth
944592a2ee revert previous as it breaks the build due to invalid syntax 2006-08-30 07:46:37 +00:00
christos
5bfce2e9a7 fix incomplete initializers 2006-08-30 02:15:33 +00:00
christos
ca858a7e11 static goes first 2006-08-30 02:13:20 +00:00
christos
ee0887af27 fix missing initializer 2006-08-30 02:11:42 +00:00
christos
afca61baba add missing initializers 2006-08-30 02:09:40 +00:00
christos
366af49b8e - fix missing initializations
- remove stray semicolon, that screwed up error checking
2006-08-30 02:08:20 +00:00
christos
df04aa6566 fix incomplete initializer 2006-08-30 02:02:21 +00:00
christos
2e252670b5 static goes first 2006-08-30 02:00:26 +00:00
christos
1158495345 fix order of decl 2006-08-30 01:59:06 +00:00
christos
35190634ec fix incomplete initializers 2006-08-30 01:58:00 +00:00
christos
676e77765a fix missing initializers 2006-08-30 01:28:53 +00:00
christos
37fbc95466 add missing initializer 2006-08-30 01:27:56 +00:00
christos
57b45699b2 fix incomplete initializer. 2006-08-30 01:26:47 +00:00
christos
0340a0cbcd fix incomplete initializer 2006-08-30 01:24:40 +00:00
christos
d65306455b comment out comparison always false 2006-08-30 01:23:35 +00:00
christos
ef6c9d757e fix incomplete initializer 2006-08-30 01:17:09 +00:00
christos
d76c7ff74a - fix missing initializer
- fix < 0 comparison with unsigned
2006-08-30 01:14:24 +00:00
christos
b80f5be1eb fix incomplete initializers 2006-08-30 01:10:46 +00:00
christos
f202705964 fix incomplete initializer 2006-08-30 01:09:39 +00:00
christos
976bcd112b add missing initializers 2006-08-30 01:08:43 +00:00
christos
f432f36f7f missing comma 2006-08-30 00:54:28 +00:00
christos
a87d6a05e0 fix incomplete initializers 2006-08-30 00:53:47 +00:00
christos
976d4b3f1c - fix incomplete initializer
- remove unsigned comparison < 0
2006-08-30 00:51:48 +00:00
christos
16f3fda8be fix incomplete initializers 2006-08-30 00:42:41 +00:00
christos
2ddf5cde1a fix incomplete initializers. 2006-08-30 00:41:46 +00:00
christos
15a77ddab7 fix incomplete initializer 2006-08-30 00:40:56 +00:00
christos
60b52d2f57 fix incomplete initializers in the LOCKDEBUG case 2006-08-30 00:39:58 +00:00
christos
f9f4c63527 fix incomplete initializer. 2006-08-30 00:00:15 +00:00
christos
5970d219ae remove stray ;'s that were unintentionally placed 2006-08-29 23:58:42 +00:00
christos
33cacef35e correct comparison that was always false. 2006-08-29 23:57:49 +00:00
christos
11d381a90a fix incomplete initializer 2006-08-29 23:56:02 +00:00
christos
cb09e23ee7 fix incomplete initializer 2006-08-29 23:45:23 +00:00
christos
f62871cb73 Fix incomplete initializer 2006-08-29 23:43:12 +00:00
christos
c65db33038 fix incomplete initializer. 2006-08-29 23:42:18 +00:00
christos
f649f50b35 fix incomplete initializer 2006-08-29 23:41:12 +00:00
christos
5ea9cdc590 fix incomplete initializers 2006-08-29 23:40:14 +00:00
matt
de5e509235 Regen (for optional ptrace) 2006-08-29 23:38:54 +00:00
matt
bae263f051 Regen. 2006-08-29 23:37:30 +00:00
matt
084f43623d Fix typo (ktrace -> ptrace) 2006-08-29 23:36:56 +00:00
matt
9e0ec4816e Make PTRACE and COREDUMP optional. Make the default (status quo) by putting
them in conf/std.
2006-08-29 23:34:48 +00:00
bjh21
8009229e9b The Fujitsu drive in my A540 supports sync transfers but apparently
doesn't advertise this in INQUIRY.  It makes it nice and obvious with
SDTR, though, so add it to the list.
2006-08-29 20:40:23 +00:00
he
2f6928fe68 Use the common <dev/apm/apmio.h> file instead of replicating struct and
ioctl definitions in a local copy.  What remains is local additions.
Makes usr.bin/kdump build for macppc again.
2006-08-29 18:17:33 +00:00
macallan
eda93ea91b those should have been committed along with radeonfb.c
doh
2006-08-29 17:09:33 +00:00
gdamore
f7fbb8d998 Trivial white-space and comment fixup. 2006-08-29 02:35:44 +00:00
macallan
10bb91db88 - use RADEON_DEFAULT_MODE when no EDID data available
- let only root mmap PCI resources through wscons
- allow IO access on macppc
2006-08-29 00:50:29 +00:00
christos
f7747a2a56 fix incomplete struct decl. 2006-08-28 21:37:37 +00:00
christos
a0917ad69e fix incomplete initializers 2006-08-28 21:33:16 +00:00
bouyer
aeeb0b33ca Some bus_dma(9) fixes for Xen:
- Attempt to gracefully recover from a failed decrease_reservation or
  increase_reservation, by avoiding physical memory loss.
- always store a machine address in ds_addr; this avoids some mistakes
  where machine address would in some case be freed at physical address, or
  mapped as physical address.
2006-08-28 19:58:56 +00:00
he
4c2420029f Add duplicate include protection to <dev/sun/kbio.h>.
Make the x68k port use this include file, so that what remains
is only the port-specific additions.
2006-08-28 17:15:24 +00:00
he
03d728a806 Collapse two more separate instances of MD vuid_event.h header
files to instead use the common <dev/sun/vuid_event.h> header.
2006-08-28 16:52:09 +00:00
he
4493c76313 Use the common <dev/sun/vuid_event.h> header file instead of maintaining
separate copies in port-specific directories.  Add duplicate include
protection.  Makes the alpha and atari ports build usr.bin/kdump/ again.
2006-08-28 16:41:04 +00:00
christos
eef4aaba6b Fix getdirentries() issue from FreeBSD PR - 78953 Quoting from that:
If you perform this request on a directory with exactly 50 files
(plus '.' and '..' which brings the total to 52 objects), the first
reply for the SMB server completely satisfies the query (server
side is Windows 2000 Professional).

The smbfs client then performs a TRANS2_FIND_NEXT2 using the last
file name as the resume key.  The response returns a SearchCount
of zero (ctx->f_ecnt == 0) and an EndOfSearch code of zero.

Any attempt to get more entries with calls to TRANS2_FIND_NEXT2
result in Badfid (bad file descriptor).  I suspect the return of
SearchCount of zero means that end-of-search has been reached and
the Sid is now closed.

The solution is to set "SMB_RDD_EOF | SMB_RDD_NOCLOSE" after getting
back a zero SearchCount,  I've tested this in the field on a quite
a few systems, aggressively accessing Windows shares over smbfs
and it appears flawless.

I was initially concerned about the possibility of resource exhaustion
on the Windows server. I was afraid by not officially closing the
search, it would leave a resource hung-up and over time, exhaust
some sort of "open search table" limit.  I've since convinced myself
this is NOT the case.

Windows needs to be able to handle clients that come and go over
time.  If the search is not closed, Windows will close it if it
finds it needs more resources.  I've testing this on directory
searches descending into 10's of thousands of folders, with 100's
of thousands of files.
2006-08-28 15:56:56 +00:00
bjh21
44ef93a9be Be more careful with registers in LDR[T] so that GAS doesn't warn us about
constructs that aren't allowed in ARMv3.
2006-08-28 15:15:50 +00:00
tsutsui
e67dfa30bf Remove unneeded #include <sys/device.h> which also requires <prop/proplib.h>. 2006-08-28 14:31:45 +00:00
bjh21
d5930df82e unifdef -U __APCS_26__: we've been using APCS-32 for years. 2006-08-28 14:31:18 +00:00
bjh21
3612709d56 unifdef __APCS26__: we've been using APCS-32 for years. 2006-08-28 14:26:34 +00:00
tsutsui
73e8e44a34 options SYSTRACE is now disabled in GENERIC,
so remove "no options SYSTRACE".
2006-08-28 13:53:04 +00:00
yamt
ea6892fdba icmp_input: don't assume relations between PRC_ and ICMP_ values. 2006-08-28 13:46:35 +00:00
yamt
e527ebac6f - remove unused bdbtofsb.
- move the following macros from MD headers to sys/param.h.
	ctod
	dtoc
	ctob
	btoc
	dbtob
	btodb
2006-08-28 13:43:35 +00:00
tsutsui
7ecca3ca2e Revert previous, because header search path for src/common/include is
now handled in src/sys/lib/libkern/Makefile.
2006-08-28 13:42:39 +00:00
yamt
b153af038b don't include sys/lock.h as it is no longer necessary. 2006-08-28 13:41:04 +00:00
yamt
93fbc06b96 make callback.h include necessary headers by itself
as suggested by Jason Thorpe and Martin Husemann on source-changes@.
2006-08-28 13:40:44 +00:00
tsutsui
25b6b97dcd Add src/common/include to include header search path since
<sys/device.h> includes <prop/proplib.h>.
2006-08-28 13:38:43 +00:00
tsutsui
a3bdccd23a Add src/common/include to include header search path so that
standalone programs can be built without installed ${DESTDIR} tree.
Okayed by christos, and should close PR 33431.
2006-08-28 13:34:18 +00:00
xtraeme
6c90d7030b Remove unused variable 'periph' to make this build. 2006-08-28 11:45:38 +00:00
plunky
f2c2a49a27 Make suspend/resume work properly for bt3c device.
Since state is kept inside the device that will be lost, we need to
flush all information relating to this controller from the protocol
stack.
2006-08-28 10:34:33 +00:00
plunky
8e2dcba5fc add newline to (debug) printf 2006-08-28 08:19:53 +00:00
gdamore
5cdb703d36 First pass at cleanup AR5312 WiSoC support to enable better & cleaner
sharing of code with the AR5315, which has many similarities, but many
differences from the AR5312.

No functional change at this time, other than the cpu_model string
(and also sysctl.hw.model node) is changed to reflect the WiSoC cpu
name rather than the identification string in ROM (which tends to not
be very informative.)
2006-08-28 07:21:15 +00:00
christos
df7450f605 Fix uninitialized variables. 2006-08-28 02:58:16 +00:00
christos
4db35667c5 remove excess initializer 2006-08-28 02:54:11 +00:00
christos
82b002de3d Remove excess initializer. 2006-08-28 02:53:03 +00:00
christos
588c80f975 remove extra members 2006-08-28 02:51:12 +00:00
christos
56ec46b4b3 complete CFDRIVER initializer. 2006-08-28 01:46:10 +00:00
christos
4e4ed26fac add missing initializer 2006-08-28 00:38:47 +00:00
christos
e28a71d80a add missing initializers 2006-08-28 00:35:22 +00:00
christos
428665231e correct bogus loop test; used to be always true. 2006-08-28 00:28:51 +00:00
christos
6ab0a579ce Add missing initializer. 2006-08-28 00:22:15 +00:00
christos
67e07ec558 Add missing initializers 2006-08-28 00:20:47 +00:00
christos
87fd29be14 static goes first. 2006-08-28 00:18:30 +00:00
christos
9953ed71c7 Add missing initializer 2006-08-28 00:16:54 +00:00
christos
f7db588ec4 add missing initializer. 2006-08-28 00:14:50 +00:00
christos
39f8ec7651 add missing initializers. 2006-08-28 00:13:44 +00:00
christos
d3b80ef998 remove impossible conditional 2006-08-28 00:10:20 +00:00
christos
6d637b500d add missing initializer 2006-08-28 00:09:28 +00:00
christos
6e913df162 remove unreachable code. 2006-08-28 00:08:38 +00:00
christos
a19f83e53b add missing initializer. 2006-08-28 00:07:35 +00:00
christos
63f68a892b remove unreachable code. 2006-08-28 00:06:14 +00:00
christos
78cdbd8e9c add missing initializer. 2006-08-28 00:04:21 +00:00
christos
7546f55be3 add missing initializer 2006-08-28 00:01:36 +00:00
christos
2735c71895 static comes first. 2006-08-28 00:00:23 +00:00
christos
a98a1f3b7b Add missing initializers. 2006-08-27 23:59:40 +00:00
christos
8f1ca4d223 gc unused member. 2006-08-27 23:55:16 +00:00
christos
ff62f5c658 add missing initializers. 2006-08-27 23:54:50 +00:00
christos
d137310d6b add missing initializer 2006-08-27 23:53:10 +00:00
christos
ca960afcce Oops, this is not ready yet. 2006-08-27 23:51:31 +00:00
christos
72c8baf57c Add missing initializer 2006-08-27 23:50:53 +00:00
christos
2be4cd5c08 Add initializer for MOWNER 2006-08-27 23:50:00 +00:00
christos
bf0c1c557b Fix initializers 2006-08-27 23:49:33 +00:00
christos
cdda2124d1 Fix incomplete declaration. 2006-08-27 23:33:35 +00:00
christos
4a778ebf9a - static needs to be first
- complete the cdevsw
2006-08-27 23:31:15 +00:00
christos
c689e59cb9 restructure ifdefs 2006-08-27 23:27:44 +00:00
christos
1624b1a623 typo 2006-08-27 23:23:48 +00:00
christos
d22d88fc75 ifdef out unreachable code. 2006-08-27 23:23:02 +00:00
christos
d8b4d47380 define D_OTHER as 0. 2006-08-27 23:21:58 +00:00
christos
35f0d726a8 complete initialization 2006-08-27 23:21:35 +00:00
christos
925d11f2f5 complete declarations 2006-08-27 23:19:03 +00:00
christos
ec7d898cf1 Complete the declaration. 2006-08-27 23:13:47 +00:00