summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Add igb driver to the default kerneljfv2008-07-301-1/+2
|
* Correct an off-by-one error in the previous change to pmap_change_attr().alc2008-07-281-2/+4
| | | | Change the nearby comment to mention the recursive map.
* Don't allow pmap_change_attr() to be applied to the recursive mapping.alc2008-07-281-1/+1
|
* Style fixes to several function definitions.alc2008-07-271-8/+4
|
* Unbreak cc -pg support on i386. In gcc 4.2, %ecx is used as the arg pointerluoqi2008-07-231-1/+10
| | | | | | | | | | | when stack realignment is turned on (it is ALWAYS on for main), however in a profiling build %ecx would be clobbered by mcount(), this would lead to a segmentation fault when the code tries to reference any argument. This fix changes mcount() to preserve %ecx. PR: bin/119709 Reviewed by: bde MFC after: 1 week
* Correct an error in pmap_change_attr()'s initial loop that verifies that thealc2008-07-181-1/+1
| | | | | | | given range of addresses are mapped. Previously, the loop was testing the same address every time. Submitted by: Magesh Dhasayyan
* Simplify pmap_extract()'s control flow, making it more like the relatedalc2008-07-181-6/+5
| | | | functions pmap_extract_and_hold() and pmap_kextract().
* Update bus_dmamem_alloc()'s first call to malloc() such that M_WAITOK isalc2008-07-151-3/+3
| | | | | | specified when appropriate. Reviewed by: scottl
* Make uart(4) the default serial port driver on i386 and amd64.ed2008-07-132-16/+15
| | | | | | | | | | | The uart(4) driver has the advantage of supporting a wider variety of hardware on a greater amount of platforms. This driver has already been the standard on platforms such as ia64, powerpc and sparc64. I've decided not to change anything on pc98. I'd rather let people from the pc98 team look at this. Approved by: philip (mentor), marcel
* Add HWPMC_HOOKS to GENERIC kernels, this makes hwpmc.ko work outdelphij2008-07-071-0/+1
| | | | of the box.
* In FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPTalc2008-07-071-2/+4
| | | | | | | | | | | | | to vm_page_alloc() instead of VM_ALLOC_SYSTEM. VM_ALLOC_SYSTEM was the logical choice before FreeBSD 7.0 because VM_ALLOC_INTERRUPT could not reclaim a cached page. Simply put, there was no ordering between VM_ALLOC_INTERRUPT and VM_ALLOC_SYSTEM as to which "dug deeper" into the cache and free queues. Now, there is; VM_ALLOC_INTERRUPT dominates VM_ALLOC_SYSTEM. While I'm here, teach pmap_growkernel() to request a prezeroed page. MFC after: 1 week
* Introduce a new lock, hostname_mtx, and use it to synchronize accessrwatson2008-07-051-1/+7
| | | | | | | | | | | | to global hostname and domainname variables. Where necessary, copy to or from a stack-local buffer before performing copyin() or copyout(). A few uses, such as in cd9660 and daemon_saver, remain under-synchronized and will require further updates. Correct a bug in which a failed copyin() of domainname would leave domainname potentially corrupted. MFC after: 3 weeks
* Remove the sbni(4) driver. No one responded to calls to test it onjhb2008-07-041-6/+0
| | | | current@ and stable@.
* Remove the oltr(4) driver. No one responded to calls for testing onjhb2008-07-041-5/+0
| | | | | | | | current@ and stable@ for the locking patches. The driver can always be revived if someone tests it. This driver also sleeps in its if_init routine, so it likely doesn't really work at all anyway in modern releases.
* Remove the arl(4) driver. It is reported to not work on 6.x or laterjhb2008-07-041-5/+0
| | | | | even though the driver hasn't changed since 4.x (last known working release).
* Eliminate an unused declaration. (In fact, the declaration is bogusalc2008-07-041-1/+0
| | | | | | because the variable is defined static to pmap.c on i386.) Found by: CScout
* Remove the unused M_MEMDEV from the kernel.ed2008-06-251-2/+0
| | | | | | | The M_MEMDEV memory allocation pool does not seem to be used. We can live without it. Approved by: philip (mentor)
* Remove the unused major/minor numbers from iodev and memdev.ed2008-06-252-4/+0
| | | | | | | | | Now that st_rdev is being automatically generated by the kernel, there is no need to define static major/minor numbers for the iodev and memdev. We still need the minor numbers for the memdev, however, to distinguish between /dev/mem and /dev/kmem. Approved by: philip (mentor)
* Emit opcodes closer to GNU as(1) generated codes and micro-optimize.jkim2008-06-242-59/+46
|
* Rehash and clean up BPF JIT compiler macros to match AT&T notations.jkim2008-06-232-143/+143
|
* Add et(4), a port of DragonFly's Agere ET1310 10/100/Gigabitdelphij2008-06-201-0/+1
| | | | | | | | Ethernet device driver, written by sephe@ Obtained from: DragonFly Sponsored by: iXsystems MFC after: 2 weeks
* Remove obselete PECOFF image activator support.wkoszek2008-06-142-64/+0
| | | | | | | | PRs assigned at the time of removal: kern/80742 Discussed on: freebsd-current (silence), IRC Tested by: make universe Approved by: cognet (mentor)
* Don't enforce unique device minor number policy anymore.ed2008-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Except for the case where we use the cloner library (clone_create() and friends), there is no reason to enforce a unique device minor number policy. There are various drivers in the source tree that allocate unr pools and such to provide minor numbers, without using them themselves. Because we still need to support unique device minor numbers for the cloner library, introduce a new flag called D_NEEDMINOR. All cdevsw's that are used in combination with the cloner library should be marked with this flag to make the cloning work. This means drivers can now freely use si_drv0 to store their own flags and state, making it effectively the same as si_drv1 and si_drv2. We still keep the minor() and dev2unit() routines around to make drivers happy. The NTFS code also used the minor number in its hash table. We should not do this anymore. If the si_drv0 field would be changed, it would no longer end up in the same list. Approved by: philip (mentor)
* After probing the available frequency settings, restore the CPU to run atjhb2008-05-301-17/+5
| | | | | | | | | | whatever frequency it started at instead of always picking the highest frequency. The first version of this driver attempted to do this, but it set the speed to the first frequency in the list rather than the value it had saved. MFC after: 1 week Discussed with: rpaulo, phk
* Add jme(4) to the list of drivers supported by GENERIC kernel.yongari2008-05-271-0/+1
|
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andbz2008-05-261-230/+0
| | | | | | | | | | | | | | | | | | parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7. This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation Discussed with: rwatson, re
* style fix for newly introduced macro.attilio2008-05-251-1/+1
|
* Restore buildable state. Style ignored.bz2008-05-241-0/+6
| | | | | | | | Leave IDTVEC(ill) where it was unless we compile with KDTRACE_HOOKS[1]. Hide the with DTRACE case case under #ifdef KDTRACE_HOOKS. Suggested by: attilio [1] Reviewed by: attilio
* Add a cyclic hook for DTrace.jb2008-05-241-0/+17
|
* Add the DTrace hooks for exception handling (Function boundary tracejb2008-05-243-2/+140
| | | | -fbt- provider), cyclic clock and syscalls.
* The VM system no longer uses setPQL2(). Remove it and its helpers.alc2008-05-231-298/+0
|
* Use the "options " spelling (vs. "options<TAB>") so that commented linesobrien2008-05-211-3/+2
| | | | line up nicely.
* Add age(4) to the list of drivers supported by GENERIC kernel.yongari2008-05-191-0/+1
|
* Remove the unknown device that is breaking the tinderbox build.jb2008-05-181-2/+0
|
* Retire pmap_addr_hint(). It is no longer used.alc2008-05-181-12/+0
|
* Resort the if_ti driver to match the PCI Network cards instead of placingremko2008-05-171-1/+4
| | | | | | | | | it under the mii devices list. PR: kern/123147 Submitted by: gavin Approved by: imp (mentor, implicit) MFC after: 3 days
* Removed unused assembly offsets for structures digging.attilio2008-05-161-3/+0
|
* Regen.rdivacky2008-05-133-7/+10
| | | | Approved by: kib (mentor)
* Implement robust futexes. Most of the code is modelled afterrdivacky2008-05-132-4/+4
| | | | | | | | | | | what Linux does. This is because robust futexes are mostly userspace thing which we cannot alter. Two syscalls maintain pointer to userspace list and when process exits a routine walks this list waking up processes sleeping on futexes from that list. Reviewed by: kib (mentor) MFC after: 1 month
* Correct an error in pmap_align_superpage(). Specifically, correctlyalc2008-05-111-2/+3
| | | | | handle the case where the mapping is greater than a superpage in size but the alignment of the physical pages spans a superpage boundary.
* Introduce pmap_align_superpage(). It increases the starting virtualalc2008-05-091-0/+23
| | | | | address of the given mapping if a different alignment might result in more superpage mappings.
* enable IEEE80211_DEBUG and IEEE80211_AMPDU_AGE by defaultsam2008-05-031-0/+2
|
* Remove unused variable saved_id16.rpaulo2008-05-021-2/+0
| | | | | | Pointy hat to: me Pointed out by: jhb MFC after: 1 week
* Intel 4965 wireless driver (derived from openbsd driver of the same name)sam2008-04-291-0/+2
|
* Always use PG_PS_FRAME to extract the physical address of a 2/4MB pagealc2008-04-251-9/+10
| | | | from a PDE.
* - Add an integer argument to idle to indicate how likely we are to wakejeff2008-04-252-40/+170
| | | | | | | | | | | | | | | from idle over the next tick. - Add a new MD routine, cpu_wake_idle() to wakeup idle threads who are suspended in cpu specific states. This function can fail and cause the scheduler to fall back to another mechanism (ipi). - Implement support for mwait in cpu_idle() on i386/amd64 machines that support it. mwait is a higher performance way to synchronize cpus as compared to hlt & ipis. - Allow selecting the idle routine by name via sysctl machdep.idle. This replaces machdep.cpu_idle_hlt. Only idle routines supported by the current machine are permitted. Sponsored by: Nokia
* Implement linux_truncate64() syscall.rdivacky2008-04-231-1/+0
| | | | | Tested by: Aline de Freitas <aline@riseup.net> Approved by: kib (mentor)
* Now that all platforms use genclock, shuffle things around slightlyphk2008-04-225-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for better structure. Much of this is related to <sys/clock.h>, which should really have been called <sys/calendar.h>, but unless and until we need the name, the repocopy can wait. In general the kernel does not know about minutes, hours, days, timezones, daylight savings time, leap-years and such. All that is theoretically a matter for userland only. Parts of kernel code does however care: badly designed filesystems store timestamps in local time and RTC chips almost universally track time in a YY-MM-DD HH:MM:SS format, and sometimes in local timezone instead of UTC. For this we have <sys/clock.h> <sys/time.h> on the other hand, deals with time_t, timeval, timespec and so on. These know only seconds and fractions thereof. Move inittodr() and resettodr() prototypes to <sys/time.h>. Retain the names as it is one of the few surviving PDP/VAX references. Move startrtclock() to <machine/clock.h> on relevant platforms, it is a MD call between machdep.c/clock.c. Remove references to it elsewhere. Remove a lot of unnecessary <sys/clock.h> includes. Move the machdep.disable_rtc_set sysctl to subr_rtc.c where it belongs. XXX: should be kern.disable_rtc_set really, it's not MD.
* Multi-bss (aka vap) support for 802.11 devices.sam2008-04-201-2/+0
| | | | | | | | | | | Note this includes changes to all drivers and moves some device firmware loading to use firmware(9) and a separate module (e.g. ral). Also there no longer are separate wlan_scan* modules; this functionality is now bundled into the wlan module. Supported by: Hobnob and Marvell Reviewed by: many Obtained from: Atheros (some bits)
* move awi to the Attic; it will not make the jump to the new world ordersam2008-04-202-2/+0
| | | | Reviewed by: imp
OpenPOWER on IntegriCloud