summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When printing the wait status, break it down into a signal and a exit status.dwmalone2002-09-041-4/+10
| | | | | | PR: 41912 Submitted by: Aaron Smith <aaron@mutex.org> MFC after: 2 weeks
* Swap sense of no_v[46]bind variables and rename as v[46]bind_ok -dwmalone2002-09-041-19/+19
| | | | | | | this avoids some double negatives which are a bit difficult to parse. Always tread v[46]bind{,_ok} as booleans.
* Fix parsing of unix domain entries after addition of IPv6 RPC support.dwmalone2002-09-041-38/+39
| | | | | PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Under DIAGNOSTIC, complain if a timeout(9) routine took more than 1msec.phk2002-09-041-4/+23
|
* On the ElanSC520 CPU use general purpose timer#2 as timecounter.phk2002-09-041-0/+19
| | | | | | | | | | | | This is a vast improvement over the i8254, since it is a simple memory load rather than a comples sequence of interrupt blocking, multiple input/output instructions, and wrap-around detection. I have not bothered to time the fundamental timecounter get routine, but gettimeofday(2) is 10% faster with the ELAN timecounte. The downside is that HZ=100 is not enough, 150 or more recommended, I use 250 myself.
* Change the support for AMDs ElanSC520 CPU from being a device driver tophk2002-09-048-94/+63
| | | | | | | | be options CPU_ELAN (NB: Soekris.com users!) It is cleaner this way. We still recognize the cpu on the host-pci bridge.
* Do not employ timecounter hardware if our hz does not support theirphk2002-09-041-2/+10
| | | | correct rewinding.
* Function prototypes don't need 'extern'.jhb2002-09-042-12/+12
|
* Don't let children attach fast interrupts if the parent interrupt is normal.phk2002-09-041-2/+2
| | | | Submitted by: bde
* Make consistent; turn spaces into tabs where there is a mixture.markm2002-09-042-42/+42
|
* Bring back the PUC_FASTINTR option, and implement it correctly so thatphk2002-09-042-2/+13
| | | | | | child devices also know if they are fast or normal. Requested by: bde
* Give up on calling tc_ticktock() from a timeout, we have timeoutphk2002-09-043-4/+9
| | | | | | | | functions which run for several milliseconds at a time and getting in queue behind one or more of those makes us miss our rewind. Instead call it from hardclock() like we used to do, but retain the prescaler so we still cope with high HZ values.
* Add in_hosteq() and in_nullhost() macros to make life of developerssobomax2002-09-041-0/+3
| | | | | | porting NetBSD code a little bit easier. Obtained from: NetBSD
* Sigh. The fix to the suspend code wasn't complete, since the resumescottl2002-09-041-2/+2
| | | | | | | code was broken in the same way. Submitted by: co9@xs4all.nl MFC after: 3 days
* More in the continuing saga of phk vs his strange serial card.imp2002-09-041-80/+20
| | | | | | | | | | | In this installment, we learn that it is bad to access registers that are only defined for mfc cards in the interrupt handler when we do not in fact have a mfc card. For MFC cards, we'll only call the ISR if the this card interrupted bit is set. For non mfc cards (which are basically 90% of pccards in use), we always call the ISR and avoid touching the suspect registers. We always pacify the bit in the MFC case on the off chance that will help in the itnerrupt handler not being registed.
* Alright, fix the problems with the elf loader for the Alpha. It turnsdillon2002-09-041-8/+18
| | | | | | | | | | | | | | | | out that there is no easy way to discern the difference between a text segment and a data segment through the read-only OR execute attribute in the elf segment header, so revert the algorithm to what it was before. Neither can we account for multiple data load segments in the vmspace structure (at least not without more work), due to assumptions obreak() makes in regards to the data start and data size fields. Retain RLIMIT_VMEM checking by using a local variable to track the total bytes of data being loaded. Reviewed by: peter X-MFC after: ASAP
* Fix up a comment.jhb2002-09-041-2/+2
|
* Use resource_list_print_type() instead of duplicating the code injhb2002-09-044-132/+12
| | | | nexus_print_resources().
* - Make pci_load_vendor_data() static and do it during MOD_LOAD instead ofjhb2002-09-043-19/+16
| | | | | | | when the first PCI bus attaches. - Create /dev/pci during MOD_LOAD as well. - Destroy /dev/pci during MOD_UNLOAD (not that you can kldunload pci, but might as well get the code right)
* Use resource_list_print_types() instead of duplicating the code.jhb2002-09-041-40/+4
|
* Die on -D=foo, when parsing options - we can't let someone define (nil).jmallett2002-09-041-0/+2
| | | | MFC after: 3 days
* Deprecate the use of sendmail_enable="NONE" as it adversely affects thegshapiro2002-09-032-5/+21
| | | | | | new rcNG effort. Submitted by: Mike Makonnen <makonnen@pacbell.net>
* Make the text segment locating heuristics from rev 1.121 more reliablepeter2002-09-031-15/+10
| | | | | | | | so that it works on the Alpha. This defines the segment that the entry point exists in as 'text' and any others (usually one) as data. Submitted by: tmm Tested on: i386, alpha
* - Change falloc() to acquire an fd from the process table last so thatjhb2002-09-031-108/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it can do it w/o needing to hold the filelist_lock sx lock. - fdalloc() doesn't need Giant to call free() anymore. It also doesn't need to drop and reacquire the filedesc lock around free() now as a result. - Try to make the code that copies fd tables when extending the fd table in fdalloc() a bit more readable by performing assignments in separate statements. This is still a bit ugly though. - Use max() instead of an if statement so to figure out the starting point in the search-for-a-free-fd loop in fdalloc() so it reads better next to the min() in the previous line. - Don't grow nfiles in steps up to the size needed if we dup2() to some really large number. Go ahead and double 'nfiles' in a loop prior to doing the malloc(). - malloc() doesn't need Giant now. - Use malloc() and free() instead of MALLOC() and FREE() in fdalloc(). - Check to see if the size we are going to grow to is too big, not if the current size of the fd table is too big in the loop in fdalloc(). This means if we are out of space or if dup2() requests too high of a fd, then we will return an error before we go off and try to allocate some huge table and copy the existing table into it. - Move all of the logic for dup'ing a file descriptor into do_dup() instead of putting some of it in do_dup() and duplicating other parts in four different places. This makes dup(), dup2(), and fcntl(F_DUPFD) basically wrappers of do_dup now. fcntl() still has an extra check since it uses a different error return value in one case then the other functions. - Add a KASSERT() for an assertion that may not always be true where the fdcheckstd() function assumes that falloc() returns the fd requested and not some other fd. I think that the assertion is always true because we are always single-threaded when we get to this point, but if one was using rfork() and another process sharing the fd table were playing with the fd table, there might could be a problem. - To handle the problem of a file descriptor we are dup()'ing being closed out from under us in dup() in general, do_dup() now obtains a reference on the file in question before calling fdalloc(). If after the call to fdalloc() the file for the fd we are dup'ing is a different file, then we drop our reference on the original file and return EBADF. This race was only handled in the dup2() case before and would just retry the operation. The error return allows the user to know they are being stupid since they have a locking bug in their app instead of dup'ing some other descriptor and returning it to them. Tested on: i386, alpha, sparc64
* Don't try (and fail) to fchmod /dev/stdout. Revert the manual pagefanf2002-09-032-1/+3
| | | | | | | | to suggest the portable alternative to -p. PR: 42356 Submitted by: Kimura Fuyuki <fuyuki@hadaly.org> MFC after: 1 week
* - Move $FreeBSD$ to the top of the file.jhb2002-09-031-2/+21
| | | | | | | - Fix a few grammar bogons. - Add a small style guide. Reviewed by: bde (a while ago)
* Add some KASSERT()'s to ensure that we don't perform spin mutex ops onjhb2002-09-032-8/+32
| | | | | | sleep mutexes and vice versa. WITNESS normally should catch this but not everyone uses WITNESS so this is a fallback to catch nasty but easy to do bugs.
* Adhere to guidelines when testing for null strings.eric2002-09-031-1/+1
| | | | Submitted by: rwatson
* Remove aic7xxx from the module build framework until all bootstrappinggibbs2002-09-031-1/+0
| | | | issues are resolved.
* nfsd doesn't die on SIGTERM but on SIGUSR1, correct script to kill nfsd withgordon2002-09-031-0/+1
| | | | the right signal.
* Don't need to install the signal trampoline here anymore.jake2002-09-031-1/+0
|
* Install the userland signal trampoline when sigaction is first called,jake2002-09-032-1/+50
| | | | | | | instead of on startup. This fixes binary compatibility of dynamically linked binaries from before the signal code move. Suggested by: wollman (a long time ago)
* In the kernel code, we have the tsleep() call with the PCATCH argument.davidxu2002-09-034-13/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCATCH means 'if we get a signal, interrupt me!" and tsleep returns either EINTR or ERESTART depending on the circumstances. ERESTART is "special" because it causes the system call to fail, but right as it returns back to userland it tells the trap handler to move %eip back a bit so that userland will immediately re-run the syscall. This is a syscall restart. It only works for things like read() etc where nothing has changed yet. Note that *userland* is tricked into restarting the syscall by the kernel. The kernel doesn't actually do the restart. It is deadly for things like select, poll, nanosleep etc where it might cause the elapsed time to be reset and start again from scratch. So those syscalls do this to prevent userland rerunning the syscall: if (error == ERESTART) error = EINTR; Fake "signals" like SIGTSTP from ^Z etc do not normally invoke userland signal handlers. But, in -current, the PCATCH *is* being triggered and tsleep is returning ERESTART, and the syscall is aborted even though no userland signal handler was run. That is the fault here. We're triggering the PCATCH in cases that we shouldn't. ie: it is being triggered on *any* signal processing, rather than the case where the signal is posted to userland. --- Peter The work of psignal() is a patchwork of special case required by the process debugging and job-control facilities... --- Kirk McKusick "The design and impelementation of the 4.4BSD Operating system" Page 105 in STABLE source, when psignal is posting a STOP signal to sleeping process and the signal action of the process is SIG_DFL, system will directly change the process state from SSLEEP to SSTOP, and when SIGCONT is posted to the stopped process, if it finds that the process is still on sleep queue, the process state will be restored to SSLEEP, and won't wakeup the process. this commit mimics the behaviour in STABLE source tree. Reviewed by: Jon Mini, Tim Robbins, Peter Wemm Approved by: julian@freebsd.org (mentor)
* Remove a debug printf.phk2002-09-031-2/+2
| | | | Correctly identify the ARGOSY SP320 dual port serial PCMCIA card.
* Drop another cookie to wet Warners appetite:phk2002-09-031-0/+6
| | | | | We need to call the drivers interrupt function even though the card is not multifunction.
* Fix interrupt registration:phk2002-09-031-10/+3
| | | | | | PUC devices live on pccard or pci so INTR_FAST is never really an option. Don't try to register the interrupt as fast and don't allow the children to do so either.
* Style: fix a function whitespace stuff-up. Remove a debugging printf.phk2002-09-031-2/+3
|
* Style: move a global variable up to the top of the file.phk2002-09-031-3/+2
|
* Don't probe the interrupt on puc(4) attached devices.phk2002-09-031-1/+1
|
* Suggest -p instead of -o /dev/stdout.fanf2002-09-031-1/+1
| | | | PR: 42356
* Remove spurious whitespacefanf2002-09-031-8/+6
|
* - Improve AC97 presence check and move it from fm801_attach() to fm801_probe();sobomax2002-09-031-14/+93
| | | | | | | | - add bus capabilities into the driver, so that it is possible for a radio driver to attach to it to use shared resources of fm801 chip. The radio driver itself will be committed later. MFC after: 1 week
* When installing package from a local file assume that all subsequentsobomax2002-09-031-2/+6
| | | | | | | | autoinstalled dependencies will have the same extension, not just ".tbz". Pointy hat to: obrien X-MFC after: -1 day
* gcc 3.2imp2002-09-031-0/+9
| | | | rm -rf /usr/include/g++ needed to upgrade from 4.6
* Prevent ps(1) from doing idiotic munging of things in a -ofmt= string.jmallett2002-09-031-1/+8
| | | | God I hate the backwards compatability crap here.
* Fix a nasty bug exposed by mktime() when time_t is significantly biggerpeter2002-09-031-0/+6
| | | | | | | than 32 bits. It was trying to figure out things like the day of week of when time_t is roughly 2^62 etc. Make a better guess for the starting point for the binary search that works on both 32 and 64 bit types. I have been using this for a while now.
* Turn off usage of SMP style locking until we sort out CAM.mjacob2002-09-032-21/+72
|
* Make this compilepeter2002-09-031-1/+3
|
* Don't do transition locking (i.e., CAM->MPT->CAM)- Peter claimed that ia64mjacob2002-09-031-0/+10
| | | | | | chokes the chicken with this. Submitted by: wemm@freebsd.org
* Set errno to EILSEQ when invalid multibyte sequences are detectedtjr2002-09-033-3/+14
| | | | (XSI extension to 1003.1-2001).
OpenPOWER on IntegriCloud