summaryrefslogtreecommitdiffstats
path: root/sys/amd64
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in comments in r189023.sobomax2009-02-251-1/+1
|
* Enable support for PAT_WRITE_PROTECTED and PAT_UNCACHED cache modesjkim2009-02-251-37/+2
| | | | | | | unconditionally on amd64. On i386, we assume PAT is usable if the CPU vendor is not Intel or CPU model is newer than Pentium IV. Reviewed by: alc, jhb
* Make machdep.hyperthreading_enabled tunable working with the SCHED_ULE.sobomax2009-02-251-9/+43
| | | | | | | | Unlike with SCHED_BSD, however, it can only be set to 0 at boot time, it's not possible to change it at runtime. Reviewed by: jhb MFC after: 1 month
* These are no longer needed.thompsa2009-02-241-112/+0
|
* Exclude ndis from the LINT build as it currently breaks the build, patches tothompsa2009-02-241-2/+2
| | | | move to the new usb stack are in progress.
* Change over the usb kernel options to the new stack (retaining existingthompsa2009-02-232-90/+29
| | | | naming). The old usb stack can be compiled in my prefixing the name with 'o'.
* Some whitespace and style fixes.jhb2009-02-231-4/+2
| | | | Submitted by: bde (partly)
* Optimize free_pv_entry(); specifically, avoid repeated TAILQ_REMOVE()s.alc2009-02-231-3/+3
| | | | MFC after: 1 week
* - Resolve an issue where we may clear an idt while an interrupt on ajeff2009-02-211-0/+8
| | | | | | | | | | | different cpu is still assigned to that vector by never clearing idt entries. This was only provided as a debugging feature and the bugs are caught by other means. - Drop the sched lock when rebinding to reassign an interrupt vector to a new cpu so that pending interrupts have a chance to be delivered before removing the old vector. Discussed with: tegge, jhb
* Adapt linux emulation to use cv for vfork wait.kib2009-02-181-2/+2
| | | | | Submitted by: Takahiro Kurosawa <takahiro.kurosawa gmail com> PR: kern/131506
* Add uslcom to the build too.thompsa2009-02-151-0/+1
| | | | Reminded by: Michael Butler
* Switch over GENERIC kernels to USB2 by default.thompsa2009-02-151-31/+87
| | | | Tested by: make universe
* Remove unnecessary page queues locking around vm_page_busy() andalc2009-02-141-6/+0
| | | | | | | vm_page_wakeup(). (This change is applicable to RELENG_7 but not RELENG_6.) MFC after: 1 week
* Add option GEOM_PART_EBR by default on amd64 and i386.marcel2009-02-101-0/+1
|
* The bounce zone sees its page number increased if multiple dma maps use it incognet2009-02-091-1/+6
| | | | | | | | | the same dma tag. However, it can happen multiple dma tags share the same bounce zone too, so add a per-bounce zone map counter, and check it instead of the dma tag map counter, to know if we have to alloc more pages. Reported by: miwi Reviewed by: scottl
* When bouncing pages, allow a new option to preserve the intra-pageimp2009-02-081-0/+7
| | | | | | | | | | | | | | | | offset. This is needed for the ehci hardware buffer rings that assume this behavior. This is an interim solution, and a more general one is being worked on. This solution doesn't break anything that doesn't ask for it directly. The mbuf and uio variants with this flag likely don't work and haven't been tested. Universe builds with these changes. I don't have a huge-memory machine to test these changes with, but will be happy to work with folks that do and hps if this changes turns out not to be sufficient. Submitted by: alfred@ from Hans Peter Selasky's original
* Companion for r188301: fix the prototypes.imp2009-02-081-4/+4
|
* Correct parameter types for pcib_{read,write}_config by fixing theimp2009-02-081-5/+5
| | | | protptyoes for the legacy_* impelemtnations of these kobj methods.
* Tidy NOTES a bit:wkoszek2009-02-071-3/+6
| | | | | | | | | | - remove misleading nve/nfe comments, which make it hard to distinguish those two at a first glance - bring pbio documentation to the block comment together with other drivers I also brought commented out line responsible for si(4), since it seems to compile and already has respective comment in this file.
* ural(4) is already present in global NOTES, thus there is nowkoszek2009-02-061-2/+0
| | | | | | | | | need to explicitly list it here once again. This removes: WARNING: duplicate option `DEV_URAL' encountered. WARNING: duplicate device `ural' encountered. Warnings when compiling LINT on amd64.
* Fix AGP debugging code:wkoszek2009-02-061-0/+5
| | | | | | | | | | | | - correct format strings - fill opt_agp.h if AGP_DEBUG is defined - bring AGP_DEBUG to LINT by mentioning it in NOTES This should hopefully fix a warning that was... Found by: Coverity Prevent(tm) CID: 3676 Tested on: amd64, i386
* Improve robustness of NMI handling, for NMIs recognized in kerneljkoshy2009-02-034-26/+84
| | | | | | | | | | | | | | | | | | | mode. - Make the NMI handler run on its own stack (TSS_IST2). - Store the GSBASE value for each CPU just before the start of each NMI stack, permitting efficient retrieval using %rsp-relative addressing. - For NMIs taken from kernel mode, program MSR_GSBASE explicitly since one or both of MSR_GSBASE and MSR_KGSBASE can be potentially invalid. The current contents of MSR_GSBASE are saved and restored at exit. - For NMIs handled from user mode, continue to use 'swapgs' to load the per-CPU GSBASE. Reviewed by: jeff Debugging help: jeff Tested by: gnn, Artem Belevich <artemb at gmail dot com>
* Fix the inconsistent tabbing.obrien2009-01-311-52/+55
| | | | Noticed by: bde
* Change some movl's to mov's. Newer GAS no longer accept 'movl' instructionsobrien2009-01-316-33/+33
| | | | | | for moving between a segment register and a 32-bit memory location. Looked at by: jhb
* - Allocate apic vectors on a per-cpu basis. This allows us to allocatejeff2009-01-296-77/+153
| | | | | | | | more irqs as we have more cpus. This is principally useful on systems with msi devices which may want many irqs per-cpu. Discussed with: jhb Sponsored by: Nokia
* Use a different value for the initial control word for the FPU state forjhb2009-01-282-0/+6
| | | | | | | | 32-bit processes. The value matches the initial setting used by FreeBSD/i386. Otherwise, 32-bit binaries using floating point would use a slightly different initial state when run on FreeBSD/amd64. MFC after: 1 week
* VIA Nano processor has a special MSR (CENT_HARDWARECTRL3) bit 32 to determinejkim2009-01-221-1/+2
| | | | | whether TSC is P-state invariant or not. In fact, this MSR is writable but we just leave it at the BIOS default for now.
* The context switch to the 32bit binary does not properly restorekib2009-01-201-1/+2
| | | | | | | | | | | the fsbase value. The switch loads the fs segment register, that invalidates the value in fsbase msr, thus value in %r9 can not be considered the current value for fsbase anymore. Unconditionally reload fsbase when switching to 32bit binary. PR: 130526 MFC after: 3 weeks
* Take NTFS option out to match i386 GENERIC.sobomax2009-01-191-1/+0
| | | | Suggested by: phk, luigi
* asr(4) is not amd64-clean, not amr(4).sobomax2009-01-191-3/+3
| | | | | Pointy hat to: myself Submitted by: scottl
* Comment amr(4) out - according to scottl it's not 64-bit clean.sobomax2009-01-191-1/+2
|
* Whitespace-only: reduce diff to the i386 GENERIC.sobomax2009-01-191-4/+4
|
* Add asr(4) and stge(4) from i386 GENERIC. Both drivers compile on amd64 andsobomax2009-01-191-0/+2
| | | | | | there is no particular reason for them to be i386-only. MFC after: 2 weeks
* Disable interrupts, if they were enabled, before doing swapgs.kib2009-01-141-0/+1
| | | | | | | | Otherwise, interrupt may happen while we run with kernel CS and usermode gsbase. Reviewed by: jeff MFC after: 1 week
* MFp4: //depot/projects/usb@155990thompsa2009-01-131-0/+4
| | | | | | Add USB scanner support to USB2 config files. Submitted by: Hans Petter Selasky
* Documentation-only change:luigi2009-01-131-2/+8
| | | | | | | | | | | | | | | | | | | | - add a reference to the config(5) manpage; - hopefully clarify the format of the 'env FILENAME' directive. I am putting these notes in sys/${arch}/conf/GENERIC and not in sys/conf/NOTES because: 1. i386/GENERIC already had reference to a similar option (hints..) and to documentation (handbook) 2. GENERIC is what most users look at when they have to modify or create a new kernel config, so having the suggestion there is more effective. I am only touching i386 and amd64 because the other GENERIC files are already out of sync, and I am not sure what is the overall plan. MFC after: 3 days
* Add basic amd64 support for VIA Nano processors.jkim2009-01-126-15/+200
|
* Add Centaur/IDT/VIA vendor ID for Nano family, which has long mode support.jkim2009-01-053-0/+4
|
* Add commented out options KDTRACE_HOOKS and, for amd64, KDRACE_FRAME,rwatson2009-01-051-0/+2
| | | | | | | to GENERIC configuration files. This brings what's in 8.x in sync with what is in 7.x, but does not change any current defaults. Possibly they should now be enabled in head by default?
* Disable USB bluetooth (needs netgraph built in) and USB audio (doesn'trpaulo2008-12-301-3/+3
| | | | compile).
* Add a kernel config file so that users have less difficulty testingrpaulo2008-12-301-0/+110
| | | | | | USBng. If it makes sense, it could be done for arm/mips too.
* Make gpart the default partitioning class on all platforms.marcel2008-12-171-2/+2
| | | | | | | Both ia64 and powerpc were using gpart exclusively already so there's no change for those two. Discussed on: arch@
* AT_DEBUG and AT_BRK were OBE like 10 years ago, so retire them.imp2008-12-171-12/+0
| | | | Reviewed by: peter
* Remove obsolete AT_DEBUG stuff. It never should have been committedimp2008-12-171-2/+0
| | | | | | in the first place, let alone migrated to linux emulation. Reviewed by: peter, rdivacky
* Bug fix: %ebx needs to be preserved in the user callchain capturejkoshy2008-12-141-4/+4
| | | | path.
* - Bug fix: prevent a thread from migrating between CPUs between thejkoshy2008-12-131-6/+10
| | | | | | | | | | | | | time it is marked for user space callchain capture in the NMI handler and the time the callchain capture callback runs. - Improve code and control flow clarity by invoking hwpmc(4)'s user space callchain capture callback directly from low-level code. Reviewed by: jhb (kern/subr_trap.c) Testing (various patch revisions): gnn, Fabien Thomas <fabien dot thomas at netasq dot com>, Artem Belevich <artemb at gmail dot com>
* Add more CPUID bits from AMD CPUID Specification Rev. 2.28.jkim2008-12-122-8/+16
|
* Expose symbol `PMC_FN_USER_CALLCHAIN' to assembler code.jkoshy2008-12-121-0/+8
|
* Add constants for fields in the local APIC error status register and ajhb2008-12-113-0/+22
| | | | routine to read it.
* Change the default value for the flag enabling superpage mapping andalc2008-12-061-1/+1
| | | | | | | promotion to "on". Reminded by: jhb Tested by: kris
OpenPOWER on IntegriCloud