summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2007-12-09big patch to simplify pool code.Ted Unangst
remove pool_cache code. it was barely used, and quite complex. it's silly to have both a "fast" and "faster" allocation interface. provide a ctor/dtor interface, and convert the few cache users to use it. no caching at this time. use mutexes to protect pools. they should be initialized with pool_setipl if the pool may be used in an interrupt context, without existing spl protection. ok art deraadt thib
2007-12-05Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)Theo de Raadt
before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly others. ok kettenis
2007-12-01Don't be lazy in the locking in SYSCALL_DEBUG code.Artur Grabowski
KERNEL_PROC_UNLOCK is not safe for recursion (becuase it clears P_BIGLOCK) so we have to make that lock conditional as well. Found by tholo@ when reviewing the i386 diff.
2007-11-30Define NORMAL_C_NOP everywhere.Miod Vallat
2007-11-29outdated commentTheo de Raadt
2007-11-27Implement the NOLOCK semantics. MPSAFE will have to wait a while untilArtur Grabowski
we decide how to handle interrupts. deraadt@ ok
2007-11-27ARGH. Work has poisoned my mind. KNF the braces.Artur Grabowski
2007-11-27Unify amd64 and i386 code further; ok oga kettenisTheo de Raadt
2007-11-26Like i386 - make the __mp_lock not spin at splhigh.Artur Grabowski
deraadt@ ok
2007-11-26First step towards unifying pchb between i386 and amd64Theo de Raadt
Light testing, mostly mechanical
2007-11-26Move the implementation of __mp_lock (biglock) into machine dependentArtur Grabowski
code. At this moment all architectures get the copy of the old code except i386 which gets a new shiny implementation that doesn't spin at splhigh (doh!) and doesn't try to grab the biglock when releasing the biglock (double doh!). Shaves 10% of system time during kernel compile and might solve a few bugs as a bonus. Other architectures coming shortly. miod@ deraadt@ ok
2007-11-26correct newlines surrounding the sub-bus configuration, and unifyTheo de Raadt
pchb's further ok reyk oga
2007-11-26fix new agp code on amd64Reyk Floeter
- internal intel graphics semi-agp chipsets need special handling in pchb.c - re-add the i965GM device - use the correct major device id for /dev/agp0 on amd64 (not the i386 one) ok deraadt@
2007-11-25typo; ok miod@Martynas Venckus
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
2007-11-25Make agp attach as a device. This means that many more agp bridgesOwain Ainsworth
actually get detected and attached. Also adds a kernel api for manipulating agp. Enable this on i386 and amd64. "I think you should commit it" deraadt@, ok matthieu. Looked over by several others.
2007-11-25spelling fixes, from Martynas Venckus;Jason McIntyre
2007-11-25Enable et/etphy now it can pass packets both ways.Jonathan Gray
2007-11-25Get rid of the kernel 'libcompat' framework, and instead use conf/files toTheo de Raadt
decide which files must be pulled into the kernel. Also conditionalize the pulling of those files based on the COMPAT_* options.
2007-11-25When available and ACPI is enabled use the ACPI reset methodJonathan Gray
to reboot. This is required for some quirky sis machines and likely others to reboot. Tested by many. 'commit early commit often' deraadt@
2007-11-24enable PCIAGP on amd64, tested for some time now by various peopleReyk Floeter
ok tedu@ oga@
2007-11-16typoMike Belopuhov
ok deraadt
2007-11-16fix the bus_space #define nightmare, so that amd64 and i386 are much moreTheo de Raadt
uniform. as a result shared code like acpi needs less #ifdef's ok marco kettenis
2007-11-16Remove microtime calls and RNG benchmarking from the pchb attachmentMike Belopuhov
code. This is due to the fact that we do timecounter initialization after autoconf(9). ok deraadt
2007-11-16do not make up a device name for interrupts.. give it the dv_xnameTheo de Raadt
2007-11-15enable most acpi functionality by default. now instead of 'enable acpi',Theo de Raadt
you use 'disable acpi' or 'disable apm' withn you encounter problems (depending on which kind of problems). if we work hard enough, this can remain the situation by the time we ship the next release. otherwise, we will re-disable acpi... so let's crackin'
2007-11-15remove the #ifdef ACPI_ENABLE. the EC codepath is either safe enough (andTheo de Raadt
will be improved), or it is unsafe because AML assumes it must be there ok almost everyone
2007-11-15Split CPUID into 2 32 bit fields.Marco Peereboom
ok deraadt
2007-11-15Clarify when smbios added multi core support and add the missing stringMarco Peereboom
designations. ok deraadt
2007-11-15oops, processor structs need to be __packed.Marco Peereboom
prompted by deraadt
2007-11-15Add struct for processors.Marco Peereboom
ok deraadt
2007-11-14Be consistent in db_cmd_loop_done declaration.Miod Vallat
2007-11-12Use isa_intr_establish() to establish the SCI interrupt handler; this makesMark Kettenis
sure that interrupt overrides from the MADT are applied. ok marco@, toby@
2007-11-12fix some problems with lazy fpu context handling:Todd C. Miller
put the "fninit" where it belongs logically deal with XMM exceptions From NetBSD (drochner)
2007-11-06ramdisks should have the same behaviour as GENERICTheo de Raadt
2007-11-05temporary ddb buffers need to be a bit larger on 64 bit systems to cope withMiod Vallat
some radix configurations.
2007-11-03Fix LKM support for amd64.Mike Belopuhov
ok deraadt weingart
2007-11-03Add acpi_acquire_global_lock(), and acpi_release_global_lock toGordon Willem Klok
amd64 the not ghetto architecture. ok toby@
2007-11-03don't spam dmesg with huge, whitespace padded bios strings.Chris Kuethe
ok beck, gwk
2007-11-03change what happens when acpi is enabled to include "relatively safe"Bob Beck
stuff and have acpi actually do something. note acpi is still disabled by default, but now will do more stuff when enabled with config -e/boot -c ok gwk@, weingart@, canacar@, deraadt@
2007-11-01Remove curproc definition. It is supposed to be in proc.h only.Mike Belopuhov
ok kettenis
2007-10-31for now, workaround MP timeout/splhigh/scsi race at reboot time using aTheo de Raadt
delay. will be revisited. ok art
2007-10-29run depend so that SFILES depend on assym.h, which allows them to buildMarc Espie
with make -j on fast SMP boxes. noticed by robert@, input by miod, kettenis, okay toby@, robert@, and tested to work if people build kernels correctly...
2007-10-28get rid of btoc/ctob in favor of atop/ptoaMartin Reindl
2007-10-24Remove idle loop counter.Mike Belopuhov
ok art deraadt
2007-10-24Don't spam the dmesg.Mike Belopuhov
ok deraadt
2007-10-19remove vars from some prototypes.Federico G. Schwindt
2007-10-17replacement for the pctr codebase that can handle amd64 processors asTheo de Raadt
well (in fact, all 4 combinations of codebase and processor) written by Mike Belopuhov and Aleksey Lomovtsev
2007-10-14enable wbngTheo de Raadt
2007-10-13Remove leftovers art forgot to prune...Miod Vallat