Commit Graph

199588 Commits

Author SHA1 Message Date
rmind 223dbf13d7 sysctl_kern_proc_args: fix the deadlock (hi joerg!). 2011-04-05 09:02:23 +00:00
wiz 6297cc0d38 mdocml-1.11.1 out. 2011-04-05 08:51:05 +00:00
wiz 8f93b1aa3c Remove superfluous Pp. 2011-04-05 08:26:24 +00:00
wiz c50d6a3380 Sort SEE ALSO, fix Dt argument. 2011-04-05 08:25:25 +00:00
wiz b351288a9a New sentence, new line. 2011-04-05 08:24:43 +00:00
jruoho 1cd1da49e9 Try to maintain the structure of libc and move 't_strtox' to 't_strtod'. 2011-04-05 08:24:28 +00:00
agc 13f6fd89a7 get rid of most (but not all) lint on amd64 2011-04-05 06:24:42 +00:00
jruoho e14810828f Add simple test cases for ttyname(3), strtod(3), and getgrent(3). 2011-04-05 06:15:30 +00:00
enami d89653b315 Unconfigure on shutdown so that component deivces are closed. 2011-04-05 02:52:27 +00:00
yamt ba01a8d426 fix assertion failure in timer_intr. CLOCK_REALTIME timers can be on
timer_queue.
2011-04-05 00:27:35 +00:00
macallan 4ac5047fdd remove some old debug code 2011-04-04 22:50:36 +00:00
dyoung 2e65254f9b Deregister PMF handlers during detachment. Complete the host controller
shutdown.
2011-04-04 22:48:15 +00:00
dyoung 444d8f7fa7 I've been using this patch (which comes from Matt Thomas, maybe?) for
about a year.  It make MKCROSSGDB=yes work for macppc, at least.
2011-04-04 22:33:32 +00:00
macallan 95c4a4389f crmfb needs edid and friends now 2011-04-04 22:15:13 +00:00
dyoung 3c888757d8 Make rdcide_chip_map()'s pci_attach_args argument const. 2011-04-04 22:13:58 +00:00
ahoka 4271847c2e add "struct ufid;" so we can include it without ufs/inode.h 2011-04-04 21:46:15 +00:00
dyoung ef8087871b Don't need x86_stub.c here, we'll pick it up from files.x86. 2011-04-04 21:35:31 +00:00
dyoung fd8e7c1dbb As pointed out by Manuel Bouyer and Taylor R Campbell, I forgot to
commit the change to files.x86 that adds x86_stub.c, so do that.
2011-04-04 21:33:49 +00:00
dyoung d3e53912d2 Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
2011-04-04 20:37:49 +00:00
agc 0b168fdfde remove function parameter names from function prototypes
make the lzf_compress() prototype match the function definition - the
prototype always added the state table argument, although it should be
conditionally compiled in.  use the same cpp magic as in the source
file to prototype the function in the header file.
2011-04-04 20:37:48 +00:00
dyoung a184f1f486 Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
2011-04-04 20:37:44 +00:00
dyoung 73ac15efaf Make usb_dma a dependency of ahci(4), since it needs usb_allocmem(9). 2011-04-04 20:01:14 +00:00
jruoho 4b77c904f2 Mark this again as expected failure. 2011-04-04 19:59:08 +00:00
dyoung c2decf31b1 Use callout(9) instead of the USB compatibility junk that went away
months ago.
2011-04-04 19:58:56 +00:00
dyoung a12a2adf18 The PCI pass-through driver is not too useful without PCI drivers, but
add it to this kernel configuration so that at it gets built some of the
time.
2011-04-04 19:57:31 +00:00
dyoung 89b7c74ba3 Pull in the Atheros HAL options so that OPENBLOCKS266_OPT will build. 2011-04-04 19:55:16 +00:00
plunky 354f9cc3c3 correct inverted logic (if sdp_put_data fails, sdp_put_attr should fail) 2011-04-04 19:51:33 +00:00
dyoung 062b6658ec Fix target 'tags'. 2011-04-04 19:44:16 +00:00
dyoung 911a33d453 Add a couple of make(1) include files that provide lists of source
files needed for tags computation in evbppc, evbarm, cats, and other
architectures.
2011-04-04 19:43:34 +00:00
dyoung 8d4a897025 Fix target 'tags'. 2011-04-04 19:41:24 +00:00
hannken fff1c84c3d Msdosfs on-disk meta data is not sufficient to create or validate file handles.
Maintain a tree of file handles, create nodes from msdosfs_vptofh() and keep
them until either the file gets unlinked or the file system gets unmounted.

Fixes the msdosfs part of PR #43745 (fhopen of an unlinked file causes problems
on multiple file systems)
2011-04-04 19:16:58 +00:00
jruoho 02a4a265f1 Use the same pattern for couple of simple setuid(2) tests. 2011-04-04 19:08:42 +00:00
ahoka 76a36edbfd fix one more flash_addr_t fallout 2011-04-04 18:30:07 +00:00
plunky 0d74ee67d3 remove compile time guard from previous commit, it is not needed
(C99 guarantees [u]intmax types are at least 64-bits)
2011-04-04 18:29:47 +00:00
ahoka 7a9de7239e remove FLASH_GET_INFO compat as it is no longer using size_t 2011-04-04 18:24:56 +00:00
ahoka 87f795905b dont use size_t, but a fixed 64 bit unsigned type flash_size_t in ioctls 2011-04-04 18:23:39 +00:00
jruoho 00f7056aa1 Add a test case for the POSIX (minimum) limits. Written by Stathis Kamperis. 2011-04-04 18:02:01 +00:00
bouyer cd93091b0b Regen: Add RDC PCI-ISA bridge 2011-04-04 18:01:20 +00:00
phx 58b980c294 Add more known I2C devices:
dlink: strtc
qnap: s390rtc
2011-04-04 18:01:08 +00:00
bouyer 646e5cf82e Add RDC PCI-ISA bridge 2011-04-04 17:59:59 +00:00
phx 44fd19e5d2 s390rtc(4), an RTC driver for the Seiko Instruments S-35390A chip. 2011-04-04 17:58:40 +00:00
ahoka 3f1a2799ca flash_addr_t -> flash_off_t 2011-04-04 17:46:22 +00:00
bouyer 4c12bcade9 Note rdcpcib(4) 2011-04-04 17:27:32 +00:00
bouyer 0dcb8f5af8 Add a man page for rdcpcib(4). While there move rdcide.4 to i386/ 2011-04-04 17:26:23 +00:00
bouyer 68c8192be2 Add a driver for RDC's vortex86/PMX-1000 SoC PCI/ISA bridge, with support
for the integrated watchdog timer.
2011-04-04 17:09:39 +00:00
phx 0eb0c32106 Make sure a frame is at least 60 bytes, as Realtek does not automatically
expand small frames.
Patch suggested by nisimura@.
2011-04-04 16:41:34 +00:00
jruoho c0d6d28330 Couple of simple tests for umask(2). 2011-04-04 16:32:41 +00:00
ahoka b354849f2e this file was missing from the flash_off_t commit 2011-04-04 16:26:09 +00:00
plunky a468cfe851 handle overflowed values correctly,
also put a compile time guard to warn if INTMAX won't fit in INT64
(all our ports currently have INTMAX = INT64)
2011-04-04 16:19:25 +00:00
plunky 370326ddcb reinstate #ifdef PUFFSDUMP around otherwise unused function
which requires symbols from -lpuffs, not linked
2011-04-04 15:42:42 +00:00