summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add support for a new variant of the prism3 that has appaered in theimp2004-03-251-0/+1
| | | | | | | wild. This one is marketed by D-Link model DWL-650, but appears to be a ISL3710P-10 under the hood. Reported by: Brian O'Shea
* Sync to pccarddevs 1.82imp2004-03-251-2/+5
|
* Add a new Intersil card that DLINK is selling as the DWL-650.imp2004-03-251-1/+2
| | | | Reported by: Brian O'Shea
* only do nfs rpc callouts if there is work to do.rees2004-03-254-11/+14
| | | | | Submitted by: kan Approved by: alfred
* Enable splitfs in the Alpha boot loaders.jhb2004-03-251-0/+1
|
* 1. Better handle a return value of EINPROGRESS from bus_dmamap_load.vkashyap2004-03-253-22/+38
| | | | | | | 2. Check for bad return value from twe_map_request in places where there was no checking. Reviewed by: ps
* - In subr_ndis.c:ndis_init_event(), initialize events as notificationwpaul2004-03-252-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | objects rather than synchronization objects. When a sync object is signaled, only the first thread waiting on it is woken up, and then it's automatically reset to the not-signaled state. When a notification object is signaled, all threads waiting on it will be woken up, and it remains in the signaled state until someone resets it manually. We want the latter behavior for NDIS events. - In kern_ndis.c:ndis_convert_res(), we have to create a temporary copy of the list returned by BUS_GET_RESOURCE_LIST(). When the PCI bus code probes resources for a given device, it enters them into a singly linked list, head first. The result is that traversing this list gives you the resources in reverse order. This means when we create the Windows resource list, it will be in reverse order too. Unfortunately, this can hose drivers for devices with multiple I/O ranges of the same type, like, say, two memory mapped I/O regions (one for registers, one to map the NVRAM/bootrom/whatever). Some drivers test the range size to figure out which region is which, but others just assume that the resources will be listed in ascending order from lowest numbered BAR to highest. Reversing the order means such drivers will choose the wrong resource as their I/O register range. Since we can't traverse the resource SLIST backwards, we have to make a temporary copy of the list in the right order and then build the Windows resource list from that. I suppose we could just fix the PCI bus code to use a TAILQ instead, but then I'd have to track down all the consumers of the BUS_GET_RESOURCE_LIST() and fix them too.
* Connect ctau driver (Cronyx-Tau/ISA) to modules build process.rik2004-03-251-0/+2
| | | | Approved by: imp (mentor)
* Remove unused function.pjd2004-03-252-11/+0
| | | | It was used in FreeBSD 4.x, but now we're using cr_canseesocket().
* This commit was generated by cvs2svn to compensate for changes in r127403,des2004-03-251-22/+26
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import the original directly from NetBSD instead of via OpenBSD.des2004-03-251-22/+26
| |
* | Untangle IP multicast routing interaction with delayed payload checksums.ru2004-03-251-13/+3
| | | | | | | | | | | | | | | | | | | | Compute the payload checksum for a locally originated IP multicast where God intended, in ip_mloopback(), rather than doing it in ip_output() and only when multicast router is active. This is more correct as we do not fool ip_input() that the packet has the correct payload checksum when in fact it does not (when multicast router is inactive). This is also more efficient if we don't join the multicast group we send to, thus allowing the hardware to checksum the payload.
* | - In kern_ndis.c, implement ndis_unsched(), the complement to ndis_sched(),wpaul2004-03-252-28/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | which pulls a job off a thread work queue (assuming it hasn't run yet). This is needed for KeRemoveQueueDpc(). - In subr_ntoskrnl.c, implement KeInsertQueueDpc() and KeRemoveQueueDpc(), to go with KeInitializeDpc() to round out the API. Also change the KeTimer implementation to use this API instead of the private timer callout scheduler. Functionality of the timer API remains unchanged, but we get a couple new Windows kernel API routines and more closely imitate the way thing works in Windows. (As of yet I haven't encountered any drivers that use KeInsertQueueDpc() or KeRemoveQueueDpc(), but it doesn't hurt to have them.)
* | MFi386: correctly calculate the top-of-stack when a kthread is createdpeter2004-03-251-3/+4
| | | | | | | | with a larger kernel stack.
* | Run print_AMD_features() for both AuthenticAMD and GenuineIntel cpus.peter2004-03-251-5/+43
| | | | | | | | | | | | Report the %ecx bits in cpuid function 1. This is a hack. When reporting AMD Features, only mask off the common bits. Otherwise the SEP bit masks off SYSCALL etc in the report.
* | Add NTFS since many may want to dual-boot MS-Win64 w/FreeBSD.obrien2004-03-251-0/+1
| |
* | Lets give -O2 kernels a try on sparc64.obrien2004-03-251-1/+1
| | | | | | | | Reviewed by: kensmith
* | Use uiomove_fromphys() instead of pmap_qenter() and pmap_qremove() inalc2004-03-241-9/+1
| | | | | | | | proc_rwmem().
* | Properly reprogram the hardware when IFF_ALLMULTI flag is set.ru2004-03-241-0/+3
| |
* | sppp (4) to netgraph (4) node. As always: I'l connect it to therik2004-03-243-0/+491
| | | | | | | | | | | | | | system after extra check. Approved by: imp (mentor) Approved by: julian (in general)
* | Conform to local file sytle and prefer (a && (b & flag)).imp2004-03-241-1/+1
| |
* | Don't duplicate a packet, just to throw it away when we discover thejulian2004-03-241-1/+1
| | | | | | | | duplicat hook is not connected.
* | The ndis_wlan_bssid_ex structure we retrieve in ndis_get_assoc() iswpaul2004-03-241-5/+11
| | | | | | | | | | | | | | | | | | | | variable length, so we should not be trying to copy it into a fixed length buffer, especially one on the stack. malloc() a buffer of the right size and return a pointer to that instead. Fixes a crash I discovered when testing whe a Cisco AP in infrastructure mode, which returns several information elements that make the ndis_wlan_bssid_ex structure larger than expected.
* | Fix a bug introduced in rev 1.33(mega API change).simokawa2004-03-241-1/+1
| | | | | | | | | | | | | | Because xfer->send.payload is a pointer to the buffer, '&' shouldn't be there. Submitted by: John Weisgerber <weisgerberj@gsilumonics.com> PR: misc/64623
* | Correct the boundary parameter to the bus_dma_tag_create() calls (it wastmm2004-03-231-2/+2
| | | | | | | | | | | | | | (1 << 24) - 2 instead of 1 << 24, which it was obviously intended to be). This fixes SBus isp(4)s on sparc64 machines. Report and testing: Marius Strobl <marius@alchemy.franken.de>
* | Correct the termination condition of the DVMA pruning loop intmm2004-03-231-7/+7
| | | | | | | | | | | | | | | | iommu_dvma_vallocseg(), which I botched in r1.32. This bug could cause an endless loop when a map was loaded and DVMA was scarce, or that map had a stringent alignment or boundary. Report and additional testing: Marius Strobl <marius@alchemy.franken.de>
* | Intitialize the frame pointer and return pc of a new process createdtmm2004-03-231-0/+2
| | | | | | | | | | | | | | | | | | in cpu_fork(). This prevents the stack tracer from running past the end of the stack (only the pc is checked in that case), which became fatal when db_print_backtrace() was introduced and called outside of ddb. Additional testing: kris
* | Enable interrupt preemption on Alpha. Previously, flipping this switch onjhb2004-03-231-1/+10
| | | | | | | | | | | | | | | | | | | | | | caused hangs on SMP systems under load. My theory was that an interrupted thread was migrating and returning to PAL on a different CPU and that that caused the hangs. To prevent this, I used the recently added sched_pin() API to pin the interrupted thread to the CPU that received the interrupt across ithread_schedule() to prevent migration. This seems to have fixed the hangs based on tests by several folks on the alpha@ list. Tested by: wilko, tisco, several others on alpha@
* | Recently I realized that the ADMtek 8211 driver wasn't working correctlywpaul2004-03-231-3/+4
| | | | | | | | | | | | | | | | | | | | (NIC would claim to establish a link with an ad-hoc net but it couldn't send/receive packets). It turns out that every time the checkforhang handler was called by ndis_ticktask(), the driver would generate a new media connect event. The NDIS spec says the checkforhang handler is called "approximately every 2 seconds" but using exactly 2 seconds seems too fast. Using 3 seconds makes it happy again, so we'll go with that for now.
* | Add an implementation of uiomove_fromphys() for PowerPC. Thisalc2004-03-233-0/+263
| | | | | | | | | | | | implementation uses the direct virtual-to-physical mapping. Discussed with: grehan
* | Do not copy vm_exitingcnt to the new vmspace in vmspace_exec(). Copyingtjr2004-03-231-1/+2
| | | | | | | | | | it led to impossibly high values in the new vmspace, causing it to never drop to 0 and be freed.
* | Change the !MPSAFE boot string to something that doesn't potentiallyobrien2004-03-231-1/+1
| | | | | | | | scare users that the kernel won't run on MP systems.
* | Emit a traceback when witness_trace is set and witness_warn() isalfred2004-03-231-0/+2
| | | | | | | | | | | | | | called and triggers (typically caused by sleeping with a non-sleepable lock). Reviewed by: jhb
* | Remove another case of grabbing Giant before doing a kthread_exit()wpaul2004-03-221-1/+0
| | | | | | | | which is now no longer needed.
* | Rather than display which interrupts are MPSAFE, display those that aren't.obrien2004-03-221-1/+3
| | | | | | | | | | This way we can take stock of the work to be done. boot -v will note those interrupts that are MPSAFE.
* | Use the correct length for appending an extended irq resource. This maynjl2004-03-221-1/+1
| | | | | | | | have broken APIC routing. This bug has been present since rev 1.33.
* | Shorten some printfs to fit better. No other functional changes.njl2004-03-221-6/+6
| |
* | Whitespace and comment changes. No MD5 change to the object file.njl2004-03-221-53/+62
| |
* | Revert 1.22. Go back to "FreeBSD" as our _OS value. Since we now supportnjl2004-03-221-9/+2
| | | | | | | | | | _OSI, we can claim compatibility with MS products without claiming to BE one. :-)
* | Bump FreeBSD version to indicate new bus_alloc_resource_any API.njl2004-03-221-1/+1
| |
* | I'm a dumbass: the test in the MOD_SHUTDOWN case in ndis_modevent()wpaul2004-03-221-1/+1
| | | | | | | | that checks to see if any devices are still in the devlist was reversed.
* | if_ndis.c no longer depends on either pci or pccard. Also, add anwpaul2004-03-221-1/+2
| | | | | | | | | | | | extra entry for if_ndis_pci.c that depends on cardbus, just to cover all the bases. (I don't think you can have cardbus without PCI, but just in case...)
* | Lock down global variables in if_gre:rwatson2004-03-223-9/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add gre_mtx to protect global softc list. - Hold gre_mtx over various list operations (insert, delete). - Centralize if_gre interface teardown in gre_destroy(), and call this from modevent unload and gre_clone_destroy(). - Export gre_mtx to ip_gre.c, which walks the gre list to look up gre interfaces during encapsulation. Add a wonking comment on how we need some sort of drain/reference count mechanism to keep gre references alive while in use and simultaneous destroy. This commit does not lockdown softc data, which follows in a future commit.
* | Use ' rather than ".obrien2004-03-221-1/+1
| | | | | | | | Submitted by: ru
* | Lock down global variables in if_gif:rwatson2004-03-221-9/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add gif_mtx, which protects globals. - Hold gif_mtx around manipulation of gif_softc_list. - Abstract gif destruction code into gif_destroy(), which tears down a softc after it's been removed from the global list by either module unload or clone destroy. - Lock gif_called, even though we know gif_called is broken with reentrant network processing. - Document an event ordering problem in gif_set_tunnel() that will need to be fixed. gif_softc fields not locked down in this commit.
* | Move "called", a static function variable used to detect recursiverwatson2004-03-221-4/+11
| | | | | | | | | | | | | | processing with gif interfaces, to a global variable named "gif_called". Add an annotation that this approach will not work with a reentrant network stack, and that we should instead use packet tags to detect excessive recursive processing.
* | MFi386: revision 1.480.nyan2004-03-221-0/+1
| |
* | Remove some netbsd debug code that crept into rev 1.116ps2004-03-222-8/+0
| |
* | Add an implementation of uiomove_fromphys() to sparc64. Thisalc2004-03-222-0/+147
| | | | | | | | | | | | implementation could be characterized as a hybrid of the amd64 and i386 implementations. Specifically, the direct virtual-to-physical mapping is used if possible and sf_buf_alloc() is used if the direct map cannot.
* | Rename 'ddpcb' variable to 'ddpcb_list' to better distinguish it fromrwatson2004-03-223-8/+8
| | | | | | | | 'struct ddpcb'.
OpenPOWER on IntegriCloud