summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Do not unconditionally load the configuration files for the RCNG case.dillon2002-12-229-285/+636
| | | | | | | | | | | | | | Instead, load them as part of the rc.d system. This allows us to prioritize the initidiskless script so it runs before the configuration files are loaded and allows us to get rid of the exit 2 hack in /etc/rc. The exit 2 never worked anyway since it did not unset the prior configuration, causing the diskless code to not operate properly. Do a major cleanup and revamping of the diskless code for RCNG. This will be backported to the non-RCNG scripts as well as -stable. With suggestions from: Mike Makonnen <mtm@identd.net> MFC after: 7 days
* Add suseconds_t and useconds_t for storing microseconds.mike2002-12-222-0/+13
|
* Use '\033' rather than '\e' as the latter is a gccism.dwmalone2002-12-221-1/+1
| | | | | | PR: 46015 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl> MFC after: 1 week
* english(4) police.schweikh2002-12-221-2/+2
|
* - Add a spin lock to single thread cache invalidation and tlb flush ipis,jake2002-12-225-19/+22
| | | | | which allows ipis to be sent outside of Giant. - Remove the ap boot mutex, which is unused.
* Enforce correct ordering of the filedesc structure and pipe mutex, becausekris2002-12-221-0/+2
| | | | | | WITNESS can get the order wrong if it guesses based on first use. Reviewed by: jhb, alfred
* Fix typo: vunerable -> vulnerable.pb2002-12-221-1/+1
|
* Correct minor grammos.schweikh2002-12-221-3/+3
| | | | MFC after: 3 days
* Remove forgotten INP_UNLOCK(inp) in my previous commit.pb2002-12-221-1/+0
| | | | Reported by: hsu
* Add a word, lost in previos commit.kan2002-12-221-0/+1
|
* Add note about GCC -fno-pcc-struct-return being default again. Thekan2002-12-221-0/+8
| | | | | | | breakage window was about 18 days long. Submitted by: juli Approved by: re (rwatson)
* Back out the -fpcc-struct-return fixes.kan2002-12-222-24/+68
| | | | Approved by: re (rwatson)
* MB_LEN_MAX is not MD, move it to the MI limits.h.tjr2002-12-2215-14/+2
|
* Fix a bug in GCC which effectively prevents DEFAULT_PCC_STRUCT_RETURN fromkan2002-12-221-1/+0
| | | | | | | | | having any effect. This restores a calling convention traditionally used by FreeBSD/i386 and which is expected by a number of assembly sources in libc. Reviewed by: obrien Approved by: re (rwatson)
* SMP locking for ifnet list.hsu2002-12-2221-24/+126
|
* The UP -current was not properly counting the per-cpu VM stats in thedillon2002-12-221-0/+3
| | | | | | | sysctl code. This makes 'systat -vm 1's syscall count work again. Submitted by: Michal Mertl <mime@traveller.cz> Note: also slated for 5.0
* Revert part of the last commit. Do not fake-up the cylinders to makedillon2002-12-221-2/+1
| | | | | the sectors fit (at least, don't fake them up any more then they are already faked up).
* Fix style (no space after return, twice-too-big continuation) andjmallett2002-12-221-2/+2
| | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde
* So many people have asked me to describe my development environment thatdillon2002-12-221-0/+351
| | | | | | | | | | | my fingers are getting tired. Here is a new manual page, 'development', which describes a very powerful, generic, exportable development environment suitable to developers, sysops, admins, and anyone at all who is maintaining more the one FreeBSD box. I have used this type of environment for many years and have had to make virtually no changes to it for all that time. MFC after: 3 days
* - Add a pmap pointer to struct md_page, and use this to find the pmap thatjake2002-12-214-69/+70
| | | | | | | | | | | | | | | | | | | | | | | | a mapping belongs to by setting it in the vm_page_t structure that backs the tsb page that the tte for a mapping is in. This allows the pmap that a mapping belongs to to be found without keeping a pointer to it in the tte itself. - Remove the pmap pointer from struct tte and use the space to make the tte pv lists doubly linked (TAILQs), like on other architectures. This makes entering or removing a mapping O(1) instead of O(n) where n is the number of pmaps a page is mapped by (including kernel_pmap). - Use atomic ops for setting and clearing bits in the ttes, now that they return the old value and can be easily used for this purpose. - Use __builtin_memset for zeroing ttes instead of bzero, so that gcc will inline it (4 inline stores using %g0 instead of a function call). - Initially set the virtual colour for all the vm_page_ts to be equal to their physical colour. This will be more useful once uma_small_alloc is implemented, but basically pages with virtual colour equal to phsyical colour are easier to handle at the pmap level because they can be safely accessed through cachable direct virtual to physical mappings with that colour, without fear of causing illegal dcache aliases. In total these changes give a minor performance improvement, about 1% reduction in system time during buildworld.
* Be nice. There are evidentally a number of different cards thatimp2002-12-211-2/+4
| | | | | | | | | | identify themselves as serial cards that it would be desirable to attach a different driver than sio to. Since we are claiming all serial cards, this is not possible. Instead, return -100 to indicate that we're willing to take the card, but still allow other drivers to attach. Pointed out by: Maksim Yevmenkin
* Make newsyslog(8) print the correct date when the logs are turned over.trhodes2002-12-211-2/+2
| | | | | | PR: 46395 Submitted by: maxim MFC: eventually
* Reduce libc's memory footprint by lazily allocating memory used internallybbraun2002-12-211-9/+22
| | | | | | by setproctitle(). Reviewed by: jkh
* do not try to free a mountpoint that we did not allocate.dillon2002-12-211-4/+9
| | | | X-MFC after: immediately
* In syncache_timer(), don't attempt to lock the inpcb structurepb2002-12-211-2/+0
| | | | | | | | | associated with the syncache entry: in case tcp_close() has been called on the corresponding listening socket, the lock has been destroyed as a side effect of in_pcbdetach(), causing a panic when we attempt to lock on it. Reviewed by: hsu
* The previous commit contained a stupid mistake: ctxt->pam_[cp]sock wasdes2002-12-211-2/+2
| | | | | | initialized after the call to pthread_create() instead of before. It just happened to work with threads enabled because ctxt is shared, but of course it doesn't work when we use a child process instead of threads.
* Mark the INVALID keyword as being deprecated since the concept oftjr2002-12-212-1/+5
| | | | "invalid runes" is useless without the rest of the deprecated rune interface.
* Make pmap_qenter and pmap_qremove look more like the other pmaps.jake2002-12-211-7/+10
|
* Add the -P option which executes multiple copies of the specified utilitytjr2002-12-212-19/+57
| | | | in parallel. Idea from GNU xargs.
* Removed unused pmap_qenter_flags.jake2002-12-212-17/+0
|
* Make the atomic arithmetic functions return the old value, since they'rejake2002-12-211-40/+38
| | | | all implemented with cas anyway.
* Reduce libc.so's memory footprint by lazily allocating memory used internallybbraun2002-12-212-4/+16
| | | | | by basename() and dirname(). Reviewed by: eric
* Import newer versions of div() and ldiv() from NetBSD which handletjr2002-12-212-68/+24
| | | | | | the -fpcc-struct-return calling convention properly instead of returning garbage. This may break backwards compatibility with some old binaries that were compiled when -fno-pcc-struct-return was the default.
* -mno-align-long-strings can make things smaller, so lets use it in hopesobrien2002-12-212-0/+2
| | | | that it does here.
* Fix multiple registration of the elf_legacy_coredump sysctl variable.marcel2002-12-211-3/+5
| | | | | | | | | | | | | | | | | | | | The duplication is caused by the fact that imgact_elf.c is included by both imgact_elf32.c and imgact_elf64.c and both are compiled by default on ia64. Consequently, we have two seperate copies of the elf_legacy_coredump variable due to them being declared static, and two entries for the same sysctl in the linker set, both referencing the unique copy of the elf_legacy_coredump variable. Since the second sysctl cannot be registered, one of the elf_legacy_coredump variables can not be tuned (if ordering still holds, it's the ELF64 related one). The only solution is to create two different sysctl variables, just like the elf<32|64>_trace sysctl variables. This unfortunately is an (user) interface change, but unavoidable. Thus, on ELF32 platforms the sysctl variable is called elf32_legacy_coredump and on ELF64 platforms it is called elf64_legacy_coredump. Platforms that have both ELF formats have both sysctl variables. These variables should probably be retired sooner rather than later.
* Remove unimplemented System V options from the getopt() option string.tjr2002-12-211-1/+1
|
* Revamp the way rc.diskless1 creates and populates memory filesystems. Makedillon2002-12-211-72/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | the whole thing generic. That is, /conf/base, /conf/default, /conf/${ipba}, and /conf/${ip} are all handled the same way. Introduce an NFS remounting feature via the /conf/base/<dir>/diskless_remount so you can avoid dup'ing system directories in /conf (described in rc file). Introduce a memory filesystem sizing feature via the /conf/base/<dir>/md_size file that allows you to override the default memory filesystem size. Introduce a file containing relative paths to remove for each memory filesystem directory as /conf/base/<dirname>.remove. Make the cpio feature more generic (applies to any filesystem) (aka /conf/base/<dirname>.cpio.gz). Allow any root directories to be created as a memory filesystem via the /conf/*/* mechanism. Replace the copyright notice with a reference to the COPYRIGHT file and do other cleanups. (documentation and man page updates to follow). MFC after: 3 days
* replace the special-purpose rate-limiting code with the general facilitysam2002-12-211-38/+28
| | | | | just added; this tries to maintain the same behaviour vis a vis printing the rate-limiting messages but need tweaking
* define HAVE_PPSRATECHECK now that we have this stuff in the kernelsam2002-12-201-0/+1
| | | | | (probably belongs elsewhere; add it this way for now so the system will build)
* add generic rate limiting support from netbsd; ratelimit is purely time based,sam2002-12-202-0/+90
| | | | | | ppsratecheck is for controlling packets/second Obtained from: netbsd
* Add page queue locking around functions that call vm_page_flag_set. Thisjake2002-12-202-0/+4
| | | | | | fixes a failed assertion early in boot on sparc64. Reported by: Roderick van Domburg <r.s.a.vandomburg@student.utwente.nl>
* Extend the scope of the page queues lock in vm_pgmoveco().alc2002-12-201-4/+4
|
* Increase the scope of the kmem_object locking in kmem_malloc().alc2002-12-201-3/+5
|
* Modify the fake cylinders calculation so it is >= the size of the device,dillon2002-12-201-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | not < the size of the device. This avoids geom complaints. Fix a serious bug in the handling of the RS_NO_CLEAR_UA quirk. When we go and insert the test-unit-ready command the umass_cam_quirk_cb() function sets the status as if the READ_CAPACITY command suceeded when, in fact, it did not. This leads to the CAM layer trying to use garbage in the return buffer and panicing the system (or doing other bad things). Add a quirk entry for MSYSTEMS DISK-ON-KEY, which is sold under the Sony brand as a solid state disk-on-key usb device. This device requires several quirks to work properly. Note that the disk-on-key device will not work properly until CAM also gets a quirk entry for it, which has been submitted to the CAM maintainer, and you may have to temporarily uncomment the DELAY() as well. -current does not properly wait for devices to power up so you may also have to temporarily uncomment the DELAY(300000) to make your device work. A solution must be found to that issue. MFC after: 3 days X-MFC note: the quirk support must MFCd before this patch can be
* Fix two bugs in the DMA chaining code for OHCI. The first bug is thatdillon2002-12-201-5/+9
| | | | | | | | | | | | | | | | | | | the dataphysend calculation could only possibly work if the virtual buffer is also physically contiguous. Calculate dataphysend by calculating the ending virtual address first, then converting to a physical address. The second bug applies only to NetBSD and OpenBSD and involves the curlen calculation in the two-contiguous-physical-pages case (which we don't support). Also cleanup the use of the OHIC_PAGE() macro on dataphysend and add a panic if len goes negative (meaning we lost the physical page translation representing the end of the buffer). IMHO the dataphysend is still bokered since it might be misrepresented by shared userland page mappings. The whole section needs to be rewritten to use the virtual address range. MFC after: 3 days
* Don't forget to destroy the mutex if an error occursmux2002-12-201-0/+1
| | | | | | in the jail() system call. Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
* mdoc(7) police: Fixed language.ru2002-12-201-6/+6
|
* Fxi support for the Promise SuperTrak 100, the PCI id was wrong.sos2002-12-201-2/+2
|
* Eliminate a goto.hsu2002-12-201-39/+36
| | | | Fix some line breaks.
* Swap the order of a free and a use of an ifaddr structure.hsu2002-12-201-1/+1
|
OpenPOWER on IntegriCloud