Commit Graph

199768 Commits

Author SHA1 Message Date
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
dyoung
cf724f606c Regen. 2011-04-04 15:13:08 +00:00
bouyer
7f9bf2043a Note rdcide(4). Also note vte(4), better late than never :) 2011-04-04 14:47:49 +00:00
martin
b78cd4dd7c Do only set a (lower than default) timeout value if we are on powerpc and
expect to run into a real deadrun ofter.
The (too short) timeout otherwise makes slower archs fail.
2011-04-04 14:47:22 +00:00
bouyer
88db889213 Add rdcide(4), a driver for the IDE controller found in RDC's
vortex86/PMX-1000 system-on-chip.
2011-04-04 14:33:51 +00:00
ahoka
6adb739d5e Fix badblock checking
Replace flash_addr_t with flash_off_t and use it to address flash everywhere
2011-04-04 14:25:09 +00:00
blymn
3d869de066 Properly define the sets for define_key 2011-04-04 11:32:25 +00:00
blymn
e7592f22c9 Add define key for the man pages for curses 2011-04-04 10:36:28 +00:00
blymn
eff7afe2e8 Add man page link for define_key 2011-04-04 10:32:04 +00:00
jruoho
724a884379 Use _exit(2). 2011-04-04 10:30:29 +00:00
martin
02360883ef Add gem at sbus (works since quite some time). 2011-04-04 10:25:08 +00:00
he
18ea54b901 Move the recently added tests for libexec/ld.elf_so to shl.mi, so that
the sun2 port builds again.
2011-04-04 09:58:28 +00:00
jruoho
bed8d3f065 Few simple tests for nice(3). 2011-04-04 09:52:17 +00:00
mbalmer
3d6299dc28 Remove the advertisement clause from files copyrighted by Piermont Information
Systems, with the consent of the copyright owner, Perry E. Metzger.
2011-04-04 08:30:12 +00:00
jruoho
f4dcfe215c Add some basic tests also for getsid(2). 2011-04-04 08:19:08 +00:00
jruoho
ed26b97d53 Link the 't_timer' -test with pthread(3). Should fix the test failures. 2011-04-04 08:05:37 +00:00
jruoho
cbe6dc2e1c Use .Fn for functions. 2011-04-04 08:00:53 +00:00
wiz
0a6486633f Sort sections. 2011-04-04 07:17:08 +00:00
jruoho
1f0f2f9e9c Require an unprivileged run with atf_tc_set_md_var(). Pointed out by njoly@. 2011-04-04 07:16:29 +00:00
jruoho
275df5bf05 Two basic tests for getpid(2). 2011-04-04 06:48:04 +00:00
mbalmer
c78d71afc8 Add the ssh-askpass manual page to xfree builds, since x11/bin/ssh-askpass
installs it.
2011-04-04 06:05:52 +00:00