chs
39b340a6f4
add the early-clobber modifier on the destination reg of ldstub.
...
in some implementations (eg. sun4c), the hardware modifies the destination
reg before checking for write permission on the memory location. without
this change, gcc was using the same register for the address and the
destination, so if the store part of the instruction faulted, the address
was already gone when the instruction was retried after resolving the fault.
part of PR 25633, PR 25896.
2005-02-03 16:17:21 +00:00
chs
3cee1cf44e
sun4c hardware reports faults by the atomic load/store instructions as
...
read faults even if the problem was that the memory was read-only.
detect this case and relabel the fault as both read and write.
details cribbed from linux and openbsd.
part of PR 25633, PR 25896.
2005-02-03 16:15:06 +00:00
briggs
ecb75428c0
If we have not gotten the CPU speed yet, get it from OF here and print it.
...
This gives us the CPU speed for those CPUs that we can't probe in the ppc
common code.
2005-02-03 15:14:39 +00:00
briggs
d6e37f352e
Keep track of the CPU's current speed (in kHz) in the cpu info structure,
...
if we can get it. May want to expand this in the future to include min
and max speeds for systems where we can adjust the speed.
2005-02-03 14:47:09 +00:00
perry
51ad03a950
ANSIfy function prototypes. (Still have about 3/5ths of the C files in
...
netinet to go...)
2005-02-03 03:49:01 +00:00
christos
e042c0475e
Add scsi-generic stuff.
2005-02-03 00:09:30 +00:00
christos
d3b9209df0
Add linux scsi-generic to work for simple cases. Allows gendalia's change
...
to limp along. From soren with fixes from me.
2005-02-03 00:09:09 +00:00
perry
3494482345
de-__P -- will ANSIfy .c files later.
2005-02-02 21:41:55 +00:00
perry
695648ddc8
de-__P, do some ANSIfication.
2005-02-02 21:41:01 +00:00
drochner
e1e8770b32
Give DAD a chance to succeed even if the network is "slightly broken"
...
(in my case it as a switch set to "monitor" mode):
If we see an NS request for the address we are just probing for, for
three times the number of DAD packets we are supposed to send (the
"ip6.dad_count" sysctl variable), assume that these are our own packets
and let DAD succeed.
The code for this was mostly there, commented out. Just needed some fixes.
The "three times" is heuristic of course.
Being here, reset the "dad_ns_tcount" variable on a successful send;
otherwise we get strange interdependencies with user-settable variables
(ever tried to set ip6.dad_count to something >15?).
2005-02-02 20:56:27 +00:00
christos
ba2396e33b
Regen
2005-02-02 13:26:28 +00:00
christos
34508c6918
PR/29196: Robert Elz: Add support for Broadcom BCM4401-B0 ethernet
2005-02-02 13:26:06 +00:00
abs
f29f37c830
Regen to pick up corrected code for VIA VT6421
2005-02-02 11:20:40 +00:00
abs
0d94353073
Reminder not to trust cheap no-name packaging. VIA product 0x3249 is
...
a VT642*1* not VT642. Also add to list in viaide manpage and note
that drives need to be configured into RAID/JOBS sets via its BIOS.
http://www.via.com.tw/en/products/peripherals/serial-ata_raid/vt6421/
2005-02-02 11:19:49 +00:00
gson
971beb8edb
Generate an interrupt only after processing all the samples in a block
...
rather than at the time of the last sample, to eliminate a click at the
end of each block when recording. Fixes kern/18066.
2005-02-02 10:34:12 +00:00
pk
b7ee084cd1
sun4/sun4c sw interrupt entry: check interrupt register to determine to
...
see whether there is a pending software interrupt at the given level.
If not, it must be a device interrupt sharing that level.
2005-02-01 22:33:02 +00:00
matt
5388f1ff2c
Add gti2c/iic entries.
2005-02-01 20:59:55 +00:00
matt
411c843baa
Add entry for gti2c.c
2005-02-01 20:59:15 +00:00
matt
57b77a8963
Add a i2c driver for the onboard i2c/twsi controller on the GT642x0
2005-02-01 20:58:46 +00:00
matt
b3eef3bb0b
Allow the driver to allocate needs resources on attach and not free
...
depending on cf_flags (instead of on interface up / down).
2005-02-01 20:47:02 +00:00
matt
61b5c08265
Add I2C child hooks.
2005-02-01 20:37:09 +00:00
drochner
12ff682534
Whitespace police. The rest remains crap.
2005-02-01 20:33:58 +00:00
abs
d3852ae541
regen to pick up the 'VT642 SATA RAID Controller'.
2005-02-01 18:21:58 +00:00
abs
6660565bb0
Add 'VT642 SATA RAID Controller'. It looks like a viaide, it smells
...
like a viaide... but you can only address the drives once you have
put two or more of them into a RAID or JBOD.
2005-02-01 18:21:14 +00:00
he
edf90a4645
There is no need to define DS1687_NVRAM_START twice.
2005-02-01 16:16:22 +00:00
drochner
0c51c7b7aa
don't compile isp_target.c if ISP_TARGET_MODE is not required
2005-02-01 16:00:50 +00:00
drochner
dc86361844
remove the unused in6_ifindex2scopeid()
...
if at all, it works with site-local addresses whose fate is uncertain
to say the least
2005-02-01 15:29:23 +00:00
drochner
5d0cfbc9bd
sin6_scope_id maps to interface indices for link local addresses only!
...
(unlikely to be used with other scopes for now, but we should be
correct anyway)
2005-02-01 14:56:17 +00:00
he
1c9ef2aa0a
Fix "unused local variable" warning/error if compiling without
...
bridge support by making variable declaration conditional. Found
while compiling for shark.
2005-02-01 12:56:30 +00:00
he
2a8a7aabd7
Fix "unused local variable" warning/error if compiling without
...
bridge support by making variable declaration conditional. Found
while compiling for shark.
2005-02-01 12:13:51 +00:00
gson
8de9537c69
Update printf format in debug printf to account for sample_rate now
...
being an unsigned int.
2005-02-01 12:07:58 +00:00
briggs
fabe87766d
Strip old "pm1" code. All PPC PMUs are "pm2" style. Two benefits:
...
* Cleans code up a bit, and
* Reduces the call stack for PMU interrupts.
2005-02-01 03:24:29 +00:00
briggs
969369e173
Remove one level of interrupt redirection by switching on the ADB
...
hardware type and registering a Cuda or PMU interrupt handler
specifically instead of an intermediate interrupt handler.
2005-02-01 03:08:16 +00:00
briggs
c5d6d91dc9
Clear all interrupts set by cuda. From Michael Lorenz.
2005-02-01 02:54:17 +00:00
briggs
da18d7cc5e
Add a PMU initialization call at ADB init time. This probes the machine
...
type for PMU / battery information, then uses that when getting battery
information for APM. Allows older PowerBooks (pre-smart batteries) to
function with apm enabled in the kernel. Thanks to Linux code for battery
information for these old batteries. Something is still odd, though,
because a charging battery can show > 100% when it's near to full charge.
Enable more interrupts from PMU and handle PB3400 card eject buttons
properly, too.
Also use #defines for commands instead of raw hex codes.
2005-02-01 02:46:00 +00:00
briggs
2fd848709f
Calculate and use seconds of power remaining for smart battery types.
2005-02-01 02:23:26 +00:00
briggs
66ca62ad71
Add some command definitions gleaned from Linux.
...
Add a field to pmu_battery_info to contain est. seconds of power remaining.
2005-02-01 02:22:31 +00:00
briggs
805b9387ef
ADB_HW_PB is really ADB_HW_PMU.
2005-02-01 02:05:10 +00:00
briggs
dba5409d0b
adb_direct.h contents are in adbvar.h. No need for duplication.
2005-02-01 02:03:01 +00:00
reinoud
e0c6307561
Reversal of patch done to clean up type usage in sys/scspi; due to problems i decided to undo it
2005-02-01 00:31:02 +00:00
reinoud
f323bc537c
Backing out changes to clean up scsipi. I was pointed out there were
...
problems i hadn't seen. To prevent lossage i'd decided to back off all
changes and let them be reviewed on tech-kern.
2005-02-01 00:19:34 +00:00
kim
c9f56c04dc
Add RFC 3378 EtherIP support, ported from OpenBSD to NetBSD by
...
Hans Rosenfeld (rosenfeld at grumpf.hope-2000.org)
This change makes it possible to add gif interfaces to bridges, which
will then send and receive IP protocol 97 packets. Packets are Ethernet
frames with an EtherIP header prepended.
2005-01-31 23:49:36 +00:00
simonb
c9234f1972
Revert incorrect u_long->uint32_t conversion.
2005-01-31 23:46:33 +00:00
reinoud
4145e39ac7
Fix LP64 problems introduced by my u_long->uint32_t conversion.
2005-01-31 23:39:02 +00:00
reinoud
b220d67a3e
Part of the cleanup of sys/scsipi's use of types; rename all u_int* to
...
uint* and change the u_long's to uint32_t's where possible. Note that the
iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.
2005-01-31 23:06:41 +00:00
hannken
c13136f43f
No longer needed. Ffs snapshots are enabled by default.
2005-01-31 22:21:17 +00:00
reinoud
f93ea32254
As part of cleaning up sys/scsipi, replace all u_char by uint8_t and
...
replace all `short' with int16_t.
2005-01-31 21:13:16 +00:00
reinoud
6b6d77a575
Substitutereferences to u_char and u_short by the new uint8_t and uint16_t
...
types for unabigious storage references.
2005-01-31 20:25:54 +00:00
jkunz
1a54c65d22
Only a part of the PCI memory space is mapped via BAT registers in machdep.c.
...
Depending on where the firmware relocated the OpenPIC register window it may
be unmapped causing a kernel panic early in bootup when the OpenPIC is
initialized. So take care of mapping it if it is outside the already mapped
region. As mapiodev() requires UVM move this initialization to cpu_startup().
2005-01-31 18:48:41 +00:00
jkunz
5d47a0a676
Disable use of BTLB mappings as BTLB handling is broken.
2005-01-31 18:22:24 +00:00