summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2008-10-09Skip memory areas smaller than 1 MB above the 16 MB boundary to deal withMark Kettenis
buggy ACP BIOSes. Based on a diff from weingart@. ok deraadt@, oga@
2008-10-09replace M_WAITOK with M_NOWAITCharles Longeau
ok krw@ kettenis@
2008-10-09remove a dead store.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok weingart@
2008-10-08uhci(4) at cardbus(4) seems to work (to the same extent that ohci(4) andTheo de Raadt
ehci(4) work; ie. it has the same variety of unplug bugs)
2008-10-06Remove useless comment.Mark Kettenis
2008-10-06remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok weingart@
2008-10-03Backout. kettenis@ has reservations.Tobias Weingartner
2008-10-03Make extra cpu's in DDB not spin in tight loop.Tobias Weingartner
Having them 'hlt' is a good thing, especially where thermal management (acpi, etc) is concerned. They wake up lots due to local tick timer anyhow. ok gwk@
2008-10-01When things get tight, sis(4) loses firstTheo de Raadt
2008-09-29enable JMicron Ethernet (jme/jmphy)Jonathan Gray
2008-09-26Attach agp(4) to the Intel Q35 integrated video.Mike Belopuhov
Tested on ASUS P5E-VM DO motherboard. ok oga
2008-09-17catch up with renamed Nvidia PCI IDChristian Weisgerber
2008-09-15Make this compile if !MULTIPROCESSOR.Mark Kettenis
ok brad@
2008-09-15Make this compile if !MULTIPROCESSOR.Mark Kettenis
ok brad@
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15Martynas Venckus
- provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
2008-09-01Avoid #pragma pack(1) and unify everything towards using __packed.Theo de Raadt
This requires that structures defined within __packed structures must independently request that they themselves become __packed, too. worked on with toby CVS: ----------------------------------------------------------------------
2008-08-19add missing devices to nam2blk[]Theo de Raadt
2008-08-13This tab had bugged me forever.Tobias Weingartner
2008-08-13Disable the fantastics mis-feature on some newer Turion CPUs called C1E.Artur Grabowski
This "power saving" disables the apic when both cpu cores hit the hlt instruction which kills our timer. From FreeBSD.
2008-08-12Fix multiple addition error recently introduced for when extended partitionsTheo de Raadt
are just before an OpenBSD partition in a MBR; done with kettenis & otto ok reyk
2008-08-12Nuke bigmem for release, still has issues.Tobias Weingartner
ok deraadt@
2008-08-06Backout the acpicpu_setpdc code and the code to allow est to use acpicpuGordon Willem Klok
on amd64. Evaluating the _PDC seems to lead to instability (PR5878 and a report by jmc@) on lower end machines its too close to release and I don't have enough nickels. ok deraadt@
2008-08-04fix extended partition support by handling chained EBRs correctlyReyk Floeter
(using a recursion limit). now OpenBSD can be installed in a subsequent DOS/Linux-compatible extended partition. ok krw@ deraadt@
2008-08-02compile inteldrm and radeondrm in GENERIC by default, but disabled.Owain Ainsworth
This will let them get some more testing. Re-order things a little while i'm here. prompted by and ok deraadt@.
2008-07-30enable ix(4) on amd64Reyk Floeter
ok deraadt@
2008-07-28No longer clear ci_want_resched within cpu_switchto(), now that it's doneMiod Vallat
in the MI code.
2008-07-25In gdt_grow, always map the gdt on the secondary cpus too. This farArtur Grabowski
we depended on the pageability of the kernel_map to map them which worked most of the time, until we hit the most improbable case - when cpu_switchto wanted to fault in the missing gdt page, which at this moment is Verboten. kettenis@ ok
2008-07-21- add proper double_t and float_t definitions for each archMartynas Venckus
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@
2008-07-21nam2blk[] needs a "vnd" entry for some things (like softraid)Todd T. Fries
ok marco@ no objection miod@ need this for regress djm@ no objection krw@
2008-07-20no, ipmi is still not fine on some machines (since acpi got enabled)Theo de Raadt
2008-07-18Add a macro that clears the want_resched flag that need_resched sets.Artur Grabowski
Right now when mi_switch picks up the same proc, we didn't clear the flag which would mean that every time we service an AST we would attempt a context switch. For some architectures, amd64 being probably the most extreme, that meant attempting to context switch for every trap and interrupt. Now we clear_resched explicitly after every context switch, even if it didn't do anything. Which also allows us to remove some more code in cpu_switchto (not done yet). miod@ ok
2008-07-18Add new uvm function called uvm_map_pie() which takes align as aKurt Miller
parameter and returns an aligned random load address for position independent executables to use. This also adds three new vmparam.h defines to specify the maximum address, minimum address and minimum allowed alignment for uvm_map_pie() to use. The PIE address range for i386 was carefully selected to work well within the i386 W^X framework. With much help and feedback from weingart@. okay weingart@, miod@, kettenis@, drahn@
2008-07-16Add a new parameter to pckbc_cnattach(): flags to put in the pckbc bowels.Miod Vallat
For now, only one such flag is defined, PCKBC_CANT_TRANSLATE. It hints pckbc that the device does not behave correctly to the ``set translation'' commands. Set this flag if we are running on a Tadpole Ultrabook machine, which needs it. This makes the built-in keyboard work correctly on this laptop (with the help of the software translation pckbd diff). tested & ok kettenis@
2008-07-07Comment correction, actually -> actualBrad Smith
ok henning@
2008-07-07Add AGP and hostbridge support for the Intel 82945GME chipset.Bernd Ahlers
ok jsg@
2008-07-02add CRYPTOTodd T. Fries
ok deraadt@
2008-07-02add softraidTodd T. Fries
ok deraadt@
2008-07-02* Dynamically set the rbus start address. from netbsd.Federico G. Schwindt
* For amd64, remove pcibios traces. * make RBUS_IO_START, RBUS_IO_SIZE, RBUS_MIN_START and RBUS_MEM_SIZE (on i386) configurable via kernel options. * Remove unneeded headers. * Some cleanups. originally reported in pr/5829 and tested by viq <viq at viq dot ath dot cx>. fixes ian@ laptop too. kettenis@ and miod@ agrees that although not perfect, this is the right direction.
2008-07-01Enable FFS2 on most of the larger RAMDISK media.Brad Smith
ok deraadt@
2008-06-30re* at cardbus? 'Put it in' brad@ 'Go for it' deraadt@Ian Darwin
2008-06-29Split k8_powernow_setperf into two functions, the new function calledGordon Willem Klok
k8pnow_transition handles the actual transition, this change is necessitated by some of the ACPI work which can involve dynamic changes in the available states in response to endogenous events such as removing the AC power. This new code is designed to cope with the current operating point not being among the newly available states in which case we recalculate what the current desired performance level coresponds to among the new states. Also fix a screw up with the acpi_states function (fix originally by Markus Hennecke in a diff to tech@ thanks) which resolves PR 5854. Diff tested by numerous people thanks! ok marco@
2008-06-27Clear swap encryption keys before dumping a kernel image.Miod Vallat
2008-06-27More removal of clauses 3 and 4 from NetBSD licenses.Ray Lai
OK deraadt@ and millert@
2008-06-26add bio & bioctl to a couple cd based ramdisksTodd T. Fries
ok deraadt@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-25Support the Intel G35 which apparently works similarly to the 965.Owain Ainsworth
Initial information, half the diff, and testing from Andrew Lutomirski, thanks!
2008-06-25this diff changes the bootloader to skip the CHS sanity check if LBAReyk Floeter
(EDD) is found and OK. it will also fix chainloading into OpenBSD from grub in a few scenarios where grub doesn't report the CHS correctly but the LBA. and we don't need CHS if there is LBA. this has been in the snapshots for a while. with input from weingart@ ok deraadt@
2008-06-25allow to install and boot the OpenBSD A6 partition and disklabel in anReyk Floeter
extended DOS partition. the concept of extended partitions is very simple, it is just another mbr at the partition offset (well, the standard "EBR" is a linked list with a few limitations, but this diff works with both variants). this diff has been in the snapshots for a while. with input from weingart@ and krw@ ok deraadt@
2008-06-24On user/kernel shared page table machines, do not let processes map theirTheo de Raadt
own page 0, as discussed with miod (and many others previously, including art and toby). On sparc, make this __LDPGSZ because PAGE_SIZE is non-constant ok miod tedu
2008-06-23amd64s bus_dma internals use a pointer to a lastaddr variable to keepDavid Gwynne
track of where it was up to when building dmamaps. that lastaddr variable is not initialised every time you start to load a dmamap, so it was using random stack garbage as state when first writing the sg list. fortunately the way it was used meant it was extremely unlikely to cause a problem, but why allow even that possibility? this inits lastaddr to 0 in all the callers of load_buffer. ok miod@