summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
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
2007-05-28Revert accidental commit of acpi enabling. don't do that yet.Bob Beck
2007-05-28Maintaining a broken compatibility layer for a broken OS is not a productiveBob Beck
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others in the hackathon room.
2007-05-28bio for all archs, ok krw@ kettenis@ sounds good marco@ go for it deraadt@Todd T. Fries
2007-05-28Move the MSIZE, MCLSHIFT, MCLBYTES and the MCLOFSETThordur I. Bjornsson
mbuf constants from MD param.h to MI param.h. Besides being the same on every arch, things will most probly break if any arch has different values then the others. The NMBCLUSTERS constants needs to be MD though; ok miod@,krw@,claudio@
2007-05-28Flush pmap from tlb before freeing it. Makes Core2Duo boxes moreKenneth R Westerback
stable, but is not a fully-understood or final fix. From and ok art@
2007-05-28Remove #wt0 lines.Kenneth R Westerback
2007-05-28Remove the Archive/Wangtek cartidge tape driver, wt(4). All tapes areKenneth R Westerback
st(4). ok tom@ deraadt@ jason@
2007-05-27Locore UP can use the same code as MULTIPROCESSOR to access the GDTTom Cosgrove
once we're up and running; similar to what was just committed for machdep.c and pmap.c. ok art@ deraadt@
2007-05-27We don't need to special-case access to the GDT for UP or MP, sinceTom Cosgrove
ci_gdt is set correctly even when ! MULTIPROCESSOR. ok art@ toby@
2007-05-27pagemove() is no longer used.Miod Vallat
2007-05-27We can now access curcpu() members through %fs instead of doing itArtur Grabowski
with the complicated and expensive macros. tom@ ok
2007-05-27Make sure the minaddr hint for uvm_km_suballoc() calls is always initialized.Miod Vallat
ok pedro@
2007-05-27fix another use of MAXNR for rijndaelTed Unangst
2007-05-27back out bio, breaks dlg's sparc64 v215Todd T. Fries
prompted by/ok dlg@ deraadt@
2007-05-27When deciding whether to allocate a bounce buffer, we need one ifTom Cosgrove
we are going to read exactly at 1 MB (i.e. fix an off-by-one that is already correct in the amd64 version of this file). ok toby@