Commit Graph

70625 Commits

Author SHA1 Message Date
matt be6867a460 Regen. 2004-04-17 01:56:31 +00:00
matt fd311156d1 Add devid of Marvell MV6436x System Controller 2004-04-17 01:56:10 +00:00
matt 8cd24529dc Add a SAVE/DISCARD flag to save_{fpu,vec}_lwp. Use it appropriately.
Nuke struct fpu and use struct fpreg instead (except for the names, they
were identical).  On MP machines, this will avoid an unneeded IPI to save
the register contents that are about to discarded.
2004-04-16 23:58:08 +00:00
fvdl 7a44f0ad1f Make tracing work better (through interrupts, etc). Essentially a synch
with i386.
2004-04-16 14:21:56 +00:00
atatat 904ca21614 Prefer that kern.hostid is printed in hex, not as a signed decimal,
and avoid accidental sign-extension when setting it.
2004-04-16 13:25:40 +00:00
pk f663e2397e checkalias: pass LK_NOWAIT to vget() while holding the spechash spinlock. 2004-04-16 09:59:32 +00:00
hannken 3dc578de5e Make it compile when PPC_HAVE_FPU is not defined. 2004-04-16 08:52:41 +00:00
matt ee00feaab9 Revamp how user MSR/SRR1 are dealt with.
Add a PSL_USEROK_P(psl) macro which valids the bits (replaces the use of
PSL_USERSTATIC).
Add a PSL_USERSRR1 mask which is used to mask out status bits in the upper
half of SRR1.
Make sure PSL_VEC is set appropriately in userret().  PSL_VEC is in the same
region as SSR1 status bits so it's not preserved on exceptions.  Thus we
need to make to set it.
When returning a MSR/SRR1 to userland, always clear the status bits.
Add emulation of the mfpvr, mtmsr, and mfmsr instructions.
2004-04-15 21:07:06 +00:00
thorpej 35a1306bfd There was no need to bump the kernel version for a BPF ioctl change; back
that out.
2004-04-15 15:50:45 +00:00
darrenr 12d715a3ee don't use u_long in an ioctl, rather, u_int64_t so there are no long 32/64
bit compatibility problems.  bump kernel version like it should have been.
2004-04-15 15:17:11 +00:00
he a1182cdd25 We need to also clean out athhal-elf-o, so that "make clean; make"
after an initial "make" will also (re)build athhal-elf.o.
2004-04-15 15:02:17 +00:00
tv 7d5e6e5d58 Move -mips2 to CPUFLAGS in each kernel config file as suggested by mrg.
This matches the way other ports specify default CPU codegen options.
2004-04-15 14:58:30 +00:00
darrenr 4800529c7e Add a count of the number of packets that match the bpf filter applied to a
particule device.  In doing this, make a new the bpf_stat structure with
members that are u_long rather than u_int, matching the counters in the bpf_d.
the original bpf_stat is now bpf_stat_old and so to the original ioctl
is preserved as BIOCGSTATSOLD.
2004-04-15 14:56:57 +00:00
mrg 47a36b2bdc when we have a P4 or a MP system, don't enable performance monitoring.
this fixes PR#25014.  i386 GENERIC can re-enable PERFCTRS by default now
(it was disabled with x86 SMP support was commited to the trunk.)

XXX:  should add P4 support
XXX:  should add MP support
2004-04-15 13:56:32 +00:00
aymeric 8f2774036c . add a missing call to lockinit() in apmattach()
. while here, explicitly initialize three softc variables to 0
2004-04-15 11:03:15 +00:00
pk 299dfa38bf De-__P(). 2004-04-15 10:07:32 +00:00
yamt f502110937 add '.L' prefixes to local labels. 2004-04-15 09:20:29 +00:00
pk dab35b2e8d xcall: increase spin-out; fix diag output. 2004-04-15 08:11:20 +00:00
thorpej 6837b365dd Assign a syslog priority to the AEN codes and use that priority when
logging the error message.  Potentially allows critical messages to be
noticed much more quickly.
2004-04-15 02:03:03 +00:00
darrenr 6cfa637a10 * from bpf 1.2a1, use the IO_NDELAY flag in bpfread() to indicate whether or
not a read operation should be allowed to sleep.  This allows the use of
  bd_rtout with a value of "-1" to be eliminated (signed comparison and
  assignment to an unsigned long.)
* in 1.91, a change was introduced that had bpfpoll() returning POLLRDNORM
  set when the timeout expired.  This impacted poorly on performance as well
  as causing select to return an fd available for reading when it wasn't.
  Change the behaviour here to only allow the possibility of POLLIN being
  returned as active in the event of a timeout.
2004-04-14 21:34:26 +00:00
ragge 0a7fe37708 Add back one line which was accidentially removed (by me) a while ago.
Spotted by Markus Friedl (markus at openbsd.org).
2004-04-14 18:07:52 +00:00
ragge 34edcc4638 The 82597 chip may write back some receive descriptors off-by-one when
the PCIX bus start to get heavily loaded.  This only happen when using
chained descriptors, therefore work-around it by providing a private
pool of receive buffers able to contain a full-sized packet.
2004-04-14 17:31:02 +00:00
pooka 88d0b8e68e Return "video()" instead of "graphics(0)" for a graphics console,
since that's what even our code expects.

suggested by Steve Rumble
2004-04-14 10:29:26 +00:00
minoura c5bd25260a Change the value of DRIVE_ATAPIST which was same as that of DRIVE_DMAERR.
Ok'd by bouyer.
2004-04-14 05:26:29 +00:00
bsh 018ab5b974 distinguish PXA255/26x from PXA2[15]0 in CPU attach message 2004-04-14 04:01:49 +00:00
bouyer fca16a87e1 Make wdc_channel->ch_flags volatile, and cast it to (void *) when used
in tsleep()/wakeup() to appease gcc. Otherwise, the ch_flags value may
be cached in a register in atabus_thread(), and when it sets the WDCF_TH_RUN
bit after tsleep() it may loose loose the changes made by an interrupt handler
or another thread.
Problem analysed by Jukka Andberg on tech-kern.
2004-04-13 19:51:06 +00:00
bsh 4f5b0f1294 add CPU ID for Bulverde 2004-04-13 19:14:34 +00:00
pk cd891bd771 Re-enable the HyperSPARC on-board instruction cache on multi-processor machines. 2004-04-13 14:55:48 +00:00
pk 86fce030ee Handle `unimplemented flush' traps by flushing the entire I-cache (if
there is one).
2004-04-13 14:04:29 +00:00
pk e76253f84e Turn FLUSH instructions that wind up here into no-ops. 2004-04-13 14:00:24 +00:00
ragge ef66f543d0 Make it possible to use 16k MTU. 2004-04-13 11:40:06 +00:00
sekiya 7af65e354b Back out portions of previous commit -- the mips/bus_dma.c code is less
correct than the sgimips-specific code.
2004-04-13 08:12:03 +00:00
jmmv 8d3610f027 Be consistent with other messages: output "VIA Technologies" instead of
only "VIA".  Also add a missing "Audio" word to a message.
Closes PR kern/25152 by Nicolas Joly.
2004-04-12 15:44:53 +00:00
kochi 01e95b11cc fix compilation when ACPI_DEBUG is not set.
pointed out by Sverre Froyen.
2004-04-12 15:11:04 +00:00
kochi 1d26507180 minor space nit from Alexander Yurchenko. 2004-04-12 15:09:46 +00:00
sekiya 8af58b1851 Merge fixes from arch/mips/mips/bus_dma.c -- a curproc->lwp fix, and streamline
the cache magic for BUS_DMASYNC_PREREAD in _bus_dmamap_sync_mips3().

(Note to self: investigate feasibility of replacing MD bus.c with MI bus_dma.c)
2004-04-12 14:30:47 +00:00
pk ebfcdb612b Drop the special sun4d `tlb flush' lock. The pte update function already
serialises access to the PTEs to reliably get ref/mod bits.

Rename pte4m_lock => demap_lock.
2004-04-12 14:26:01 +00:00
yamt faedfe8895 - keep cr3 register and its copy in TSS synchronized.
otherwise an interrupt vector using a task gate (ie. ddbipi) messes it up.
- defer LDTR loading as well as cr3.
- tweak comments to make three copies of switching code more synchronized.
2004-04-12 13:17:46 +00:00
pk 4f969ab39c pv_syncflags4m: no need to flush the cache. If the page is still mapped,
its ref/mod status may change at any moment anyway. If a definitive status
is required the UVM code will unmap the page first.
2004-04-12 12:52:42 +00:00
pk fd1ba25dd1 Drop sparc_protection_init4m() in favour of a (ro) data initialiser. 2004-04-12 10:00:28 +00:00
itojun 25b85e1925 fixed a memory leak (refcnt) in #ifdef IPSEC_DOSEQCHECK portion 2004-04-12 07:50:56 +00:00
thorpej 466915b256 Flow control support for DP83820 and SiS900. From HITOSHI Osada. 2004-04-11 21:16:00 +00:00
thorpej 21cfdb75e2 Improvements to DP83820 support, from HITOSHI Osada:
- Fix jumbo frame support.
- Disable interrupts at the chip in sip_intr().
- Disable checksum offloading if MTU > 8109 - the hardware is broken
  in this case.
- Use the interrupt hold-off timer.
- Correct the Tx FIFO size.
- Add Pause Control/Status register definitions.
2004-04-11 16:57:44 +00:00
thorpej a85c2a8f12 mii_phy_flowstatus(): short-circuit processing if both sides advertise
symmetric pause capability.  From HITOSHI Osada.
2004-04-11 15:47:33 +00:00
thorpej ad35f1d6fa Add a comment describing why we force renegotiation when PAUSE is being
used.  From HITOSHI Osada.
2004-04-11 15:42:48 +00:00
kochi d742fdc844 - don't evaluate _UID, reuse ACPI_DEVINFO
- move acpi_resources from acpi_ec_softc to stack
2004-04-11 15:41:50 +00:00
thorpej 08645d15fe gmii_phy_getflowcontrol() -> mii_phy_flowstatus(). From HITOSHI Osada. 2004-04-11 15:40:56 +00:00
pooka 0d197bf832 KNF some and make printf output a bit nicer. 2004-04-11 12:17:10 +00:00
pooka 34bd15648e Add IP12 stuff. Most bits included are from Steve Rumble.
After this change it is possible to run IP12.
2004-04-11 12:13:20 +00:00
pooka 0e36d54eba Fix base address for i8254 calibration code. This has the effect of
us writing to the correct addresses and the thing actually working.
2004-04-11 12:05:37 +00:00