Commit Graph

91580 Commits

Author SHA1 Message Date
dyoung
60e2cd65a0 Fix XEN2_DOMU (and amd64?) builds: move ether_mediastatus(),
ether_mediachange() to their own module that we compile only if
the kernel configuration demands support for both MII buses and
ethernet.  Thanks to Tom Spindler for suggesting that these routines
move to dev/mii/.
2008-01-02 00:41:07 +00:00
pooka
ffd37c1db1 pass mmap to file systems 2008-01-01 22:31:42 +00:00
pooka
d89e3e05a2 emulate a couple more locking interfaces 2008-01-01 22:03:24 +00:00
yamt
48a1e4c2c1 a simple performance monitor based profiler, inspired from linux oprofile. 2008-01-01 21:28:37 +00:00
yamt
13d9847b0a add swapgs. 2008-01-01 21:24:17 +00:00
yamt
cfb66876d1 try to detect processor resource sharing topologies. ie. package/core/smt IDs. 2008-01-01 20:32:10 +00:00
yamt
7aa31c1c3b make the nmi handler safer.
XXX should use IST.
2008-01-01 19:49:05 +00:00
njoly
dfd4477d85 s/i386/__i386__/. 2008-01-01 17:40:22 +00:00
chris
736004cf1c Add property to aceride to allow the forcing of compat mode.
This allows cats to override the BIOS (aka ABLE) settings, which enable
native mode, but doesn't route the interrupts correctly.

Discussed last year on tech-kern and port-cats.
2008-01-01 14:57:05 +00:00
chris
c93dd30159 Add support for kcore headers to arm32 kernel core dumps.
The kcore code is based on i386's kcore header handling.

Having an asm stub for dumpsys, to dump the registers onto the stack, and
then call the C code to do the memory dump is based on amd64's core dump
code.

This allows a successful core dump on cats.

Part of fixing PR cats/18026.
2008-01-01 14:06:42 +00:00
yamt
e01ad62b66 always consider T_NMI as !T_USER regardless of trapframe. 2008-01-01 13:40:20 +00:00
jmmv
e92603e152 Revert previous by removing the apm entry. Even though the driver seems
to work, we do not build any userland support for it; see 1.183's commit
message.  Per jmcneill@'s request.
2008-01-01 13:35:36 +00:00
yamt
e550a539ee add x86_cpuid2, which can specify ecx register. 2008-01-01 12:51:08 +00:00
yamt
aa3e923c59 add some dependencies on assym.h. 2008-01-01 11:35:33 +00:00
jmmv
b35cc6641f Add a trimmed-down configuration file for the VMware Fusion virtual machine
suitable for the subset of hardware devices it provides.
2008-01-01 11:20:42 +00:00
jmmv
4d71e761d0 Add the ACPI apm emulation device. 2008-01-01 11:05:27 +00:00
jmmv
14b3c39f2a Add and enable piixpm. Confirmed working under VMware Fusion. 2008-01-01 10:48:36 +00:00
he
aa5a643b16 Follow up the change to soackaddr_dl by using CLLADDR() and propagating
const to camentry().
2008-01-01 01:04:20 +00:00
ad
90d0dce26b Welcome to 2008.
Don't forget to update copyright notices when you add new code.
2008-01-01 00:00:18 +00:00
ad
6f612ecfc5 Put back ttclos, a lot of the drivers use it. 2007-12-31 23:33:08 +00:00
dyoung
73a1d6fbf5 Don't buffer packets while the link is down, but drop them on the
floor like most other ethernet drivers do.

bnx(4) has "vanilla" MII media-handling, so use ether_mediachange
and ether_mediastatus.
2007-12-31 22:52:14 +00:00
dyoung
b50b53e4c1 struct ethercom changed. Welcome to 4.99.47. 2007-12-31 22:49:39 +00:00
dyoung
aca36c0c26 Add media-handling code for several ethernet drivers with MII buses
to share.
2007-12-31 22:48:41 +00:00
dyoung
040eedb464 Extract common debugging code from gem_tint() and gem_start(),
creating gem_txsoft_print().
2007-12-31 21:43:57 +00:00
ad
fe8a16b16c Hang the correct processes when no output/input available. PR kern/37603.
From christos@.
2007-12-31 21:11:13 +00:00
dyoung
34de2dfb48 In gem_tint(), synchronize the correct descriptors for a Tx packet:
synchronize the N descriptors starting with the packet's first
descriptor, not with its last.  This ought to help the defined(GEM_DEBUG)
&& IFF_DEBUG case.
2007-12-31 21:02:00 +00:00
dyoung
2b99c93d85 gem_start() pads a Tx packet to the minimum ethernet frame length
by adding a segment to the Tx chain.  That entails using one more
descriptor.  It did not synchronize the last descriptor.

In gem_start(), clarify and repair DMA synchronization of the Tx
descriptors.  Sync them all.
2007-12-31 20:54:41 +00:00
christos
7b9a3d09d5 no more sleep constants. 2007-12-31 20:48:44 +00:00
dyoung
10769d1048 gem_start() assigned last_txs, but never used it otherwise, so
remove it.
2007-12-31 20:39:45 +00:00
dyoung
4941977e05 Cosmetic: remove superfluous parentheses, shorten staircase. 2007-12-31 20:35:11 +00:00
dyoung
ea67dea885 Re-order operations to ensure that if defined(GEM_DEBUG) && IFF_DEBUG,
gem_tint() prints a coherent set of descriptors that the NIC has
finished processing.  See comments for more information.  Compile-tested
on sparc64 and on macppc.
2007-12-31 20:31:02 +00:00
garbled
4ae431e265 On the 745x cpu, you have to invalidate cache slightly differently than
you do on the other cpus.  Add an if statement that takes this into account.
2007-12-31 18:54:34 +00:00
garbled
1c93f00dd2 Add a bunch of PVR values for a variety of processors. Taken from
various manuals, and linux.
2007-12-31 18:44:47 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
martin
4bf6db2543 Fix unusued variable warning (depending on options). Noticed by
Adrian Portelli on port-sparc64.
2007-12-31 14:10:15 +00:00
ad
9f6b8c4d04 Remove COMPAT_HPUX. 2007-12-31 13:38:47 +00:00
dyoung
f72e4b15e1 Fix 'tags' target. 2007-12-31 10:45:22 +00:00
dyoung
fd5d1d790d Use device_t, device_private(), aprint_error_dev(). 2007-12-31 09:12:18 +00:00
wiz
41643cbfd9 Proxy-commit for xtraeme:
Use sysmon_wdog_unregister(), not sysmon_wdog_register(), in
itesio_detach().
2007-12-31 01:53:58 +00:00
wiz
2af02278c7 Proxy-commit for xtraeme:
add dependency for itesio on sysmon_wdog.
2007-12-31 01:52:34 +00:00
macallan
3e23f460d5 'never try to fix more than one thing at once, especially if one is a crash'
backout bogus G4 CPU revision 'fix'
2007-12-31 01:37:13 +00:00
pooka
312cc39e60 pull in atomic ops from vmlocking2 2007-12-30 23:30:26 +00:00
pooka
7baf23bce3 fake sigcantmask 2007-12-30 23:29:06 +00:00
macallan
3987217f14 Remove a superfluous /* FALLTHROUGH */
Also switch back to waiting for L2CR_L2IP in cpu_enable_l2cr() - now my 2nd
G4 spins up again.
2007-12-30 23:21:21 +00:00
pooka
a5ee2954b8 namespace a bit: vfsops -> puffs_vfsop_x() and vops -> puffs_vnop_x() 2007-12-30 23:04:12 +00:00
pooka
c7ac51486c tablefull: subr_prf -> subr_prf2 2007-12-30 22:55:21 +00:00
macallan
eddfeaff1f Fix a logic botch when setting up L3 cache - don't attempt to do so on CPUs
that can't have L3 cache. While there also fix revision reporting for MPC7400
so what we report matches MacOS X.
2007-12-30 22:39:15 +00:00
ad
f38bbfb0c5 Pull up 1.104.2.3:
Avoid mutex recursion with kqueue. Reported by martin@.
2007-12-30 22:03:01 +00:00
smb
1d2e422408 Add pmf register/deregister to ucom and ugensa. (Addtionally, let a
Sierra wireless card be recognized as a ugensa.)
2007-12-30 21:49:47 +00:00
plunky
aeab3db895 request and keep a mask of supported commands per unit in order
to block unsupported HCI commands sent by unprivileged users
reaching the device.
2007-12-30 18:26:42 +00:00