summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2009-02-10enable run(4) everywhere where ural(4) and rum(4) are enabled.Damien Bergamini
run(4) has been reported to work on sparc64 by Maxim Belooussov so I'm pretty confident that it works on all arches.
2009-02-08Spacing nit.Alexander Yurchenko
2009-02-08Enable ips(4) on CD install media so people can try it.Alexander Yurchenko
ok miod@
2009-02-05Mirroring the i386 commit just made. Add MD PMAP_NOCACHE flag to pmap,Owain Ainsworth
and use it to implement BUS_DMA_NOCACHE for uncached mappings of dma memory. Needed for some broken hardware. Discussion with art, miod, kettenis and toby, ok miod.
2009-02-03Free TSS on the stack of the dead process.Mike Belopuhov
In order to do that we have to remove all sleeping parts: sleeping memory allocation and a sleeping lock. Thus we're moving this code to the spinning lock (mutex) and getting rid of the GDT grow code. Downside is that now we're pre-allocating 64kb of memory per CPU from the start, but this might be optimized in future. This also unifies GDT code and MAXGDTSIZ define across i386 and amd64. With help from mickey. ok toby, art
2009-01-31Don't cast pointer to int, use register_t here.Alexander Yurchenko
ok miod@ tedu@
2009-01-28Add missing braces in trunc_page() call from vmapbuf().Alexander Yurchenko
ok miod@
2009-01-27Switch the amd64 PCI_CONF_LOCK from being a simplelock and splhigh to aOwain Ainsworth
mutex with ipl set to IPL_HIGH. While i'm here, unify the code with i386, by giving the same lock to the i386 code. This lock is mostly for MP, but could actually prevent a race where a process is doing pci_conf_{read,write}, and then an interrupt fire and also does pci_conf_{read,write}. Since this is a two stage process, the interrupt could race with the one, causing the value to the written to the wrong place, or the wrong value to be written. Tested by many. "go ahead" kettenis@.
2009-01-25Remove /dev/drum and related code.Miod Vallat
2009-01-23Add schsio(4), a driver for SMSC SCH311x LPC Super I/O ICs providingMichael Knudsen
environment sensors. These are found at least on VIA Epia SN18000G boards. Not enabled at 0x162e and 0x164e because probing these may not be safe according to kettenis (guess where my schsio is). Much help from kettenis. Input from const and fgs. ok kettenis
2009-01-18enable atphy/ageKevin Lo
ok kettenis@
2009-01-17gdt_compact() was removed years ago, so kill the code and commentsPhilip Guenthe
that worked around its presence ok'ed by miod@
2009-01-16add next-server option to exampleOleg Safiullin
ok jmc@ stevesk@
2009-01-13Fix lvalue abuse by removing a redundant cast.Alexander Yurchenko
ok kettenis@
2009-01-13Turn mpbios into a real device, such that people can disable it on crappyMark Kettenis
BIOSes. ok deraadt@ (for the amd64 bit, or the i386 bit, can't remember which)
2009-01-07Enable urlphy in addition to url.Jonathan Gray
Noticed by dlg on system that comes with url(4).
2009-01-06- add and enable ipgphy(4) everywhere there's a stge(4) entry.Jasper Lievisse Adriaanse
(if the stge(4) entry is commented, so is the ipgphy(4) entry then). this allows ipgphy0 to attach to my stge0, which has a IC+ 1000A chip discussed with and ok jsg@, ok dlg@
2009-01-03run(4), a driver for Ralink RT2700U/RT2800U/RT3000U USB 802.11agn devices.Damien Bergamini
the driver supports legacy 802.11abg modes only (no 802.11n yet.) WPA works, with hardware encryption/decryption. committed over an RT2800U (RT2870+RT2820). enabled on i386 and amd64 GENERIC only for now. thanks to Paul Lin at Ralink for letting us ship the firmware under an appropriate license. "man page looks ok" jmc@ "you should commit it" jsg@, ok deraadt@
2009-01-02Do not evict the kernel image from the mem_clusters[] array, otherwiseMiod Vallat
it won't get included in kernel crash dumps. ok dlg@
2008-12-30savecore(8) wants dumpmag to be an unsigned long.Miod Vallat
2008-12-28No longer look for RSDP in memory marked as "ACPI Reclaim" in the BIOS memoryMark Kettenis
map. The standard doesn't tell us to look there, Linux and NetBSD don't look there either. It seems that some BIOSes use this memory as a scratch area to build the final ACPI tables which means we can accidentally find what seems like a valid RSDP there. Fixes PR 5847. ok krw@, marco@
2008-12-28Remove confusion between "raw" and "swizzled" interrupt pins. Remove someMark Kettenis
#ifdef __i386__ code that can go now things have been cleaned up.
2008-12-22Get rid of many arbitrary differences between the i386 and amd64 mpbios code.Mark Kettenis
Mostly KNF issues, some reorganisation of the code. ok dlg@, deraadt@, krw@
2008-12-22use the exact same policy for choosing apic on all 3 types of kernel.Theo de Raadt
ok kettenis
2008-12-21Change the way we include mpbios code to be similar to what we do on i386.Mark Kettenis
ok deraadt@
2008-12-18Don't set the global bit PG_G for kernel pmap low memory mappings.Kurt Miller
ok deraadt@
2008-12-18use atomic operations to update ptes in pmap_unwire(). okay weingart@Kurt Miller
2008-12-11Kill the $ARCH prefix for isa_dma_cookie. With this change, the i386 andOwain Ainsworth
amd64 isa dma code is identical save for some formatting, and a slight difference in bus_dmamem_alloc. "Die x86_!" krw@.
2008-12-10When booting from a CD on i386/amd64, assume the root filesystemKenneth R Westerback
is on the CD rather than always asking for its location. Behaviour pointed out at OpenCON by Stephan Rickauer. Tested by Stephan. nick@ has no objections. ok deraadt@
2008-12-10both x86 platforms isa bus_dma implementations handle bus_dmamap_syncOwain Ainsworth
incorrectly. The spec (manpage) states that using two PRE or two POST ops together is entirely valid, but mixing pre and post is invalid. The way this was handled before with a switch statement meant that only individual commands actually would be recognised, so move to just checking the commands indidually using "if (op & $command)". Additionally, add a DIAGNOSTIC check and panic for the mixing of pre and post operations (this is done on several other architectures already). tested by several people; thanks! ok dlg@, kettenis@, "the diff made sense" deraadt.
2008-12-07Make acpiprt(4) check whether the current interrupt routing is "possible" andMark Kettenis
pick a new one from the list of possible routings if it isn't or if a pin is currently not routed. Delay re-routing interrupts until we establish a handler for it. This prevents us from messing with unused interrupt pins which may have fatal consequences (some machines spontaniously reboot). The heuristics for picking an interrupt from the list of possibe ones probably needs some tweaking still, but this makes several NVIDIA-based boards work much better than before. tested by many, ok marco@
2008-12-06revert all changes related to the mpsafe intr handler. i screwed up the commitTed Unangst
and even then it didn't work. we have higher standards than this.
2008-12-06not commited, i'm a retardTed Unangst
2008-12-06the not MP version didn't compile, mglocker foundTed Unangst
2008-12-06cvs wouldn't let me check this in beforeTed Unangst
2008-12-06mpsafe intr_establish that doesn't get biglock, so that we may dream of the ↵Ted Unangst
day when this is useful. mostly macro magic that does nothing. only actually useful on amd64 for now, compliments of art.
2008-12-04Fix "fp_save ipi didn't" panic, and move i386/amd64 closer in the process.Tobias Weingartner
Positive test results by a handful of people. Ok kettenis@
2008-12-03Remove the x86 and i386 prefixes to the bus_dma types. It's really quiteOwain Ainsworth
pointless and just makes the code different for no reason. This moves i386 and amd64 bus_dma to being a lot closer to identical. suggestion to just remove the prefix instead of merge them from deraadt@. no objections art@, kettenis@, ok weingart@
2008-12-01terse is good, more readable; please commit deraadt@Todd T. Fries
2008-11-26Enable Bluetooth (btd and btctl are not hooked into the build yet)Uwe Stuehler
2008-11-26Change pci_intr_handle_t to be like i386 where it is a struct that stores theMark Kettenis
tag and pin. Reduces the differences between the two architectures and I need it to fix acpiprt(4)-based interrupt routing. ok toby@, jordan@
2008-11-24Import btsco(4) from NetBSD to work on itUwe Stuehler
2008-11-22Move the drm drivers over from:Owain Ainsworth
vga1 at pci0 inteldrm0 at vga1 to vga1 at pci0 inteldrm0 at vga1 drm0 at inteldrm0 i.e. a similar scheme to audio(4) where the interface attaches on top of the wildly different drivers. This helps to clean up the code a lot (more is coming) and help me start to move drm to being essentially bus independent, which will help in the future.
2008-11-22The last parts of cpu_unidle. i386, amd64 and sparc64Artur Grabowski
In short, make cpu_unidle do what signotify used to do and make signotify use cpu_unidle. Also, include a cpu_unidle in need_resched, it won't change much right now but will be needed in the future.
2008-11-22same change as for amd64. Move bus_space_* functions from inlines andOwain Ainsworth
defines into real functions. since machdep.c is cluttered as it is move them into bus_space.c (like amd64). a later commit will move the stuff from machdep across too. since machdep.c is cluttered as it is move them into bus_space.c (like amd64). a later commit will move the stuff from machdep across too. some shrinkage stats: GENERIC.MP 209.66kb RAMDISK 50.84kb RAMDISKB 50.04kb RAMDISC 36.28kb RAMDISK_CD 168.03kb don't fill it up all at once! claudio found no network performance hit. toby thought the code went looked alright. art@ ok.
2008-11-22Re-enable ACPI PDC support and fetching cpu performance statesGordon Willem Klok
from ACPI for est on amd64. This incorporates a few changes from krw@ to fix minor nits, its unlikely to fix the problems with some machines from acer and dell but lots of machines benefit. ok krw@
2008-11-22potentially com, not pccomTheo de Raadt
2008-11-21de-inline the bus_space_* functions in favour of real functionsOwain Ainsworth
This shaves 135.7kb from amd64 GENERIC.MP. An afternoons worth of testing proved to art, toby and myself that this doesn't slow things down. i386 will follow shortly. ok weingart@
2008-11-21no, amd64 does not have pccom; ok dlg with gleeTheo de Raadt
2008-11-12Add a comment to sigcode() to explain why the use of 'int $0x80' isTobias Weingartner
necessary, so that future hackers will not be mislead the same way I was when looking at this code.