summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2007-06-17amd64/standTheo de Raadt
2007-06-17significantly simplified disklabel infrastructure. MBR handling becomes MITheo de Raadt
to support hotplug media on most architectures. disklabel setup and verification done using new helper functions. Disklabels must *always* have a correct checksum now. Same code paths are used to learn on-disk location disklabels, to avoid new errors sneaking in. Tested on almost all cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
2007-06-14excessive blank lines making the versions differentTheo de Raadt
2007-06-14set the prototype disklabel to version 1Theo de Raadt
2007-06-14do not depend on previous loop variable, use a constant insteadTheo de Raadt
2007-06-12all disksubr.c did their b_flags manipulation differently (and wrong).Theo de Raadt
correct and unify; ok thib miod
2007-06-10Remove spurious blank line at end of file. Spotted by deraadt@.Kenneth R Westerback
2007-06-09The differences in the last non-homogeneous bounds_check_with_label()Kenneth R Westerback
routines (alpha, vax) prove to be not worth keeping. Move bounds_check_with_label() into the MI world. Eliminate unreliable and almost certainly useless checks for overwriting a disklabel. After discussion with deraadt@
2007-06-09unify DOSPTYP_FAT* code (some architectures missed a filesystem type or two)Theo de Raadt
2007-06-09by hand i carefully found that all the differences in setdisklabel()Theo de Raadt
implimentations were simply either missing code, or spacing and such. setdisklabel() can become MI now.
2007-06-09annoying spacing glitch which makes the diffs biggerTheo de Raadt
2007-06-08all disklabels read from the kernel now always contain a total sectorTheo de Raadt
size which is the REAL DISK SIZE. always. if a driver fails to set this right, please fix it. agreed with otto and krw
2007-06-07roller-coaster. The bug that corrupts the page tables is back.Artur Grabowski
So put back the flushg in pmap_release since at least it hides it and I can now reproduce.
2007-06-07Replace magic bus clock constants in est related files with defines.Dimitry Andric
ok jsg
2007-06-07Fix spacing.Dimitry Andric
2007-06-07More bounds_check_with_label homogenization. Fix a couple of typos whileKenneth R Westerback
there. 'so go to it!' deraadt@
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2007-06-06a fair sprinking of knf, code movement, and sometimes character-by-characterTheo de Raadt
accuracy so that the variious disksubr.c's can be compared easier. setdisklabel() starts taking an int for openmask. ok krw, and read by quite a few other people
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-04Use 166.67 and 266.67 for bus_clock and not 166.66 and 266.66,Jonathan Gray
as per recommended values from Intel documentation. ok tedu@
2007-06-03Add a check for Intel Core processors with Scalable Bus Speed of 200 MHz.Jonathan Gray
From NetBSD and verified in Intel doc #253669 ok tedu@
2007-06-02Match on ICH8M.Jonathan Gray
Tested by Daniel Dickman <didickman@gmail.com>
2007-06-02Rename cvtdisklabelv1 -> disklabeltokernlabel. It does more than justKenneth R Westerback
convert version 0 to version 1 disklabels. Suggested by deraadt@. ok deraadt@ otto@
2007-06-01Revert INTEL_82915GM part of tedu's commit as it hung my T43Bjorn Sandell
ok tedu@
2007-06-01some architectures called setroot() from cpu_configure(), *way* before someTheo de Raadt
subsystems were enabled. others used a *md_diskconf -> diskconf() method to make sure init_main could "do late setroot". Change all architectures to have diskconf(), use it directly & late. tested by todd and myself on most architectures, ok miod too
2007-06-01Provide carefully crafted DEADBEEF* values, this was initially forgotten inMiod Vallat
the commit which enabled DEADBEEF* overrides, then values have been discussed a bit more and improved; reminded by and ok art@
2007-05-31It's the time to squash antique bugs. This has been thereTobias Weingartner
for some time. I can't believe it took a re-read for future functionality plus something I wrote and kjell@ saved from '97 for me to find this. ok tom@
2007-05-31Add Bluetooth drivers to GENERIC (not enabled - we still have ways to go)Uwe Stuehler
ok gwk, deraadt
2007-05-31some more pchb that have rnd powers, IDs from NetBSDTed Unangst
2007-05-31Well, whatever the bug was, it does not seem to appear anymore.Artur Grabowski
Remove the workaround. (krw tried to reproduce many, many times)
2007-05-31Forgot to commit the changes to this file with the rest of the ELF32+64Tom Cosgrove
pieces. Since this is where the "boot both ELF32 and ELF64" behaviour is turned on for i386, it is quite important. Bump version numbers too. Found by ckuethe@; thanks.
2007-05-31KNF, whitespace and comment rectification to make allKenneth R Westerback
bounds_check_with_label() routines as identical as possible without changing any code. Code nits and adjustments to come.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31include files.bluetooth here; ok gwkUwe Stuehler
2007-05-31An SDIO Bluetooth driver, only initial bits and therefore not enabled yetUwe Stuehler
2007-05-31Make powernow-k8 on amd64 and i386 use the _PSS object from acpi toGordon Willem Klok
retreive p_state data as spelled out in the amd64 bios and kernel developers guide. This code is still a little rough around the edges but has been tested by myself on a tyan machine and by phessler at theapt dot org on an HP DL145. This diff also takes a first stab and cleaning up the acpicpu dmesg spam. ok tedu, marco
2007-05-31Standardize on -1 as the error return value forKenneth R Westerback
bounds_check_with_label. All callers check for <= 0, so no functional change. Feedback from miod@. ok weingart@
2007-05-30Pull out the ELF loadfile pieces from the standalone libraries, so thatTom Cosgrove
both 32- and 64-bit versions can be created (previously only one or the other could be built for a given boot loader). Use this to allow the i386 and amd64 boot blocks to boot both ELF32 and ELF64 kernels (i.e. amd64 boot blocks can now load i386 kernels, and vice versa). Obviously the system must support LONG mode in order to successfully run the amd64 kernel once it is loaded. Advice and discussions from/with dale@ (going back three years). Much testing nick@ and todd@; thanks.
2007-05-29Improve copyinstr and copyoutstr by performing the check againstTom Cosgrove
VM_MAXUSER_ADDRESS before running the loop rather than for every byte we copy. Saves 4 bytes in locore :) Similar to how this is done on amd64. ok weingart@ art@
2007-05-29add support for core cpu temperature sensors.Ted Unangst
from a diff by pierre riteau, but updated to look like the amd64 version ok deraadt
2007-05-29s/entrace/entrance (not obvious that the code was cut/paste =)Jason Wright
2007-05-29start of dumpconf() unification, which one day we can pray will be MITheo de Raadt
(and part of setroot); ok miod
2007-05-29Die Die Die wt.Kenneth R Westerback
2007-05-29Remove trapwrite(), which was only used by 80386.Tom Cosgrove
Prompted by miod@, thanks.
2007-05-29Remove support for 80386 processors. Apologies if you have one ofTom Cosgrove
the rare 80386-bases system with enough memory, a 387 FPU, a useable disk subsystem, and the patience to wait for it to unpack the distribution .tgz files. approval from art@ and many others (esp. nick@); ok deraadt@
2007-05-29Add global variable apm_attached, machine dependant probe routine for ACPIGordon Willem Klok
will check this flag durring probe, meaning that if the machine has APM ACPI will not attach. This should remove one obstacle on the road to enabling ACPI by default. ok marco, dreaadt, art, krw, art
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
2007-05-29Refactor readdisklabel() to ensure there is a single point of return, inKenneth R Westerback
preparation for translating all disk labels visible to the kernel to the soon to arrive V1 format. ok otto@ deraadt@
2007-05-29Fix compilation of kernels without I686_CPU: piixpcib is alwaysTom Cosgrove
needed (not just for I686_CPU), but it and ichpcib only call the update_cpuspeed functions for I686_CPU. ok tedu@ deraadt@
2007-05-29remove support for many alternative kernel choices -- only try /bsd andTheo de Raadt
not the other stupid names. that feature was retarded. tested on a few architectures by a few people