Commit Graph

820 Commits

Author SHA1 Message Date
ad 92ce8c6a3d Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
2008-11-19 18:35:57 +00:00
ad 3ac4bd5b0e Fix sloppy device_private conversion by cegger@ that prevented systems
with IPMI from booting for the last two weeks.
2008-11-19 13:12:05 +00:00
joerg a5be52d405 On resum-from-RAM explicitly restore PCI link device state before
reenabling interrupts. At least one BIOS doesn't do this automatically
as reported by Christoph Egger.
2008-11-17 23:29:49 +00:00
skrll 624f050b49 Typo in comment. 2008-11-15 10:47:53 +00:00
cegger b23cd354e0 merge BIOS memmap code from i386/i386/machdep.c:init386() and amd64/amd64/machdep.c:init_x86_64 into x86/x86/x86_machdep.c 2008-11-14 00:41:36 +00:00
jmcneill e50d66855f Add support for enhanced speedstep on Intel Atom CPUs 2008-11-12 13:00:08 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
ad 70f38482aa PR port-amd64/38293 panic: fp_save ipi didn't
Kill the FP flush IPI and always save. The synchronization here isn't strong
and we could easily pull the chain on an innocent LWP's FP state.

Another fix to follow.
2008-11-11 13:45:10 +00:00
cegger 76d489193e struct device * -> device_t 2008-11-09 15:34:14 +00:00
cegger 32c1f8c732 Nuke last parameter from mpaci_scan_apics() and mpbios_scan().
It is unused.
2008-11-09 14:24:14 +00:00
christos 71ede8ab96 Support for Intel G35 as found on Asus P5E-VM HDMI motherboard from
Milos Negovanovic
2008-11-08 17:26:28 +00:00
cegger 4b9b87ae5b Link cpus in the order they are attaching and not in inverse order. 2008-11-06 19:29:46 +00:00
dyoung 5c0c1b5199 Use NULL instead of (bus_dma_tag_t)0. 2008-11-06 01:17:24 +00:00
christos b8b90de20c If ipmi failed to attach we would crash because we would end up using callouts
while cold. If cold, wait 10 times longer, and if we spinout fail instead of
trying to poll. Makes my machine boot again.
2008-11-03 22:44:42 +00:00
cegger cbc3aa97ef unbreak previous. this change wasn't intended. 2008-11-03 12:33:08 +00:00
cegger cfeb108e60 The functions called from ipmi_match use the DEVNAME macro. But the softc is allocated on the stack and the accessed sc_dev member is not initialized.
Initialize the sc_dev.dv_xname in ipmi_match, which is enough to make DEVNAME work. Finally this also allows the device_t/softc split.
2008-11-03 12:25:53 +00:00
cegger 3c17eae58b ipmi_match: remove one indentation level 2008-11-03 12:19:06 +00:00
rmind 8f1873ea3b - Avoid the race with CPU online/offline state changes, when setting the
affinity (cpu_lock protects these operations now).
- Disallow setting of state of CPU to to offline, if there are bound LWPs,
  which have no CPU to migrate.
- Disallow setting of affinity for the LWP(s), if all CPUs in the dynamic
  CPU-set are offline.
- sched_setaffinity: fix invalid check of kcpuset_isset().
- Rename cpu_setonline() to cpu_setstate().

Should fix PR/39349.
2008-10-31 00:36:22 +00:00
cegger 21b01532c7 prepare for device_t/softc split, but actually don't do it: ipmi_match() wants to access sc_dev before we have chance to initialize it 2008-10-30 20:28:02 +00:00
mrg a5a4dddeb3 this uses an evcnt so, include <sys/evcnt.h> 2008-10-25 19:13:40 +00:00
yamt e11d976a7b pmap_page_remove: remove an unnecessary initialization. 2008-10-25 14:16:35 +00:00
cegger 2de31871b9 introduce two macros: xendomain_is_dom0() and xendomain_is_privileged(). Use them. 2008-10-21 15:46:32 +00:00
ad a9327b33e2 Undo revivesa damage to userret(). 2008-10-21 11:51:23 +00:00
cegger fa517365e8 for AMD CPUs: utilize new ci_feature4_flags field and check if SVM is present & disabled by the BIOS.
If so, then print this information in the dmesg, but only once for cpu0.
Don't do this check in a Xen DomU.
2008-10-18 09:08:34 +00:00
ad 1ec58d56ef - Rename cpu_lookup_byindex() to cpu_lookup(). The hardware ID isn't of
interest to MI code. No functional change.
- Change /dev/cpu to operate on cpu index, not hardware ID. Now cpuctl
  shouldn't print confused output.
2008-10-15 08:13:17 +00:00
wrstuden fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
cegger 9250503c06 do correct octal counting and use CPUID_APM_FLAGS in cpuctl 2008-10-14 15:49:04 +00:00
tsutsui 8e13c684aa If no booted_device is found in find_root(), also check CD-ROM boot
with strategy bootloader does.  This allows one CD system with cd9660
root file system and mfs (like a restorecd for cobalt) using GENERIC.

No objection on port-i386, and no bad side effect on usual harddisk boot
or installation of GENERIC with miniroot module.
2008-10-14 15:48:44 +00:00
cegger 6b341232c5 add cpuid fn 80000007 %edx: AMD Power Management feature flags 2008-10-14 14:33:51 +00:00
cegger 9f76b1e7c7 fix output of 3DNOWPREFETCH feature flag 2008-10-14 12:22:29 +00:00
cegger 68e6aa3a03 print features4: cpuid fn80000001 %ecx on AMD CPUs. 2008-10-13 21:11:46 +00:00
cegger 26997ceaa5 Add cpuid 0x80000001 %ecx features flags. Rename CPUID_MASK4 to CPUID_INTEL_MASK4 for consistency with new CPUID_AMD_MASK4 2008-10-13 19:14:53 +00:00
joerg 019af4c028 Intel Tempest can use ichlpcib as well. 2008-10-13 15:10:51 +00:00
sborrill fb8bc8a9cf Print actual maximum amount of MTRRs configured 2008-10-13 10:27:10 +00:00
christos d395ac9332 define a TEST mode. 2008-09-25 21:03:22 +00:00
christos 881c644962 PR/39458: Juan RP: avoid attaching coretemp on systems that don't have it
by checking the read valid bit.
2008-09-23 22:14:09 +00:00
joerg 916a606f2a Explicitly disable all GPEs and clear fixed events before enabling
interrupts. This is the first part of PR 38683.
2008-09-23 14:54:23 +00:00
ad ea0ceff13f Speed up ipmi attach a bit, although boot times on my workstation still suck:
before		18s
after		14s
without	ipmi	8s
2008-09-23 10:17:06 +00:00
jmcneill 13e32ea2ea Revert previous. 2008-09-19 11:15:50 +00:00
dsl d1779123ae Remove PSL_MBO (the bits that Must Be One) from PSL_USER - which are the
bits that the 'user' can change.
Who knows what the effect of a user signal handler (which I think might have
access to the bits) changing these bits might be!
2008-09-18 21:09:18 +00:00
christos 95ffbb8bc9 Define a PSL_CLEARSIG macro for the psl flags to be cleared on signal delivery
and use it everywhere.
2008-09-18 15:57:04 +00:00
christos e361ed1721 Include PSL_D in the flags to be able to be set by the user. Since setmcontext
is used to restore context from a signal handler, this will allow restoring
PSL_D to what it was before the user code entered the signal handler allowing
programs to work.
2008-09-17 12:28:52 +00:00
bouyer 6004aef42d Implement the arch-dependent p2m frame lists list. This adds support for
'xm dump-core' for NetBSD domUs.
From Jean-Yves Migeon (jean-yves dot migeon at espci dot fr)
2008-09-16 19:55:31 +00:00
jmcneill b1cb1c6dcb PR# 38683 - T61 cannot suspend with recent kernels
Don't restore spl until after AcpiLeaveSleepState.
2008-09-10 03:56:12 +00:00
tron 5f566e7cf3 Remove duplicate definition of "bootinfo" structure.
Patch provided by Juan RP in PR kern/39495.
2008-09-09 12:09:31 +00:00
gmcgarry 0de5da9678 Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
2008-09-08 23:36:53 +00:00
joerg 08c7b8a922 Make the amount of backing memory a macro to simplify changing it. 2008-09-08 21:32:50 +00:00
pgoyette 15c5293824 Separate checking of sensor value vs threshold/limit value into two
routines, so we can distinguish between an over-limit vs under-limit
condition.  Set sensor state appropriately based on which threshold
is exceeded.

To do: come up with a means of detecting non-existent fans vs broken
fans.  Currently, both report a valid value of "0 RPM" at least on
some platforms.

OK garbled@
Tested by simonb@
2008-09-08 03:05:38 +00:00
fvdl 1f23ad28e6 If tsc_freq is 0 (probably due to bad virtualization, as currently
seen under VirtualBox), don't try to use TSC as a timecounter source
to avoid trouble. Matches the FreeBSD behavior.
2008-08-31 17:24:14 +00:00
pgoyette d664f40b97 Clean up previous: add bit definitions for some new fields, and use "old"
style bitmask_printf(9) format string for consistency with the rest of the
file.  No functional change.

OK cegger@
2008-08-26 13:43:47 +00:00