summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
AgeCommit message (Collapse)Author
2007-01-23Handle not-all-lapics intterupts.Mark Kettenis
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-20"#ifdef is a tool of the weak!"Gordon Willem Klok
Rename pentium_mhz to cpuspeed which is consistant with amd64 making shared ACPI code less nasty. ok marco, deraadt
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-30Oops, didn't mean to increase the default msgbufsize for i386. Noticed by ↵Dimitry Andric
brad, thanks.
2006-11-29Nuke all commons but one, and enable --warn-common in LINKFLAGS.Miod Vallat
2006-11-29Remove all the extern cpu_{id,model,whatever} declarations from mostDimitry Andric
stuff in arch/i386/i386. This should prevent more screwups like the one I did before in ichpcib.c... ok dlg@ kettenis@
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-27commit vesabios for matthieu@Gordon Willem Klok
ok deraadt, "slap it in" miod@
2006-11-26Save misc info (ebx) register from cpuid with eax=1, so we can use itDimitry Andric
later for some identifications. "slap it in" deraadt
2006-11-11Get rid of magic isa and eisa bus numbers in mpbios code. Pave the way forMark Kettenis
alternative sources for interrupt information. ok gwk@, brad@
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-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-25Kill option GPL_MATH_EMULATE.Mark Kettenis
ok deraadt@ and many others.
2006-07-17id tag.Federico G. Schwindt
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-13Kernel virtual mode 8086, currently disabled in GENERIC.Gordon Willem Klok
lots of help at c2k6 and after from toby@, ok toby@, mickey@
2006-06-12Some more improvements to EST:Dimitry Andric
- If an unknown EST CPU is encountered, use the known highest and lowest (and if different, the current) power state to generate a fake power state table on the fly. Thanks to canacar for the idea. - Calculate system bus clock speed before calling est_init(); it is needed to display proper MHz values from MSR values. - Also use the bus clock to identify EST CPU's, which is needed to differentiate e.g. Pentium M 715 and 760, which unfortunately have exactly the same MSR values. - Store power states directly as MSR values. Tested by many, "so when does it go in?" deraadt@
2006-05-29implement reliable microtime on smp (joint work w/ otto):Michael Shalayeff
send a bcast ipi from the cpu0 to all others to timestamp tsc on every clock intr. this way using local tsc provides accurate microtime() measurements. thus gettimeofday test passes now. otto@ deraadt@ ok
2006-05-20add bios_bootmac_t and BOOTARG_BOOTMACTheo de Raadt
2006-05-19Reimplement the Enhanced SpeedStep CPU detection by using theDimitry Andric
quintuplet { vendor, MHz_hi, mV_hi, MHz_lo, mV_lo }, which works much better than parsing the branding string. It also makes it easier to add new models later. Shouldn't break any CPU's which previously worked okay with EST; if there's any trouble, please let me know! Also adds quite a number of VIA C7-M models, and a few more Pentium M models, all from FreeBSD. "go for it" deraadt@
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-09Import global ACPI interrupt code from amd64.Mark Kettenis
ok brad@
2006-05-090x0006 is not a good value for a bit flag, so change it to 0x0008.Tom Cosgrove
Spotted by kettenis@ ok mickey@
2006-05-09Move the sti to after the memory write. We do not want execution ofOtto Moerbeek
this and microtime() to interleave. ok deraadt@ toby@ mickey@
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-05-01Fixup broken mpbios'es on VT8237 and nForce4 chipsets. Fixes interruptMark Kettenis
routing for several integrated devices on those chipsets in GENERIC.MP. ok brad@, mickey@
2006-04-27implement separate PAE pmap that allows access to 64g of physmemMichael Shalayeff
if supported by the cpu(s). currently not enabled by default and not compiled into ramdisks. this grows paddr_t to 64bit but yet leaves bus_addr_t at 32bits. measures are taken to favour dmaable memory allocation from below 4g line such that buffer cache is already allocated form below, pool backend allocator prefers lower memory and then finally bounce buffers are used as last resort. PAE is engaged only if global variable cpu_pae is manually set to non-zero and there is physical memory present above 4g. simplify pcibios address math to use u_long as we always will be in the 32bit space.
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-24Enable profling in asm if either PROF or GPROF is enabled, kernel profilingDale Rahn
builds with GPROF, libraries build with PROF. ok espie, miod
2006-04-14Remove final DUMMY_NOPS vestige of a macro as well.Tobias Weingartner
ok marco@
2006-04-14Nuke DUMMY_NOPS, cleanup.Tobias Weingartner
ok marco@
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-29workaround for intel errata p53 -- follow lapic writes w/ a read; toby@ ↵Michael Shalayeff
kettenis@ ok
2006-03-24move the mp tramp higher to avoid trashing boot args and also to fight ↵Michael Shalayeff
strange memory zeroing happennning on some amd machines; toby@ ok
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-03-15allow for more physmem segments; as required by some dell from dhill@Michael Shalayeff
2006-03-15remove dead macrosMichael Shalayeff
2006-03-14move the kernel 1m up to provide more space for isadma; deraadt@ okMichael Shalayeff
2006-03-13time-bind and lower power in lock spinning and a couple of other ipi loops ↵Michael Shalayeff
by using pause insn; brad@ ok tedu@ ok and feedback krw@ testing
2006-03-12remove IPL_IMP and splimp().Brad Smith
2006-03-07Check for a few additional CPUID flags.Jonathan Gray
ok deraadt@
2006-01-13Make size_t, ssize_t, intptr_t and uintptr_t consistent amongst ourTodd C. Miller
architectures. They are now defined as unsigned long, long, long and unsigned long respectively.
2006-01-12Move to using gdt only (no more ldt in general case) but with a variableTobias Weingartner
limit selector, so that the w^x line can float much more dynamically. Much work done by tom. Tested by various people. Addresses concerns of (Julien Tinnes) <julien ATHOST cr0.org>
2006-01-08Expose struct sigcontext, struct sigstat and struct sigaltstack for XPG4.2Todd C. Miller
2006-01-06Don't redefine SIZE_MAXTodd C. Miller