summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Detect sign-extension bugs in the ioctl(2) command argument: Truncatephk2005-01-181-0/+6
| | | | to 32 bits and print warning.
* Unbreak stack traces across double faults. In a particular edge casejhb2005-01-181-2/+8
| | | | | | | | | | | | (calling a __dead2 function such as panic() at the end of a function), the saved %eip on the stack will actually not be part of the function that executed a call instruction but instead will be the first instruction of the next function in the text. This happens with dblfault_handler() and syscall() for example. Work around this in the one place it matters by looking at the saved %eip - 1 to determine the calling function when we check for "magic" frames. MFC after: 2 weeks
* While we're building kernels -g (ie, makeoptions DEBUG=-g), use -O as itobrien2005-01-181-1/+1
| | | | | | | | | | provides truer debugger stack traces. For those that want to stick with -O2 kernel builds, one should probably add -fno-optimize-sibling-calls so that each stack frame as a frame pointer. It is semi-promissed by the Release Engineers that when RELENG_6 is created we go back to -O2. Desired by: scottl, jhb
* Fix building for non-i386 platforms.sam2005-01-181-4/+7
| | | | Submitted by: Coleman Kane
* MFi386: fix a comment.ru2005-01-171-1/+1
|
* Fix a comment to match reality.ru2005-01-171-1/+1
|
* Rearrange the kninit calls for both directions of a pipe so thatsilby2005-01-171-1/+3
| | | | | | | | | they both happen before pipe backing allocation occurs. Previously, a pipe memory shortage would cause a panic due to a KNOTE call on an uninitialized si_note. Reported by: Peter Holm MFC after: 1 week
* Discontinue zero-length g_ctl arguments as "just give him this pointer"phk2005-01-171-6/+1
| | | | | transfers. The necessary context for calling copyin() isn't available anyway and automatic code-validation chokes on this.
* Go ahead and match on CIS3 and CIS4 strings as well. These are NULLimp2005-01-171-1/+14
| | | | | | | | | for the vast majority of our cards. However, they are critically needed to distinguish different fe based PC Cards (the FMV-182 from the 182A) which need to be treated differently (the ethernet address is loaded not from the standard CIS-based ethernet tuples, but from differing locations in attribute space based on the version string in CIS3. This should have no impact for other users of this function.
* Ups, misprint, change and => add.rik2005-01-161-1/+1
| | | | Submitted by: ru
* Fix a bug I introduced in 1.561 which has caused considerable filesystemphk2005-01-161-5/+5
| | | | | | | | | unhappiness lately. As far as I can tell, no files that have made it safely to disk have been endangered, but stuff in transit has been in peril. Pointy hat: phk
* Fix comment. Code 0x95 means locking shift to codeset 5 according torik2005-01-161-2/+2
| | | | | | | T1.617 AnnexD. Locking shift procedure is described in ANSI T1.607. MFC after: 3 days
* Fix variable name in comment num=>alen. (Lost part of commit rev 1.2)rik2005-01-161-1/+1
| | | | MFC after: 3 days
* Add a new sysctl, hw.sevenseg.freq, to control the update frequency.cognet2005-01-161-1/+6
|
* Erm, don't forget to store the mbuf in the dmamap in bus_dmamap_load_mbuf_sg(),cognet2005-01-161-5/+6
| | | | | so that bus_dmamap_sync() knows what to invalidate. This makes em(4) work again. While I'm there, remove the unused "first" variable.
* - Reduce number of arguments passed to dummynet_io(), we already have cookieglebius2005-01-165-11/+7
| | | | | in struct ip_fw_args itself. - Remove redundant &= 0xffff from dummynet_io().
* Lock the AMR driver:scottl2005-01-165-106/+120
| | | | | | | | | | - Introduce the amr_io_lock to control access to command queues, bio queues, and the hardware. - Eliminate the taskqueue and do all completion processing in the ithread. - Assign a static slot number to each command instead of doing a linear search for free slots each time a command is needed. - Modify the interrupt handler to more closely match what Linux does, for safety.
* Fix kernel builds with INVARIANTS.obrien2005-01-161-1/+1
|
* Use bus_dmamap_load_mbuf_sg() for loading rx buffers.scottl2005-01-151-19/+7
|
* Remove ip_fw.h and ip_dummynet.h from includes.glebius2005-01-151-2/+0
|
* Consider three objects, O, BO, and BBO, where BO is O's backing objectalc2005-01-151-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | and BBO is BO's backing object. Now, suppose that O and BO are being collapsed. Furthermore, suppose that BO has been marked dead (OBJ_DEAD) by vm_object_backing_scan() and that either vm_object_backing_scan() has been forced to sleep due to encountering a busy page or vm_object_collapse() has been forced to sleep due to memory allocation in the swap pager. If vm_object_deallocate() is then called on BBO and BO is BBO's only shadow object, vm_object_deallocate() will collapse BO and BBO. In doing so, it adds a necessary temporary reference to BO. If this collapse also sleeps and the prior collapse resumes first, the temporary reference will cause vm_object_collapse to panic with the message "backing_object %p was somehow re-referenced during collapse!" Resolve this race by changing vm_object_deallocate() such that it doesn't collapse BO and BBO if BO is marked dead. Once O and BO are collapsed, vm_object_collapse() will attempt to collapse O and BBO. So, vm_object_deallocate() on BBO need do nothing. Reported by: Peter Holm on 20050107 URL: http://www.holm.cc/stress/log/cons102.html In collaboration with: tegge@ Candidate for RELENG_4 and RELENG_5 MFC after: 2 weeks
* Convert if_em to the new bus_dmamap_load_sg() interface. The old callbackscottl2005-01-152-39/+22
| | | | was really just a waste of cycles, so this streamlines it considerably.
* Add bus_dmamap_load_mbuf_sg() to alpha.scottl2005-01-152-5/+42
|
* Fix an assignment that I missed in the last commit.scottl2005-01-151-1/+1
|
* Add bus_dmamap_load_mbuf_sg() to powerpc.scottl2005-01-152-0/+32
|
* Add support for KTR_BUSDMA.cognet2005-01-151-6/+43
|
* Add the prototype for bus_dmamap_load_mbuf_sg().cognet2005-01-151-0/+3
| | | | Spotted out by: scottl
* Add bus_dmamap_load_mbuf_sg() to ia64scottl2005-01-152-6/+41
|
* MFi386: add bus_dmamap_load_mbuf_sg().cognet2005-01-151-0/+36
|
* Add the 7 seg display.cognet2005-01-151-0/+1
|
* Add support for the IQ31244 7 seg display.cognet2005-01-154-0/+390
| | | | Obtained from: NetBSD
* Start the license statement with /*-cognet2005-01-151-1/+1
|
* Fix ACLs handling for the root file system.pjd2005-01-151-0/+5
| | | | | | | | | | | | | | | | Without this fix, when ACLs are set via tunefs(8) on the root file system, they are removed on boot when 'mount -a' is called, because mount(8) called for the root file system always add MNT_UPDATE flag and MNT_UPDATE flag isn't perfect. Now, one cannot remove ACLs stored in superblock (configured with tunefs(8)) via 'mount -a' nor 'mount -u -o noacls <file system>', but it is still possible to mount file system which doesn't have ACLs in superblock via 'mount -o acls <file system>' or /etc/fstab's 'acls' option. Reported by: Lech Lorens/pl.comp.os.bsd Discussed with: phk, rwatson Reviewed by: rwatson MFC after: 2 weeks
* Use device_set_desc().cognet2005-01-151-0/+2
|
* Add the i80321 watchdog.cognet2005-01-153-0/+3
|
* Add a driver for the i80321 watchdog.cognet2005-01-151-0/+149
| | | | Obtained from: NetBSD
* If USER of HOSTNAME is set to an empty value, use the fallback value.ru2005-01-151-1/+1
| | | | Submitted by: marck
* Add the bus_dmamap_load_mbuf_sg() function to sparc64.scottl2005-01-153-15/+99
|
* Add a cast to fix a warning.scottl2005-01-151-1/+1
|
* Fix a problem reported by Pierre Beyssac. Sometinmes when ndis_get_info()wpaul2005-01-144-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls MiniportQueryInformation(), it will return NDIS_STATUS_PENDING. When this happens, ndis_get_info() will sleep waiting for a completion event. If two threads call ndis_get_info() and both end up having to sleep, they will both end up waiting on the same wait channel, which can cause a panic in sleepq_add() if INVARIANTS are turned on. Fix this by having ndis_get_info() use a common mutex rather than using the process mutex with PROC_LOCK(). Also do the same for ndis_set_info(). Note that Pierre's original patch also made ndis_thsuspend() use the new mutex, but ndis_thsuspend() shouldn't need this since it will make each thread that calls it sleep on a unique wait channel. Also, it occured to me that we probably don't want to enter MiniportQueryInformation() or MiniportSetInformation() from more than one thread at any given time, so now we acquire a Windows spinlock before calling either of them. The Microsoft documentation says that MiniportQueryInformation() and MiniportSetInformation() are called at DISPATCH_LEVEL, and previously we would call KeRaiseIrql() to set the IRQL to DISPATCH_LEVEL before entering either routine, but this only guarantees mutual exclusion on uniprocessor machines. To make it SMP safe, we need to use a real spinlock. For now, I'm abusing the spinlock embedded in the NDIS_MINIPORT_BLOCK structure for this purpose. (This may need to be applied to some of the other routines in kern_ndis.c at a later date.) Export ntoskrnl_init_lock() (KeInitializeSpinlock()) from subr_ntoskrnl.c since we need to use in in kern_ndis.c, and since it's technically part of the Windows kernel DDK API along with the other spinlock routines. Use it in subr_ndis.c too rather than frobbing the spinlock directly.
* CAM will sometimes remove a disk again even before it finished beingphk2005-01-141-2/+4
| | | | | initialized. We already cancel the pending events but we need to not dereference the geom pointer which never got set different from NULL.
* Bah, another whitespace fix.jhb2005-01-141-1/+1
|
* Remove an extraneous space.jhb2005-01-141-1/+1
|
* Remove redundant code to drop per-thread debug register state fromjhb2005-01-142-14/+1
| | | | | cpu_exit() as this is already performed in cpu_thread_exit() and the debug state is per-thread rather than per-process.
* - Remove some OBE comments regarding cpu_exit(). cpu_exit() is no longerjhb2005-01-144-21/+6
| | | | | | | | the last action of kern_exit(). Instead, it is a MD callout to cleanup per-process state during exit. - Add notes of concern to Alpha and ia64 about the possible need to drop fp state in cpu_thread_exit() rather than in cpu_exit() since it is per-thread state rather than per-process.
* Drop the 'active-' prefix from the polarity printf to be consistent withjhb2005-01-141-1/+1
| | | | the rest of the interrupt code.
* Give up on trying to please everyone and restore 1.64 with regards totrhodes2005-01-141-1/+0
| | | | dealing with sudo users.
* NULL-terminate the . and .. directory entries. Apparently some tools ignorescottl2005-01-141-0/+2
| | | | | | d_namlen and assume that d_name is null-terminated. Submitted by: Andriy Gapon
* Replace the min() macro with a test that doesn't truncate the 64-bit valuesscottl2005-01-141-1/+4
| | | | that are used. Thanks to Bruce Evans for pointing this out.
* make umtx timeout relative so userland can select different clock type,davidxu2005-01-142-56/+55
| | | | | e.g, CLOCK_REALTIME or CLOCK_MONOTONIC. merge umtx_wait and umtx_timedwait into single function.
OpenPOWER on IntegriCloud