summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2007-02-09simplify the argument passing (use a pointer to bus_dma_segment_t insteadJason Wright
of separate addr/len pairs).
2007-02-09according to the errata, invalid pages shouldn't be used. Always makeJason Wright
sure a page is mapped at every location (a page is already reserved for just this occaision). And no, this doesn't fix it.
2007-02-06define the bio(4) cdev stuff in conf.h, rather than having a per machineDavid Gwynne
definition. switch amd64 and i386 to the conf.h version, and add it to macppc. original diff ok gwk@ tweaks and ok miod@
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
right now that are supposed to be atomic with respect to interrupts and SMP: atomic_setbits_int and atomic_clearbits_int. All architectures other than i386 and amd64 get dummy implementations since at first we'll be replacing operations that are done with "a |= bit" and "a &= ~bit" today. More proper implementations will follow kettenis@, miod@ ok
2007-02-04Add zyd to cd ramdisksJonathan Gray
ok deraadt@
2007-02-03Don't spoof an msdosfs partition if it claims to start after the endKenneth R Westerback
of the disk. Fixes the creation of spurious 'i' partitions on new iPod Shuffle. And other devices with no MBR, just a FAT32 filesystem. Pointed out most recently by Stephan A. Rickauer for his sixth generation, clip-on iPod shuffle. Fix tested by Stephan. ok pedro@ tom@ miod@ 'nice' deraadt@
2007-02-03Remove unused functionality from lockmgr():Miod Vallat
- LK_EXCLUPGRADE is never used. - LK_REENABLE is never used. - LK_SETRECURSE is never used. Because of this, the lk_recurselevel field is always zero, so it can be removed to. - the spinlock version (and LK_SPIN) is never used, since it was decided to use different locking structure for MP-safe protection. Tested by many
2007-02-01When doing signotify, check if we're notifying a process on anotherArtur Grabowski
cpu and if we do, send it an IPI that will force to get into the kernel and process the AST. This makes signals to processes on other CPUs to be actually delivered as soon as possible instead of some time in the future when some interupt happens. heavy testing by krw@, miod@ ok (in principle, since he doesn't do amd64)
2007-02-01Rename the MICROSET IPI we inherited from NetBSD to simply NOP sinceArtur Grabowski
it doesn't do anything (other than poking into the kernel a processing ASTs).
2007-01-27Only allow a single instance of acpimadt(4).Mark Kettenis
2007-01-24Actually establish interrupt handler in !ioapic_cold case.Mark Kettenis
ok marco@
2007-01-24Check nioapics to see whether we're using I/O APICs.Mark Kettenis
ok marco@
2007-01-22Add acpidock here too.Michael Knudsen
Gently reminded by marco (``AMD64!'').
2007-01-15ansi/deregisterJonathan Gray
2007-01-12Switch some lockmgr locks to rwlocks.Artur Grabowski
In this commit: - gdt lock on amd64 - sysctl lock - malloc sysctl lock - disk sysctl lock - swap syscall lock miod@, pedro@ ok (and "looks good" others@)
2007-01-02Issue the BIOS "check for keystroke" call before "get keystroke", asTom Cosgrove
now required on i386 for Intel Macs. Bump versions of boot, cdboot and pxeboot accordingly. Reminded by deraadt@.
2006-12-29Fix another 'tripple' (not surprising, since this was copied from theTom Cosgrove
i386 code that I fixed earlier). Noticed by Gregory Steuck (greg (at) nest (dot) cx); thanks.
2006-12-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
2006-12-20Decalre extern int cpuspeed in sys/arch/amd64/include/cpu.h like cpuspeedGordon Willem Klok
is declared in the equivalent file on i386 and delete the repeticious declarations already scattered in a few places. Thanks to Will Backman for letting me test this on his machine, ok mk@
2006-12-20acpi fits when we decide that it is more important than ahc(4) adaptecTheo de Raadt
scsi support (note that ahd was never even there...).
2006-12-20rum fitsTheo de Raadt
2006-12-15acpi can fit onto the cd ramdisksTheo de Raadt
2006-12-14Make pci subsystem aware of domains. Each host bridge gets assigned a uniqueMark Kettenis
domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
2006-12-14Swizzle interrupts for devices for which we don't have explicit inetrruptMark Kettenis
routing information.
2006-12-12Complete gwk's previous patch to stop setperf methods from returningDimitry Andric
errors to userland: make all cpu_setperf functions return void. Tested by many, ok gwk@
2006-12-09Like the earlier change to powernow-k7.c check for both the regular cpuidGordon Willem Klok
signature AND the AMD extended cpuid 0x800000001 (%eax). Tested by, krw@, Joerg Niendorf <joerg.bsd AT internode.net.au> and steven mestdagh <steven.mestdagh AT esat.kuleuven.be> ok dim@
2006-12-06starfire ethernet works here nowMartin Reindl
2006-11-29Add commented out ips here as well.Alexander Yurchenko
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-11-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
2006-11-29Only establish acpi interrupt if ACPI_ENABLE.Mark Kettenis
2006-11-27Added support to GENERIC for disabled acpiJordan Hargrave
2006-11-27move uberry to a nicer placeTheo de Raadt
2006-11-26leave name simpleTheo de Raadt
2006-11-26Enable malo(4) for amd64. Tested with a Netgear WG311v3 PCI. FurtherMarcus Glocker
testing needed. ok deraadt@
2006-11-25remove dpt(4) because it sucks.David Gwynne
ok deraadt@
2006-11-25sync amd64 to i386 w.r.t. acpi support. Also fix interrupt routing for ↵Niklas Hallqvist
multi-ioapic systems. ok kettenis
2006-11-17Decide whether we need to attach the primary cpu by checking the CPUF_PRESENTMark Kettenis
flag just like we do on i386.
2006-11-07Timecounters for amd64. Diff by art@, tested by many. ok deraadt@Otto Moerbeek
2006-11-06add gem and gentbi; why notTheo de Raadt
2006-10-31Mention that cdboot won't find boot.conf if you create the CDTom Cosgrove
with 8.3-style filenames. Issue raised by Mikolaj Kucharski, eth0 (at) o2.pl. Jointly written with, and ok, jmc@.
2006-10-30install boot.conf as a section 5 page, not section 8;Jason McIntyre
from mikolaj kucharski; ok mk deraadt krw
2006-10-29The default for swap should be partition 'b' on the same unit as root is,Mark Kettenis
not partition 'b' on unit 0. ok deraadt@
2006-10-29Don't need to 'goto done;' when 'done:' is the next line.Kenneth R Westerback
2006-10-29Remove redundant if (msg) {} block around invocations ofKenneth R Westerback
iso_disklabelspoof() and udf_disklabelspoof(). Use (msg && iso_disklabelspoof()) instead. Makes more arch's textually consistant. No functional change.
2006-10-28We don't currently write a disklabel into an OpenBSD ('A6') DOS MBRKenneth R Westerback
extended partition except on alpha, hppa, hppa64 and mips64. So don't spoof extended partitions as 'a' and try to read a disklabel from them. Make all archs consistant. When we can boot from extended partitions we can change to reading and writing disklabels from them. This means the first OpenBSD ('A6') extended partition will now be ignored during spoofing, just as subsequent ones have always been. Feedback from tom@, weingart@ and deraadt@.
2006-10-28Make sure we call _mcount throught the PLT when generating PIC code.Mark Kettenis
ok drahn@, miod@
2006-10-26Driver for MosChip MCS7703 based USB Serial devices.Jonathan Gray
Support for hardware flow control not yet implemented.
2006-10-24Hook brand new trace function into ddb. Now users can send useful tracesMarco Peereboom
without enabling acpi debug. Usage "machine acpi trace". ok jordan
2006-10-21Don't try to spoof 0 length DOS MBR/EBR partitions. By skippingKenneth R Westerback
partitions with 0 in the length field we don't need to test for and skip partitions that are all zeros. Eliminating that code allows elimination of a local pointer. "0 length partitions are definately dead" deraadt@