summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak fore adapters from POV of warnings.julian2002-02-272-2/+2
| | | | | | Define the atm_dev_free() routine so that its OK to free stuff that is defined as volatile. Note this doesn't FORCE the arguemnts to be volatile, just says that it's not an error if it is..
* Remove now unused struct proc *p.imp2002-02-271-1/+0
| | | | Approved by: jhb
* - Insert a space in the panic() string in order more clearly show thearr2002-02-272-2/+2
| | | | message.
* Add a comment explaining a code change..julian2002-02-271-2/+2
|
* Use thread0.td_ucred instead of proc0.p_ucred. This change is cosmeticjhb2002-02-273-11/+11
| | | | | | and isn't strictly required. However, it lowers the number of false positives found when grep'ing the kernel sources for p_ucred to ensure proper locking.
* - Change namei() to use td_ucred instead of p_ucred.jhb2002-02-273-7/+7
| | | | | - Change the hack in access() that uses a temporary credential to set td_ucred to the temp cred instead of p_ucred.
* - Change unp_listen() to accept a thread rather than a proc as its secondjhb2002-02-271-5/+5
| | | | | argument. - Use td_ucred in unp_listen() instead of p_ucred.
* Fix Giant leakage in several error cases in __semctl().jhb2002-02-271-4/+4
|
* Add a comment about an unlocked access to p_ucred that will go away injhb2002-02-271-0/+1
| | | | the near future.
* Use td_ucred and thus remove now unneeded proc lock acquire and release.jhb2002-02-271-3/+1
|
* Use some black make(1) magic to make pkg_install build even withoutsobomax2002-02-271-0/+5
| | | | | | Makefile.inc in parent directory (e.g. when checked out from cvs as a module). MFC after: 2 weeks
* kill __P.alfred2002-02-271-22/+22
|
* add assertions in the places where giant is required to catch whenalfred2002-02-271-0/+12
| | | | | | | | | | | the pipe is locked and shouldn't be. initialize pipe->pipe_mtxp to NULL when creating pipes in order not to trip the above assertions. swap pipe lock with giant around calls to pipe_destroy_write_buffer() pipe_destroy_write_buffer issue noticed by: jhb
* Add lukemftpd to the mix.obrien2002-02-271-0/+1
|
* Build LukeM's ftpd.obrien2002-02-272-0/+327
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-27117-454/+430
| | | | reference.
* Temporarily lock Giant while we update td_ucred. The proc lock doesn'tjhb2002-02-271-6/+6
| | | | | | | | | | fully protect p_ucred yet so Giant is needed until all the p_ucred locking is done. This is the original reason td_ucred was not used immediately after its addition. Unfortunately, not using td_ucred is not enough to avoid problems. Since p_ucred could be stale, we could actually be dereferencing a stale pointer to dink with the refcount, so we really need Giant to avoid foot-shooting. This allows td_ucred to be safely used as well.
* Put the last added source file in proper order.obrien2002-02-271-1/+1
| | | | (and dcc the committer a dictionary)
* Fix a horribly suboptimal algorithm in the vm_daemon.silby2002-02-2711-34/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | In order to determine what to page out, the vm_daemon checks reference bits on all pages belonging to all processes. Unfortunately, the algorithm used reacted badly with shared pages; each shared page would be checked once per process sharing it; this caused an O(N^2) growth of tlb invalidations. The algorithm has been changed so that each page will be checked only 16 times. Prior to this change, a fork/sleepbomb of 1300 processes could cause the vm_daemon to take over 60 seconds to complete, effectively freezing the system for that time period. With this change in place, the vm_daemon completes in less than a second. Any system with hundreds of processes sharing pages should benefit from this change. Note that the vm_daemon is only run when the system is under extreme memory pressure. It is likely that many people with loaded systems saw no symptoms of this problem until they reached the point where swapping began. Special thanks go to dillon, peter, and Chuck Cranor, who helped me get up to speed with vm internals. PR: 33542, 20393 Reviewed by: dillon MFC after: 1 week
* Adding Boot-loader translationgioria2002-02-271-1/+43
|
* 1) Remove -Wall from Makefile.dwmalone2002-02-279-71/+80
| | | | | | 2) WARNs fixes (rename option to lookup_option to avoid shadowing, rename argv to argv1 to avoid shadowing, const stuff, prototypes, __unused). 3) Remove "register"s.
* Add gem and hme.tmm2002-02-271-0/+5
|
* Add a driver for the Sun GEM (Gigabit) and ERI (100 Mb/s) PCI ethernettmm2002-02-274-0/+2989
| | | | adaptors, ported from NetBSD.
* Motherboard and processor translationgioria2002-02-271-3/+69
|
* Add a driver for the Sun HME PCI/SBus ethernet adaptor, which is onboardtmm2002-02-275-0/+2455
| | | | | | | | in most machines of the Sun Ultra series. This is a port of the NetBSD driver which I enhanced to make use of the gather functionality and the configurable RX buffer offset to avoid copying all received/sent packet (instead, packets will be directly DMAd from mbuf chains and into mbuf clusters now).
* Fix a NULL deref panic in pipe_write, we can't blindly lockalfred2002-02-271-12/+12
| | | | | pipe->pipe_peer->pipe_mtxp because it may be NULL, so lock the passed in pipe's mutex instead.
* Add the following functions/macros to support byte order conversions andtmm2002-02-2732-284/+438
| | | | | | | | | | | | | | | | | | | | | | | | device drivers for bus system with other endinesses than the CPU (using interfaces compatible to NetBSD): - bwap16() and bswap32(). These have optimized implementations on some architectures; for those that don't, there exist generic implementations. - macros to convert from a certain byte order to host byte order and vice versa, using a naming scheme like le16toh(), htole16(). These are implemented using the bswap functions. - stream bus space access functions, which do not perform a byte order conversion (while the normal access functions would if the bus endianess differs from the CPU endianess). htons(), htonl(), ntohs() and ntohl() are implemented using the new functions above for kernel usage. None of the above interfaces is currently exported to user land. Make use of the new functions in a few places where local implementations of the same functionality existed. Reviewed by: mike, bde Tested on alpha by: mike
* Use the updated getcredhostname() function.robert2002-02-273-4/+3
|
* Use the updated getcredhostname() function.robert2002-02-272-5/+2
|
* Make getcredhostname() take a buffer and the buffer's sizerobert2002-02-272-4/+13
| | | | | | | | as arguments. The correct hostname is copied into the buffer while having the prison's lock acquired in a jailed process' case. Reviewed by: jhb, rwatson
* 1) Don't use -Wall in Makefile.dwmalone2002-02-272-32/+34
| | | | | | | 2) Don't compile vendor ID. 3) WARNS=4 fixes (constness, make a global local to avoid shadowing, unused parameters, rename local to avoid shadowing, remove junk after #endif) 4) remove some "register"s.
* - Use the new getcredhostname function in xenix_utsname(),robert2002-02-273-4/+9
| | | | | | ibcs2_getipdomainname(), and ibcs2_utssys(). Reviewed by: phk
* 1) Move FreeBSD ID below vendor ID and don't compile vendor ID.dwmalone2002-02-271-9/+10
| | | | | | 2) Cast some numbers we know to be positive to size_t before we MIN them with the result of a sizeof. 3) Compare result of inet_addr to INADDR_NONE, not -1.
* - Use the new getcredhostname function in the SVR4 uname system call.robert2002-02-271-2/+3
| | | | | | - Remove spurious empty line. Reviewed by: phk
* Use the getcredhostname function to fill the hostname intorobert2002-02-271-1/+3
| | | | | | | | the linux_newuname_args structure. This should fix the case of jailed linux processes not using the jail's hostname. PR: 35336 Reviewed by: phk
* Add a function which returns the correct hostname for a givenrobert2002-02-272-0/+12
| | | | | | credential. Reviewed by: phk
* Preprocess with pic(1).ru2002-02-271-0/+1
|
* Add missing "#include <string.h>" for memcmp, noticed by gcc3.dwmalone2002-02-271-0/+1
|
* Build fix.gioria2002-02-271-3/+2
| | | | Remember to hit me 42000 times with a stick and to repeat "I sould not commit before a zero warning build"
* MFen + Typos Fixgioria2002-02-271-3/+3
|
* Fixed a few typos.ru2002-02-271-4/+4
|
* 1) Move FreeBSD tag to after vendor ID, #if 0 vendor ID.dwmalone2002-02-271-5/+7
| | | | 2) Add missing include of stdlib.h for exit(), spotted by gcc3.
* 1) Remove blank line between include of sys/cdefs.h and __FBSDIDdwmalone2002-02-271-2/+1
| | | | 2) compare return value of inet_addr to INADDR_NONE rather than -1.
* Initial effort for the translation of the -CURRENT relnotes. Actuallygioria2002-02-271-50/+298
| | | | | | | just the kernel section is translated, a lot of features are added in 5.0. So help is appreciate :-)
* Change the wording of the inline comments from the previous commit.cjc2002-02-272-16/+6
| | | | Objection from: ru
* MPsafe fixes:alfred2002-02-271-4/+23
| | | | | use SYSINIT to initialize pipe_zone. use PIPE_LOCK to protect kevent ops.
* Return ESRCH if the target process is not inferior to the curproc.tanimura2002-02-271-0/+2
| | | | Spotted by: HIROSHI OOTA <oota@LSi.nec.co.jp>
* Don't hardcode /sys when making tags, instead use ${.CURDIR}/.. thisalfred2002-02-271-1/+1
| | | | | | | fixes a problem where one tries to make tags when the source isn't in /sys. Submitted by: Jihui Yang <yangjihui@yahoo.com>
* Re-fix a pointer/integer warning.peter2002-02-272-2/+2
|
* Back out all the pmap related stuff I've touched over the last few days.peter2002-02-2741-2193/+1037
| | | | | | There is some unresolved badness that has been eluding me, particularly affecting uniprocessor kernels. Turning off PG_G helped (which is a bad sign) but didn't solve it entirely. Userland programs still crashed.
OpenPOWER on IntegriCloud