summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
AgeCommit message (Collapse)Author
2007-03-29Equiv diff to amd64 as was done on i386, bump VM_PHYSSEG_MAX. Amd64 areTobias Weingartner
PCs too... Tested by dlg@ and brad.
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod drahn
2007-02-17Add code to check for the AMD amd64 errata, and correct them whereTom Cosgrove
possible. Taken from NetBSD. ok deraadt@
2007-02-13Check for some CPUID flags found on newer Intel processors.Jonathan Gray
ok tom@ gwk@ krw@
2007-02-11Remove _KERNEL_OPT leftovers.Miod Vallat
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-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).
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-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-11-25sync amd64 to i386 w.r.t. acpi support. Also fix interrupt routing for ↵Niklas Hallqvist
multi-ioapic systems. ok kettenis
2006-11-07Timecounters for amd64. Diff by art@, tested by many. ok deraadt@Otto Moerbeek
2006-10-28Make sure we call _mcount throught the PLT when generating PIC code.Mark Kettenis
ok drahn@, miod@
2006-10-20Try again with local variable to avoid alignment issues.Kenneth R Westerback
"The dosparts member of cpu_disklabel was not used for any persistant data. Eliminate it, and just use the data being read in while processing MBR and EBR records. Should be no functional change. ok weingart@ deraadt@"
2006-10-18back out disksubr changes ... since they violate strict alignment onTheo de Raadt
some architectures (kaboom); that will be fixed in the next iteration hopefully!
2006-10-17The dosparts member of cpu_disklabel was not used for any persistantKenneth R Westerback
data. Eliminate it, and just use the data being read in while processing MBR and EBR records. Should be no functional change. ok weingart@ deraadt@
2006-10-16Fix some more "is is"s. ok otto@.Tom Cosgrove
2006-10-04Zap bad144 bad sector info in disklabels. Sparsely used if at all forKenneth R Westerback
a few obsolete and easily replaced disk models. And didn't work anyway according to Bob, who has tried. ok beck@
2006-10-01Adjust for change of fpu control word.Mark Kettenis
ok deraadt@
2006-10-01Switch fpu control word to the hardware default. This makes us use 64-bitMark Kettenis
precision instead of 53-bit precision, giving us proper support for "long double". ok deraadt@
2006-07-01Eliminate redundant get_le() in favour of letoh32(). Add letoh32()Kenneth R Westerback
calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR u_int32_t fields dp_size and dp_start. No functional change.
2006-06-26Clean up some inconsistancies in definitions around DOS MBR code. NoKenneth R Westerback
functional change. ok deraadt@
2006-05-20add bios_bootmac_t and BOOTARG_BOOTMACTheo de Raadt
2006-05-19Smbios cleanupGordon Willem Klok
Improve the heuristics a little and extend them to the version and serial number fields. Clean the strings of leading/trailing space and deal with strings which consist entirely of space. Use fixed buffers for strings instead of using pointers into the table. ok deraadt@, and tested by many.
2006-05-10Missing $OpenBSD$ tags.Kenneth R Westerback
2006-05-08Add smbios support for i386 and amd64, fix ipmi to use this new functionallity,Gordon Willem Klok
hook up some sysctls to add system vendor/product/version and UUID reporting. "get it in" deraadt@
2006-04-27from PAE work:Michael Shalayeff
add a BUS_DMA_24BIT flag to signify that dmamap being created is for the isadma use (thus already backed up by the bounce buffers). later also to be used for dmamem allocation.
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-22Fixup broken mpbios'es on VT8237 and nForce4 chipsets. Fixes interruptMark Kettenis
routing for SATA on those chipsets in GENERIC.MP. ok mickey@, brad@.
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-03-15Remove address range KASSERT check in vtopte() and kvtopte(), callers areMiod Vallat
supposed to know which one of the two is applicable when the address is not guaranteed to be a kernel address. ok kettenis@ mickey@
2006-03-15remove dead macrosMichael Shalayeff
2006-03-12remove IPL_IMP and splimp().Brad Smith
2006-03-08Patch from Gordon Klock to update AMD PowerNow K8 support on i386,Uwe Stuehler
and to add amd64 K8 support from FreeBSD.
2006-03-07It does not make sense to check for IA64 CPUID flag here.Jonathan Gray
ok deraadt@
2006-03-01from mickey, like on i386:Theo de Raadt
prioritise <16m memory for isa bus_dma'ble memorble memory allocations why? this is now needed because the nvidia ethernet running with jumbo frames is allocating much more memory, and was robbing isadma of bounce buffers.
2006-02-12Remove dead sysbeep driver and unused sysbeep() routine. No functional change.Miod Vallat
2006-02-05remove useless comment about macros being different from i386Martin Reindl
2006-01-08Expose struct sigcontext, struct sigstat and struct sigaltstack for XPG4.2Todd C. Miller
2006-01-06Don't redefine SIZE_MAXTodd C. Miller
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06Merge machine/ansi.h and machine/types.h into machine/_types.h andTodd C. Miller
rename the types using the __ protected namespace (e.g. __size_t). Idea from FreeBSD.
2005-12-31Split the d_type field of cdevsw entries into d_type and d_flags for clarity.Miod Vallat
Discussed with and ok deraadt@ millert@
2005-12-14convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@Todd C. Miller
2005-12-14Make clock_t consistent across platforms as a 32 bit int. OK deraadt@Todd C. Miller
2005-12-13remove ad clause that got copied from older versions of the files; pto by jsg@Michael Shalayeff
2005-12-13nuke unused BTOPKERNBASE defineMartin Reindl
pointed out by miod@
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@