Commit Graph

53011 Commits

Author SHA1 Message Date
matt
7c88f4863a Fix LKM/MODULAR case. 2011-04-06 05:42:21 +00:00
matt
72dfff31fe Load pc into ta0 instead of ra and then saving to ta0.
misc comments fixes.
2011-04-06 05:39:51 +00:00
matt
1790477f41 Sort LWP fields 2011-04-06 05:38:19 +00:00
matt
0c8ae5bb18 Don't bother saving T8 (MIPS_CURLWP).
Avoid branches when determining delay slot.
2011-04-06 05:37:59 +00:00
matt
0d18afd259 Fix a bug with pmap_remove_all and pmap_deactivate. Should prevent any
pmap_activate from allocating an ASID while doing pmap_remove_all XXX.
2011-04-06 05:35:37 +00:00
matt
4bb672436e Remove dead code.
KNF cleanup.
2011-04-06 05:33:07 +00:00
matt
86cc1c53e6 Change a KASSERT to KASSERTMSG 2011-04-06 05:23:59 +00:00
matt
bd363a3179 Rename kernel_tlb_miss to kern_tlb_miss (everything else kern_xxx)
Don't load k1 in delay slot to MIPS_CURLWP before branching to
kern_gen_exception since that doesn't use the lwp pointer in k1
(since it can the lwp in MIPS_CURLWP instead).  Use nop instead.
Rework tlb_invalid_exception a bit so the result of the tlbp is
done before seeing if the tlb slot was even or odd.  Makes the
routine slightly smaller.
2011-04-06 05:13:36 +00:00
matt
dc2f9d8cf0 Indent delay slots by a space. 2011-04-06 05:07:40 +00:00
dyoung
9aa93a16e8 Fix target 'tags'. 2011-04-06 01:49:23 +00:00
dyoung
4867aaab9f Fix fallout from pci_attach_args constification. 2011-04-06 01:48:43 +00:00
dyoung
b1084717a7 Fix pci_attach_args constification fallout. 2011-04-06 01:44:45 +00:00
dyoung
8080811d3e Fix target 'tags'. 2011-04-06 01:43:13 +00:00
dyoung
67ce16669f Fix fallout of pci_attach_args constification. This should be the last
one for algor.
2011-04-06 01:37:59 +00:00
dyoung
3a4f5f68fa Fix fallout from pci_attach_args constification. 2011-04-06 01:32:06 +00:00
dyoung
4934592d44 Fix target 'tags'. 2011-04-06 01:31:20 +00:00
dyoung
10db401f9d Fix fallout from pci_attach_args constification. 2011-04-06 01:25:18 +00:00
dyoung
92b62812ca Fix target 'tags'. 2011-04-06 01:24:43 +00:00
pgoyette
6f2c337e45 If an ioapic doesn't really exist, don't add it to internal tables.
This is what other xxxBSDs seem to do in similar circumstances.

Addresses my PR kern/43568

OK jruoho@ in private Email
2011-04-05 13:43:33 +00:00
pgoyette
4dbe4d01fa Display a warning message if an attempt is made to process interrupt
routing for a bus that has previously been processed.

From PR kern/43570 - doesn't fix the problem but at least lets you
know it exists.
2011-04-05 13:17:04 +00:00
macallan
4ac5047fdd remove some old debug code 2011-04-04 22:50:36 +00:00
macallan
95c4a4389f crmfb needs edid and friends now 2011-04-04 22:15:13 +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
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
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
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
phx
58b980c294 Add more known I2C devices:
dlink: strtc
qnap: s390rtc
2011-04-04 18:01:08 +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
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
martin
02360883ef Add gem at sbus (works since quite some time). 2011-04-04 10:25:08 +00:00
jym
8bbd42f10a Now that pkgsrc-2011Q1 has arrived, and before -6 chimes in, change
ifxname for xvif(4) from xvif%d.%d to xvif%d-%d. This is needed
to avoid sysctl(9) EINVAL errors when creating interface nodes.

See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html
2011-04-03 23:21:37 +00:00
dyoung
9c021d330c Fix 'tags' target. 2011-04-03 23:07:19 +00:00
dyoung
7b673ebd9e Clean up excessive #ifdef'age of NMI trap handling for amd64/i386/xen.
Handle NMI in all Xen kernels.
2011-04-03 22:29:25 +00:00
jdc
2025001e38 Return early if we are called from indirect attach (i.e., not the normal
case).
2011-04-03 06:25:11 +00:00
jdc
e549a2a161 Remove ENVSYS_FMONNOTSUPP, so that we can monitor this sensor. 2011-04-03 06:22:02 +00:00
mhitch
a8b3ad35b4 Fix pmax timecounters for mips3-class machines. Apparently no one else
has run a 5000/150 with 5.0 or later - I booted 5.0 a couple of time, but
clamd caused a hard hang.  Now that I've given up trying to run clamd on
my 5000/150, I noticed that time ran too fast while using the
mips3_cp0_counter source.  The cpu_mhz computed in mc_cpuspeed is the
CP0 clock speed, not the doubled CPU clock.  Also add the mips3_cp0_counter
timecounters for the 5000/50 (maxine) and 5000/260 (3maxplus).
2011-04-03 03:19:52 +00:00
martin
292d7c42ed Do not increment a bool var - from Henning Petersen, PR port-vax/44816. 2011-04-02 10:21:58 +00:00
jruoho
f20d392006 Enable acpicpu(4) by default. 2011-04-01 12:11:16 +00:00
skrll
45f37e968c Enable TLS for alpha - a 2nd class^Wtier system in pookaBSD^WNetBSD
alpha_reloc.c diff from joerg on port-alpha.
2011-03-31 15:30:31 +00:00
nisimura
fa8f20f0f2 Build and use "i2c-child-devices" property to choose the correct RTC
chip among various models.
2011-03-31 02:32:35 +00:00
macallan
9b94525a54 add DDC2 support. Not too useful yet. 2011-03-31 00:01:08 +00:00
jym
aef6dbf4fe Add the HYPERVISOR_sysctl() hypercall.
Although the hypercall arguments (like struct sysctl_readconsole) are not
compatible between different XEN_SYSCTL_INTERFACE_VERSIONs (one of the
reasons why the sysctl calls should only be used by xentools directly),
it's still practical to have when one wants to query Xen's dmesg from
ddb(4) in case of a panic.

Note: additional code is needed for readconsole() functionality, but adding
the hypercall should not cause any harm.
2011-03-30 22:57:24 +00:00