summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix a long-standing bug that had been introduced in rev 1.24 with thejoerg2004-01-071-1/+4
| | | | | | replacement of struct proc by struct thread. This bug could cause a NULL pointer dereferencation under certain circumstances (e. g. while running /etc/rc.d/pcvt).
* Use atomic ops for the interlocked increment and decrement routineswpaul2004-01-072-14/+6
| | | | | | | | in subr_ndis and subr_ntoskrnl. This is faster and avoids potential LOR whinage from witness (an LOR couldn't happen with the old code since the interlocked inc/dec routines could not sleep with a lock held, but this will keep witness happy and it's more efficient anyway. I think.)
* In subr_ndis.c: correct ndis_interlock_inc() and ndis_interlock_dec()wpaul2004-01-072-26/+14
| | | | | | | | | | | | so we increment the right thing. (All work and not enough parens make Bill something something...) This makes the RealTek 8139C+ driver work correctly. Also fix some mtx_lock_spin()s and mtx_unlock_spin()s that should have been just plain mtx_lock()s and mtx_unlock()s. In kern_ndis.c: remove duplicate code from ndis_send_packets() and just call the senddone handler (ndis_txeof()).
* Enable the following TCP options by default to give it more exposure:andre2004-01-064-6/+6
| | | | | | | | | | | | rfc3042 Limited retransmit rfc3390 Increasing TCP's initial congestion Window inflight TCP inflight bandwidth limiting All my production server have it enabled and there have been no issues. I am confident about having them on by default and it gives us better overall TCP performance. Reviewed by: sam (mentor)
* According to RFC1812 we have to ignore ICMP redirects when weandre2004-01-061-1/+5
| | | | | | | | | | are acting as router (ipforwarding enabled). This doesn't fix the problem that host routes from ICMP redirects are never removed from the kernel routing table but removes the problem for machines doing packet forwarding. Reviewed by: sam (mentor)
* Don't bother clearing PG_ZERO in contigmalloc1(), kmem_alloc(), oralc2004-01-062-3/+0
| | | | kmem_malloc(). It serves no purpose.
* Remove `static' prototype from header file.nectar2004-01-061-1/+0
|
* - Use i8259A register defines from shared sys/dev/ic/i8259.h rather thanjhb2004-01-062-67/+20
| | | | | | from the i386-specific icu.h. - Replace PC98 magic numbers with equivalent register define values along with comments about PC-98 "quirks".
* Use i8259A register defines from shared header sys/dev/ic/i8259.h insteadjhb2004-01-062-53/+4
| | | | of from the amd64-specific icu.h.
* Add a header for the i8259A register definitions. This is based onjhb2004-01-061-0/+86
| | | | | | | | | | additions to sys/amd64/isa/icu.h from PIIX4 and other datasheets. I tweaked a few comments based on the NetBSD header of the same name when I merged the constants to sys/i386/isa/icu.h, but the vast majority of this file was created independently by Peter and not taken from any existing files. Submitted by: peter
* Remove the AUTO_EOI_2 option for PC-98 as it has never done anything anywayjhb2004-01-062-8/+0
| | | | and was even commented out in NOTES.
* Use ANSI C function definition for `_mcount' and remove `static'nectar2004-01-061-1/+0
| | | | | | prototype from header file. Discussed with: bde, maybe one year ago
* Allow one to specify the com port settings for boot0sio.obrien2004-01-063-5/+11
|
* Clean up pe_get_message(). Allow the caller to obtain the resourcewpaul2004-01-063-28/+17
| | | | | | flag so that it can see if the message string is unicode or not and do the conversion itself rather than doing it in subr_pe.c. This prevents subr_pe.c from being dependent on subr_ndis.c.
* Remove __P().simokawa2004-01-066-126/+126
|
* Fix register mis-alignment introduced in rev1.12.simokawa2004-01-061-33/+34
|
* - Add pe_get_message() and pe_get_messagetable() for processingwpaul2004-01-067-38/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the RT_MESSAGETABLE resources that some driver binaries have. This allows us to print error messages in ndis_syslog(). - Correct the implementation of InterlockedIncrement() and InterlockedDecrement() -- they return uint32_t, not void. - Correct the declarations of the 64-bit arithmetic shift routines in subr_ntoskrnl.c (_allshr, allshl, etc...). These do not follow the _stdcall convention: instead, they appear to be __attribute__((regparm(3)). - Change the implementation of KeInitializeSpinLock(). There is no complementary KeFreeSpinLock() function, so creating a new mutex on each call to KeInitializeSpinLock() leaks resources when a driver is unloaded. For now, KeInitializeSpinLock() returns a handle to the ntoskrnl interlock mutex. - Use a driver's MiniportDisableInterrupt() and MiniportEnableInterrupt() routines if they exist. I'm not sure if I'm doing this right yet, but at the very least this shouldn't break any currently working drivers, and it makes the Intel PRO/1000 driver work. - In ndis_register_intr(), save some state that might be needed later, and save a pointer to the driver's interrupt structure in the ndis_miniport_block. - Save a pointer to the driver image for use by ndis_syslog() when it calls pe_get_message().
* Merge from DRI CVS. No longer maps the framebuffer into KVA on radeon, r128,anholt2004-01-0612-66/+77
| | | | and mga. MTRR code cleanups. Includes new Radeon and Rage 128 PCI IDs.
* Add pid to the info printed in lockmgr_printinfo. This makes VFSkan2004-01-061-2/+3
| | | | diagnostic messages slightly more useful.
* More style fixes.kan2004-01-051-15/+13
| | | | Obtained from: bde
* - Allow mtx_trylock() to recurse on a recursive mutex. Attempts to recursejhb2004-01-051-5/+11
| | | | | | | | on a non-recursive mutex will fail but will not trigger any assertions. - Add an assertion to mtx_lock() that one never recurses on a non-recursive mutex. This is mostly useful for the non-WITNESS case. Requested by: deischen, julian, others (1)
* style(9):kan2004-01-051-236/+266
| | | | | | | | | | | Add empty line before first code line in functions with no local variables. Properly terminate comment sentences. Indent lines which are longer that 80 characters. Move v_addpollinfo closer to the rest of poll-related functions. Move DEBUG_VFS_LOCKS ifdefed block to the end of file. Obtained from: bde (partly)
* Properly ifdef support for vfs locking assertions based on DEBUG_VFS_LOCKS.kan2004-01-051-27/+37
| | | | Obtained from: bde
* Style fixes:kan2004-01-051-7/+4
| | | | | | | | Remove double empty lines. Add tab after #define's. Properly terminate sentences in comments. Obtained from: bde (mostly).
* MFp4:simokawa2004-01-056-29/+27
| | | | | | | | | | | * firewire - Remove pending list. - Ignore timeout for the FWXF_START state. - Define M_FWMEM for debugging. - Comment out DELAY() in fw_asybusy(). - Improve debugging messages * sbp - Freeze simq while bus reset.
* Add struct definition of the Elan MMCR registers (from jb@)phk2004-01-054-38/+331
| | | | | | | | Put a CTASSERT() on the size of the struct. Use the struct where it is easy to do so in elan_mmcr.c Add the Elan specific hardware reset code (also from jb@).
* Sync to 1.154 of usbdevssanpei2004-01-052-6/+6
|
* fix CANOSCAN -> CanoScansanpei2004-01-051-2/+2
| | | | Submitted by: MIYAO Akio <miyao@affrc.go.jp>
* Attempt to make the proper changes here for the proc.h commit:obrien2004-01-051-5/+5
| | | | | | | | | | | | | | Make sigaltstack as per-threaded, because per-process sigaltstack state is useless for threaded programs, multiple threads can not share same stack. The alternative signal stack is private for thread, no lock is needed, the orignal P_ALTSTACK is now moved into td_pflags and renamed to TDP_ALTSTACK. For single thread or Linux clone() based threaded program, there is no semantic changed, because those programs only have one kernel thread in every process. which left out SVR4 bits.
* Convert to __FBSDID.obrien2004-01-0435-70/+102
|
* Convert to __FBSDID.obrien2004-01-0424-45/+73
|
* MFp4:imp2004-01-042-5/+5
| | | | | | o O2Micro OZ711e1 is now recognized (note: I don't have one, and the current owner of the Dell laptop is reporting problems). o minor nits wrt copyright date.
* Modify if_ndis.c so that the MiniportISR function runs in ndis_intr()wpaul2004-01-044-6/+41
| | | | | | | | | | | | | | | | | | | and MiniportHandleInterrupt() is fired off later via a task queue in ndis_intrtask(). This more accurately follows the NDIS interrupt handling model, where the ISR does a minimal amount of work in interrupt context and the handler is defered and run at a lower priority. Create a separate ndis_intrmtx mutex just for the guarding the ISR. Modify NdisSynchronizeWithInterrupt() to aquire the ndis_intrmtx mutex before invoking the synchronized procedure. (The purpose of this function is to provide mutual exclusion for code that shares variables with the ISR.) Modify NdisMRegisterInterrupt() to save a pointer to the miniport block in the ndis_miniport_interrupt structure so that NdisSynchronizeWithInterrupt() can grab it later and derive ndis_intrmtx from it.
* Simplify the various pager allocation routines by computing the desiredalc2004-01-043-15/+16
| | | | object size once and assigning that value to a local variable.
* Implement NdisScheduleWorkItem() and RtlCompareMemory().wpaul2004-01-044-33/+73
| | | | | Also, call the libinit and libfini routines from the modevent handler in kern_ndis.c. This simplifies the initialization a little.
* This commit was generated by cvs2svn to compensate for changes in r124120,njl2004-01-041-1/+6
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Fix for "UtAllocate: Attempt to allocate zero bytes" warnings on Dellnjl2004-01-041-1/+6
| | | | | | | | | | | | | | | | laptops that resulted in problems reading battery status. Don't copy Buffers, Packages, or Regions in DsStoreObjectToLocal(). Tested by: scottl, sam Submitted by: Luming Yu (Intel)
* | Avoid calling vprint on a vnode while holding its interlock mutex.kan2004-01-041-2/+2
| | | | | | | | | | | | Move diagnostic printf after vget. This might delay the debug output some, but at least it keeps kernel from exploding if DEBUG_VFS_LOCKS is in effect.
* | Cosmetics: strip '\n' from a string passed to Debugger().kan2004-01-041-2/+2
| |
* | Eliminate the acquisition and release of Giant from vnode_pager_alloc().alc2004-01-041-2/+0
| | | | | | | | | | | | The vm object and vnode locking should suffice. Discussed with: jeff
* | In ndis_attach(), report the NDIS API level that the Windows miniportwpaul2004-01-042-5/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | driver was compiled with. Remove debug printf from ndis_assicn_pcirsc(). It doesn't serve much purpose. Implement NdisMIndicateStatus() and NdisMIndicateStatusComplete() as functions in subr_ndis.c. In NDIS 4.0, they were functions. In NDIS 5.0 and later, they're just macros. Allocate a few extra packets/buffers beyond what the driver asks for since sometimes it seems they can lie about how many they really need, and some extra stupid ones don't check to see if NdisAllocatePacket() and/or NdisAllocateBuffer() actually succeed.
* | In smbfs_inactive(), only invalidate the node's attribute cache if wetjr2004-01-041-1/+1
| | | | | | | | had to send a file close request to the server.
* | Make sigaltstack as per-threaded, because per-process sigaltstack statedavidxu2004-01-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | is useless for threaded programs, multiple threads can not share same stack. The alternative signal stack is private for thread, no lock is needed, the orignal P_ALTSTACK is now moved into td_pflags and renamed to TDP_ALTSTACK. For single thread or Linux clone() based threaded program, there is no semantic changed, because those programs only have one kernel thread in every process.
* | Make sigaltstack as per-threaded, because per-process sigaltstack statedavidxu2004-01-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | is useless for threaded programs, multiple threads can not share same stack. The alternative signal stack is private for thread, no lock is needed, the orignal P_ALTSTACK is now moved into td_pflags and renamed to TDP_ALTSTACK. For single thread or Linux clone() based threaded program, there is no semantic changed, because those programs only have one kernel thread in every process.
* | Sync to 1.153 of usbdevssanpei2004-01-032-2/+25
| |
* | Add some ids(not yet support)sanpei2004-01-031-0/+5
| | | | | | | | | | | | | | | | | | [1] EMS PSX Gun controller converter [2] CSR USB Bluetooth Device PR: kern/60378 [1] Submitted by: Samuel Tardieu <sam@rfc1149.net> [1] <jps@scxnet.de> [2]
* | Reduce the scope of Giant in swap_pager_alloc().alc2004-01-031-2/+2
| |
* | Define KERNBUILDDIR again. The RELENG_5_2 tree is stable enough thatimp2004-01-031-0/+1
| | | | | | | | | | | | | | we can turn this back on to start to resolve the issues with the release process. Approved by: scottl
* | Hook the CPU_GEODE option up.phk2004-01-031-0/+4
| | | | | | | | | | This option is mandatory on platforms like the Soekris 4801 because the i8254 hardware is buggy.
* | Add support Sony CLIE PEG-S500C(Palm OS 3.5)sanpei2004-01-031-1/+79
| | | | | | | | Submitted by: Hiroaki Satoh <hsato@iwate-u.ac.jp> [FreeBSD-users-jp 76073]
OpenPOWER on IntegriCloud