summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2005-07-28Add viasio(4), a driver for VIA VT1211 LPC Super I/O found onAlexander Yurchenko
some VIA CPU based boards. The driver provides temperature, voltage and fan tachometers values through the sysctl interface. Rickard Dahlstrand <rd@tilde.se> asked for this driver and provided access to the test board. Also tested by millert@. ok millert@
2005-07-26Instead of juggling around with cr4 and enabling parts of it sometimes,Artur Grabowski
other parts later, etc. Just set it to the same default value everywhere. We won't survive without PSE and tt's not like someone will suddenly make an amd64 that doesn't support PGE. This will allow us to make the bootstrap process slightly more sane.
2005-07-26Microoptimizations.Artur Grabowski
- Use cmov instead of jmp in mtx_enter - Don't spllower in mtx_leave unless we really have to. tested by many.
2005-07-26In splraise, change an:Artur Grabowski
if (x > foo->bar) foo->bar = x; to: foo->bar = MAX(x, foo->bar); This forces gcc to generate much better code even though both experessions are equivalent. Normally I wouldn't bother with microoptimizations like this, but I needed some generated assembler that uses cmov and splraise used so often.. ok toby@ (well, he ok:ed a diff that didn't use the MAX macro, but it's the same code)
2005-07-26Add _PROF_PROLOGUE to Xspllower since it's so common in kernel profiles.Artur Grabowski
Doesn't hurt, since we don't use spls in _mcount. ok toby@ and miod@ (who doesn't admit to having an amd64)
2005-07-26Reduce verbosity during dkcsum by moving open/read/close errorKenneth R Westerback
messages inside #ifdef DEBUG/#endif sections. Helps with usb card readers and such that will often have no media. ok weingart@ tom@
2005-07-23Fix a few typos. Set 'error' variable before using it in message.Kenneth R Westerback
Makes i386 and amd64 dkcsum.c identical. ok weingart@ tom@
2005-07-18remove trailing newline in panic(9); ok millert@ and deraadt@Federico G. Schwindt
2005-07-15kill trailing whitespace;Jason McIntyre
2005-07-15- add /bsd.rd to FILESJason McIntyre
- for amd64/i386 add /bsd.mp to FILES ok tom@
2005-07-12fix comment, describe the VA hole correcltyHans-Joerg Hoexer
ok art@
2005-07-06url fitsTheo de Raadt
2005-07-06ural works; pedro@ironchicken.am-gen.orgTheo de Raadt
2005-07-06smartarray 5* raid controller; does io but needs more work; commented out in ↵Michael Shalayeff
configs for now
2005-06-28add xl@pciBrad Smith
2005-06-25the local macro _id was removed before this code was even imported from NetBSDBrad Smith
when it was replaced with PCI_ID_CODE.
2005-06-23Dead code.Artur Grabowski
2005-06-17uipaq/ucom support; written by isis@www.cs.umd.eduTheo de Raadt
2005-06-17- remove old debugging codeMarco Peereboom
- allocate and use scribble page - provide method to see if something has scribbled out of bounds The gart still remains disabled by default. From jason@
2005-06-08revert enabling iommu on amd64 as it breaks at least one MP host.Marco S Hyman
OK deraadt@
2005-06-07make it prettier; jason okTheo de Raadt
2005-06-06enable iommu on all systems where we support it. We'll support it on moreJason Wright
systems in a week or two (hey, getting a machine is taking me longer than I expected =)
2005-06-02Start on a basic ACPI framework -- does not do much more than read out theThorsten Lockert
ACPI tables into kernel memory and attach ACPI and HPET timers currently. In order to test this code, enabling the devices in GENERIC as well as the ACPI_ENABLE option is needed. This code does not do any thermal control yet, so this should be done with care depending on the platform. In the tree so more people can contribute to making this more fully featured. Ok niklas@ grange@ tedu@
2005-06-02- wish there was a better way to do this... put splhigh() around theJason Wright
extent_* functions to ensure they stay consistent - also remove some debugging crap
2005-06-01as Jason requested, be gone vtophys().Brad Smith
ok deraadt@ marco@
2005-06-01disable sf* too, until it is vtophys cleanTheo de Raadt
2005-05-31spelling corrections in comments;Jason McIntyre
from charlie root;
2005-05-31Lock the apic with a mutex, not a SIMPLE_LOCK.Artur Grabowski
markus@ ok miod@ tried to ok, but he doesn't officially have an amd64.
2005-05-29sched work by niklas and art backed out; causes panicsTheo de Raadt
2005-05-28*slightly drunk*Tobias Weingartner
To all my "friends", and my lovely future wife... Thank you. Anyone who still wants to sign the shirt, it's on my bakc. Again, thank you. This commit was ok'd by drahn@, art@, niklas@, in spite of my condition.
2005-05-28If irq-sharing happens over different ioapics, we must not overwrite setup ↵Niklas Hallqvist
info for one of them
2005-05-27oops, need to get the boundary from the map when allocating gart addressesJason Wright
(fixes borked pciide chipsets)
2005-05-27 - Use the direct map for mapping the PTEs.Artur Grabowski
- Actually allocate the right number of softcs.
2005-05-27Stop pretending that amd64 is i386. We're insulting the cpu by not evenArtur Grabowski
pretending to use all the address space it gives us. - Map all physical memory 1-1 and implement PMAP_DIRECT - Remove the vast magic we do to map pages for pmap_zero_page, pmap_copy_page, pv allocation, magic while bootstrapping, reading of /dev/mem, etc. - implement a fast pmap_zero_page based on sse instructions. I love removing code. More to come. deraadt@ ok tested by many.
2005-05-27use a fixed address for the base dva, also don't forget to setup theJason Wright
pae table base address.
2005-05-27add atapiscsi@umass to RAMDISKS as appropriate, ok krw@ deraadt@Dale Rahn
2005-05-27hook in iommu, but it's still disabled by default for nowJason Wright
2005-05-27fix printfJason Wright
2005-05-27remove support for sf and ste. vtophys is NOT a working solution.Jason Wright
Do not re-enable these drivers until they are bus-dma'ified.
2005-05-27build iommu by default (it's still not hooked in, but this is harmless)Jason Wright
2005-05-27handle multi-cpu GART allocation:Jason Wright
iommu0(cpu0): base 0x80000000 length 512 pte 0xa80000
2005-05-27first step of removing the obsolete PCI ncr(4) driver, it was superseded byMartin Reindl
siop(4) a long time ago 'do it' jason@
2005-05-26Add atapiscsi in parallel with scsibus@usb, this only changes systemDale Rahn
that dont have atapiscsi@wdc, fixes zaurus, ok krw@ todd@
2005-05-26make all mappings valid/coherent. For pages not currently mapped, fillJason Wright
the entry with a scribble page. In the future, we'll use this for detecting bad device drivers. Page faults are bad in an iommu =)
2005-05-26iommu meets amd64. This currently only works on machines where the GARTJason Wright
is NOT enabled by the BIOS. It's also not hooked in by default yet.
2005-05-25This patch is mortly art's work and was done *a year* ago. Art wants to thankNiklas Hallqvist
everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
2005-05-25comment typoJason Wright
2005-05-24add a new field to vm_space and use it to track the number of anonTed Unangst
pages a process uses. this is now the userland "data size" value. ok art deraadt tdeval. thanks testers.
2005-05-24add stge(4)Brad Smith
2005-05-24do not print cpu startup messages (because they are obvious)Theo de Raadt