summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Apply quirk.mjacob2005-04-141-0/+4
| | | | | | PR: 57469 Submitted by: walter@pelissero.de MFC after: 1 week
* Applied conservative version of suggested quirk.mjacob2005-04-141-0/+7
| | | | | | PR: 57468 Submitted by: walter@pelissero.de MFC after: 1 week
* Apply quirk suggested by submitter.mjacob2005-04-141-1/+1
| | | | | | PR: 75486 Submitted by: no_bs@web.de MFC after: 1 week
* The divide by zero panic must have been due to a bogusmjacob2005-04-141-0/+9
| | | | | | | | | period value. I suppose the BT adapter driver should be fixed, but more importantly we should protect against dividing by zero. PR: kern/75603 MFC after: 1 week
* Allow user processes to completely empty out their LDT, now that userpeter2005-04-141-1/+1
| | | | | processes run from segment selectors that live in the GDT. Doing this used to be equivalent to committing suicide, but now this is a NOP.
* - Remove a debugging printf that slipped in.jeff2005-04-131-1/+0
| | | | Spotted by: Peter Wemm
* Change the segment limits to 4GB, we set the user accessible bit on allpeter2005-04-139-67/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the kernel address space already. Intel recommend this anyway, because using a non-4GB limit adds an additional clock cycle to address generation. We were able to install 4GB segments into the LDT, so any limits we imposed on %cs and %ds were academic anyway. More importantly, this allows us to make a page in the kernel readable to user applications, for holding things like the signal trampoline and other fun things. Move the user %cs/%ds segments from the LDT to the GDT. There was no good reason for them to be there anyway. The old LDT entries are still there but we can now relax the restriction that prevented users from emptying the default LDT entries. Putting user and kernel %cs and %ds together allows us to access the fast sysenter/sysexit/syscall/sysret instructions. syscall/sysret in particular require that the user/kernel segments be laid out this way. Reserve a slot specifically for NDIS while here. Create two user controllable slots in the GDT that are context switched with the (kernel) thread. This allows user applications to set two user privilige selectors to arbitary values. Create i386_set_fsbase(void *base) and friends. (get/set, fs/gs). For i386, %gs is used by tls and the thread libraries and this means that user processes no longer have to have the cost of having a custom LDT, and we will no longer to do a ldt switch when activating a kthread/ithread in the usual case any more. In other words, we can now set the base address for %fs and %gs to arbitary addresses without the pain of messing with ldt segments.
* Fix mss byte order, only affects synproxy code path.glebius2005-04-131-0/+2
| | | | | | | Submitted by: John L. Scarfone via OpenBSD Reviewed by: mlaier Obtained from: OpenBSD, rev. 1.483 MFC after: 2 days
* Fix compile error :-(.imp2005-04-131-1/+2
|
* Fix an evil bug that appeared in September 2003. VM86 bios calls use twopeter2005-04-133-4/+4
| | | | | | | | | | | of the __pcb_spare longs. Except that fields were changed and one of the spare values was used and the __pcb_spare field was reduced from two to one long. Now VM86 bios calls can trash the first 4 bytes of the next page following the kernel stack/pcb. This Is Bad(TM). This bug has been present in 5.2-release and onwards, and is still in RELENG_5. Instead of tempting fate and trying to use "spare" fields, explicitly reserve them.
* Test for NULL before use.mdodd2005-04-131-12/+11
| | | | Submitted by: sam (Coverity)
* Add KASSERT() to warn against NULL deref.mdodd2005-04-131-0/+1
| | | | Submitted by: sam (Coverity)
* Use pci_find_bsf() to retrieve the PCI device associated withbms2005-04-131-13/+16
| | | | | | | a bus/device/function tuple. This change enables pciconf(8) to work with CardBus devices. Reviewed by: imp
* The maximum allowable alloc is 16K not (16K-1).julian2005-04-131-1/+1
| | | | | This whole section is actually overly restrictive and another patch is in the works.
* Since cbb implements the pcib_ interface, it must also implement theimp2005-04-131-0/+10
| | | | | | | | pcib_route_interrupt interface. Since there's only one interrupt pin in the CardBus form factor, everybody gets to share it. Implement cbb_route_interrupt to return the interrupt we have. Suggested by: bms
* Default to a interrupt router that returns an invalid interrupt.imp2005-04-131-1/+9
| | | | | | | | | Otherwise, busses that implement the pcib interface that forget to implement pcib_route_interrupt would return EIO, which the caller interprets as 'use interrupt 6'. This is likely the cause of much of the grief that we had when I enabled power modes for the cardbus bridge, since the card needed to reroute the interrupt to it and it was getting 6 which was d by the pccbb sanity checks.
* pmap_update() is gone.cognet2005-04-131-1/+0
|
* Never hardcode /sys into these Makefiles. The proper way to spell it is $S.imp2005-04-139-16/+3
| | | | | | | Also, move the -I stuff to the centralized kern.pre.mk. However, it might be better to add these flags to files.conf. This is a short term fix to fix the broken builds on my machine (I don't have a valid /sys link).
* NG_MKRESPONSE() macro includes sizeof struct ng_mesg when doing allocation.glebius2005-04-131-2/+1
| | | | | PR: kern/79806 Submitted by: Wojciech A. Koszek
* According to the comment in struct tty, t_modem is optional; hence we shouldavatar2005-04-131-2/+4
| | | | | | | | guard against NULL t_modem entry. Otherwise, driver doesn't have t_modem callback implemented(such like sys/dev/usb/ucycom.c) would panic when someone opens the driver's associated tty device. Reviewed by: phk, sam (mentor)
* - Remove ifdef PC98.nyan2005-04-138-1044/+68
| | | | - Reduce diffs from i386.
* Remove a meaningless include.nyan2005-04-132-4/+0
|
* Move pc98 specific parts to the pc98 specific file.nyan2005-04-134-14/+69
|
* Remove ifdef PC98.nyan2005-04-132-25/+0
|
* - Change all filesystems and vfs_cache to relock the dvp once the child isjeff2005-04-1319-64/+39
| | | | | | locked in the ISDOTDOT case. Se vfs_lookup.c r1.79 for details. Sponsored by: Isilon Systems, Inc.
* - Change vop_lookup_post assertions to reflect recent vfs_lookup changes.jeff2005-04-131-12/+2
| | | | Sponsored by: Isilon Systems, Inc.
* - Further simplify lookup; Force all filesystems to relock in the DOTDOTjeff2005-04-131-30/+23
| | | | | | | | | | | case. There are bugs in some which didn't unlock in the ISDOTDOT case to begin with that need to be addressed seperately. This simplifies things anyway. - Fix relookup() to prevent it from vrele()'ing the dvp while the vp is locked. Catch up to other lookup changes. Sponsored by: Isilon Systems, Inc. Reported by: Peter Wemm
* Add #defines for control fields and address bits.mdodd2005-04-131-0/+28
|
* Support for the GTCO Digipad.mdodd2005-04-131-0/+1
|
* Add a ata_setmode method so we dont panic on setmode.sos2005-04-133-4/+40
| | | | | Note that the mode is only set on the device, we (mostly) have no knowledge on how to set mode on the controller if at all possible.
* Make it clear that the statement following the conditional is a NOP.mdodd2005-04-132-2/+4
|
* Follow i386's suit and include AGP support in the generic kernel.anholt2005-04-131-0/+2
|
* Define additional commands.mdodd2005-04-131-0/+15
| | | | Obtained from: Linux
* Whitespace cleanup.mdodd2005-04-135-33/+33
|
* Remove unnecessary dpt_free().mdodd2005-04-131-1/+0
|
* Implement SOUND_MIXER_INFO ioctl in compat layer.mdodd2005-04-131-3/+36
|
* Add support for O_NOFOLLOW and O_DIRECT to Linux fcntl() F_GETFL/F_SETFL.mdodd2005-04-132-0/+21
|
* Invert conditional and use continue to reduce nesting.mdodd2005-04-131-5/+5
|
* Add ISACFGATTR_HINTS flag to allow detection of a device that was createdmdodd2005-04-132-0/+3
| | | | as a result of the hints mechanism.
* Build cpufreq on ia64. The upcoming Montecito processor supports themarcel2005-04-131-0/+1
| | | | | | | | Enhanced SpeedStep (that is, a follow-up of it called Foxton). Until we actually have support for that, we build to catch regressions in the framework. Triggered by: njl
* Invert conditional and use continue to reduce nesting.mdodd2005-04-131-16/+16
|
* Bump __FreeBSD_version for LOCAL_CREDS, LOCAL_CONNWAIT.mdodd2005-04-131-1/+1
| | | | Requested by: marcus
* Provide a sysctl (net.link.tap.user_open) to allow unpriviligedmdodd2005-04-131-3/+12
| | | | | | | acces to tap(4) device nodes based on file system permission. Duplicate the 'debug.if_tap_debug' sysctl under the 'net.link.tap' hierarchy.
* Implement unix(4) socket options LOCAL_CREDS and LOCAL_CONNWAIT.mdodd2005-04-134-16/+129
| | | | | | | | - Add unp_addsockcred() (for LOCAL_CREDS). - Add an argument to unp_connect2() to differentiate between PRU_CONNECT and PRU_CONNECT2. (for LOCAL_CONNWAIT) Obtained from: NetBSD (with some changes)
* Consistently style function declarations in kern_malloc.c.rwatson2005-04-121-23/+7
| | | | MFC after: 3 days
* don't use C keyword register as CPP macro argument nameimp2005-04-121-2/+2
|
* Use PCPU_LAZY_INC() for cnt.v_{intr,trap,syscalls} rather than atomicjhb2005-04-1216-25/+25
| | | | operations in some places and simple non-per CPU math in others.
* Tidy vcnt() by moving a duplicated line above #ifdef and removing a uselessjhb2005-04-121-5/+2
| | | | variable.
* Use NULL rather than 0 in a couple of places.jhb2005-04-121-2/+2
|
* The memory operands to fldcw and ldmxcsr are inputs, not outputs.jhb2005-04-121-2/+2
|
OpenPOWER on IntegriCloud