summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Get SYSDIR set correctly for building ports.imp2005-02-251-4/+7
| | | | On install, do deinstall reinstall
* Add back 'n' that went missing in last commitimp2005-02-251-1/+1
|
* plug memory leaksam2005-02-251-13/+25
| | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: emax
* Add PVO_FAKE flag to pvo entries for PG_FICTITIOUS mappings, togrehan2005-02-253-42/+75
| | | | | | | avoid trying to reverse-map a device physical address to the vm_page array and walking into non-existent vm weeds. found by: Xorg server exiting
* Correct e-mail address in copyright.wpaul2005-02-251-1/+1
|
* Mods for Xorg server:grehan2005-02-252-6/+113
| | | | | | | | - store assigned PCI addresses at cninit time for later mmap range check - implement set_border to scrub X remnants when switching back to VTYs - implement mmap, only allowing addresses within the range of the console adapter.
* use __target in preference to targetimp2005-02-251-4/+4
|
* avoid sneaky double freesam2005-02-252-2/+10
| | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: scottl
* Apparently, the probe routine in if_ndis_usb.c can be called twicewpaul2005-02-242-9/+9
| | | | | | | | | | for a given device in some circumstances, so move the PDO creation to the attach routine so we don't end up creating two PDOs. Also, when we skip the call to ndis_convert_res() in if_ndis.c:ndis_attach(), initialize sc->ndis_block->nmb_rlist to NULL. We don't explicitly zero the miniport block, so this will make sure ndis_unload_driver() does the right thing.
* Fix style(9) issues with __P removal.imp2005-02-2420-855/+820
| | | | Noticed by: bde
* - Correct one aspect of the driver_object/device_object/IRP framework:wpaul2005-02-2412-25/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when we create a PDO, the driver_object associated with it is that of the parent driver, not the driver we're trying to attach. For example, if we attach a PCI device, the PDO we pass to the NdisAddDevice() function should contain a pointer to fake_pci_driver, not to the NDIS driver itself. For PCI or PCMCIA devices this doesn't matter because the child never needs to talk to the parent bus driver, but for USB, the child needs to be able to send IRPs to the parent USB bus driver, and for that to work the parent USB bus driver has to be hung off the PDO. This involves modifying windrv_lookup() so that we can search for bus drivers by name, if necessary. Our fake bus drivers attach themselves as "PCI Bus," "PCCARD Bus" and "USB Bus," so we can search for them using those names. The individual attachment stubs now create and attach PDOs to the parent bus drivers instead of hanging them off the NDIS driver's object, and in if_ndis.c, we now search for the correct driver object depending on the bus type, and use that to find the correct PDO. With this fix, I can get my sample USB ethernet driver to deliver an IRP to my fake parent USB bus driver's dispatch routines. - Add stub modules for USB support: subr_usbd.c, usbd_var.h and if_ndis_usb.c. The subr_usbd.c module is hooked up the build but currently doesn't do very much. It provides the stub USB parent driver object and a dispatch routine for IRM_MJ_INTERNAL_DEVICE_CONTROL. The only exported function at the moment is USBD_GetUSBDIVersion(). The if_ndis_usb.c stub compiles, but is not hooked up to the build yet. I'm putting these here so I can keep them under source code control as I flesh them out.
* Return BUS_PROBE_DEFAULT instead of 0.imp2005-02-2442-57/+57
|
* Move acpi_perf and acpi_throttle into acpi.ko. Remove the acpi_perfnjl2005-02-244-17/+5
| | | | build structure.
* Bump the maximum number of levels to 64 and add warning messages aboutnjl2005-02-241-5/+15
| | | | what to do to fix reduced functionality if the number of levels is too low.
* Correct an off-by-one error in the number of settings est announces.njl2005-02-241-4/+3
| | | | The extraneous "0" state was not fatal but useless.
* Introduce defines for different levels of match in the bus probe routine toimp2005-02-241-0/+27
| | | | | | | try to standardize values a bit. Discussed on: arch@ MFC After: 3 days
* Regen.jhb2005-02-244-7/+7
|
* Use msync() to implement msync() for freebsd32 emulation. This isn't quitejhb2005-02-241-1/+1
| | | | | | | | right for certain MAP_FIXED mappings on ia64 but it will work fine for all other mappings and works fine on amd64. Requested by: ps, Christian Zander MFC after: 1 week
* Couple of lessons learned during USB driver testing:wpaul2005-02-243-3/+10
| | | | | | | | | | | | | | | | - In kern_ndis.c:ndis_unload_driver(), test that ndis_block->nmb_rlist is not NULL before trying to free() it. - In subr_pe.c:pe_get_import_descriptor(), do a case-insensitive match on the import module name. Most drivers I have encountered link against "ntoskrnl.exe" but the ASIX USB ethernet driver I'm testing with wants "NTOSKRNL.EXE." - In subr_ntoskrnl.c:IoAllocateIrp(), return a pointer to the IRP instead of NULL. (Stub code leftover.) - Also in subr_ntoskrnl.c, add ExAllocatePoolWithTag() and ExFreePool() to the function table list so they'll get exported to drivers properly.
* Split the chip-specific code from the generic Utopia code. This simplifiesharti2005-02-246-923/+1122
| | | | | adding of new physical chips. Now one just needs to add a .h and a .c file for the new chip and add one line to utopia.c for that chip.
* Remove an accidental clearing of the new label pointer on a system Vrwatson2005-02-241-1/+0
| | | | | | message queue, which was introduced during the merge process. Submitted by: Andrew Reisse <areisse at nailabs dot com>
* Fix to support Buffalo HYPERMEMORY.nyan2005-02-242-24/+34
| | | | | Submitted by: Chiharu Shibata MFC after: 3 days
* o Move ifcr_count sanity check up and reject negative values before wemaxim2005-02-241-6/+3
| | | | | | | | | | panic at kmem_alloc() via malloc(9). PR: kern/77748 Submitted by: Wojciech A. Koszek OK'ed by: brooks Security: local DoS, a sample code in the PR. MFC after: 3 days
* Fix long lines in comment introduced in previous commit.glebius2005-02-241-5/+6
|
* Fix problem when master comes up with one interface down, and preemptsglebius2005-02-241-2/+2
| | | | | | | | | | | | mastering on all other interfaces: - call carp_carpdev_state() on initialize instead of just setting to INIT - in carp_carpdev_state() check that interface is UP, instead of checking that it is not DOWN, because a rebooted machine may have interface in UNKNOWN state. Sponsored by: Rambler Obtained from: OpenBSD (partially)
* Revert the first part of revision 1.114 and modify the second part. Onalc2005-02-241-3/+16
| | | | | architectures implementing uma_small_alloc() pages do not necessarily belong to the kmem object.
* plug resource leaksam2005-02-241-0/+1
| | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: scottl
* remove gratuitous null ptr checksam2005-02-241-2/+1
| | | | Noticed by: Coverity Prevent analysis tool
* o nuke duplicate call of dpt_free when dpt_init failssam2005-02-241-3/+1
| | | | | | | o nuke gratuitous null ptr check; softc can never be null in this routine Noticed by: Coverity Prevent analysis tool Reviewed by: mdodd
* move ptr deref's to after null ptr checkssam2005-02-242-4/+8
| | | | Noticed by: Coverity Prevent analysis tool
* the rt parameter to ifa_rtrequest callbacks should always be non-null;sam2005-02-244-10/+4
| | | | | | eliminate grauitous ptr checks that follow ptr deref's Noticed by: Coverity Prevent analysis tool
* change m_adj to reclaim unused mbufs instead of zero'ing m_lensam2005-02-241-2/+4
| | | | | | | | when trim'ing space off the back of a chain; this is indirect solution to a potential null ptr deref Noticed by: Coverity Prevent analysis tool (null ptr deref) Reviewed by: dg, rwatson
* Add locking assertions into vn_extattr_set, vn_extattr_get andcsjp2005-02-241-0/+6
| | | | | | | | vn_extattr_rm. This is meant to catch conditions where IO_NODELOCKED has been specified without the vnode being locked. Discussed with: rwatson MFC after: 1 week
* Drop bzero and shove the responsibility of zeroing the kse upcallcsjp2005-02-241-2/+1
| | | | | | | | | | | object on to the zone allocator. It should be noted that uma_zalloc(9) uses bzero to zero out the object so there probably wont be any real performance benefit. If UMA grows the ability to supply zeroed zones more efficiently in the future, we will not have to modify all the existing consumers. Discussed with: rwatson,julian MFC after: 1 week
* eliminate dead codesam2005-02-231-6/+6
| | | | Noticed by: Coverity Prevent analysis tool
* eliminate dead code and collapse the remaindersam2005-02-231-3/+1
| | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: rwatson
* avoid potential null ptr derefssam2005-02-231-2/+11
| | | | Noticed by: Coverity Prevent analysis tool
* remove dead codesam2005-02-231-4/+0
| | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: silby
* eliminate potential null derefsam2005-02-231-1/+0
| | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: jhb
* Also remove CPU_ENABLE_TCC from the NOTES build.njl2005-02-231-1/+0
|
* Remove the old p4tcc.njl2005-02-231-270/+0
|
* Implement IoCancelIrp(), IoAcquireCancelSpinLock(), IoReleaseCancelSpinLock()wpaul2005-02-232-5/+260
| | | | | | | | | | | | | | and a machine-independent though inefficient InterlockedExchange(). In Windows, InterlockedExchange() appears to be implemented in header files via inline assembly. I would prefer using an atomic.h macro for this, but there doesn't seem to be one that just does a plain old atomic exchange (as opposed to compare and exchange). Also implement IoSetCancelRoutine(), which is just a macro that uses InterlockedExchange(). Fill in IoBuildSynchronousFsdRequest(), IoBuildAsynchronousFsdRequest() and IoBuildDeviceIoControlRequest() so that they do something useful, and add a bunch of #defines to ntoskrnl_var.h to help make these work. These may require some tweaks later.
* Hook p4tcc up to the module build.njl2005-02-231-1/+1
|
* Remove CPU_ENABLE_TCC and hook the cpufreq p4tcc up to the build.njl2005-02-233-8/+1
|
* Import a rewrite of p4tcc for the cpufreq(4) framework. This includesnjl2005-02-231-189/+197
| | | | | | a bugfix of clearing the On-Demand flag when going back to 100%. It has been tested and works on an IBM R32. Note original work done by Ted Unangst and sobomax@.
* Correctly calculate what to do and how to retry a request to a plex whenle2005-02-232-12/+47
| | | | | | | the previous one failed and there are more than one plex in the volume. This could have led to a flood of error messages on the console and probably a deadlock in certain situations.
* - Enable SMP VFS by default on current. More users are needed to turn upjeff2005-02-231-1/+5
| | | | | | | any remaining bugs. Anyone inconvenienced by this can still disable it in the loader. Sponsored by: Isilon Systems, Inc.
* mark timestamp for pending fragmentssam2005-02-231-0/+2
| | | | Noticed by: Jeffrey D. Chung
* According to kern_poll.c, you cannot use DEVICE_POLLING with SMP. Add atrhodes2005-02-233-0/+3
| | | | | | | commen about this in every NOTES file which lists DEVICE_POLLING. PR: 46793 MFC: 1 day
* If a register width is less than 8, assume the BIOS author thought it wasnjl2005-02-231-0/+12
| | | | | in units of bytes and adjust accordingly. This is found at least on the Sony PCG-505BX.
OpenPOWER on IntegriCloud