summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Redo the initial rc_ng check to avoid rc.conf pollution occuring too early,Matthew Dillon2002-12-231-14/+34
| | | | | | | | | initdiskless may retarget /etc and various rc.conf files. The initial check is now done in a subshell. Reviewed by: Mike Makonnen <mtm@identd.net> Notes: svn path=/head/; revision=108200
* Add development.7Matthew Dillon2002-12-231-3/+4
| | | | | | | Reminded by: Sean Kelly <smkelly@zombie.org> Notes: svn path=/head/; revision=108199
* Avoid holding the vnode interlock around malloc() or free() to prevent aAlan Cox2002-12-231-2/+8
| | | | | | | | | lock order reversal. Reviewed by: jeff Notes: svn path=/head/; revision=108198
* Eliminate some dead code. (Any possible use for this code died withAlan Cox2002-12-231-4/+0
| | | | | | | | | vm/vm_page.c revision 1.220.) Submitted by: bde Notes: svn path=/head/; revision=108197
* Fix a De Morgan bug: If we only expect a memory range OR anMarcel Moolenaar2002-12-231-8/+8
| | | | | | | | | | | | | I/O port range, then we should ignore a resource if it's NOT a memory range AND NOT an I/O port range. The OR in the condition caused us to ignore perfectly valid memory addresses. While here, remove redundant parenthesis and reindent the debug print to avoid long lines. Notes: svn path=/head/; revision=108196
* - Fix a bug where the faulting address for an mmu miss could sometimes beJake Burkholder2002-12-231-5/+5
| | | | | | | | | clobbered due to some debug code. This was harmless and just superfluous soft faults. - Update some comments. Notes: svn path=/head/; revision=108195
* - Rearrange pmap_bootstrap slightly to be more in dependency order.Jake Burkholder2002-12-221-50/+49
| | | | | | | | | | - Put the kernel tsb before before the kernel load address, below VM_MIN_KERNEL_ADDRESS, instead of after the kernel where it consumes usable kva. This is magic mapped so the virtual address is irrelevant, it just needs to be out of the way. Notes: svn path=/head/; revision=108193
* Forgot to add rcconf.sh to the Makefile, and forgot to rename rcconf toMatthew Dillon2002-12-222-1/+1
| | | | | | | rcconf.sh in the last commit. Notes: svn path=/head/; revision=108192
* Do not unconditionally load the configuration files for the RCNG case.Matthew 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 Notes: svn path=/head/; revision=108191
* Add suseconds_t and useconds_t for storing microseconds.Mike Barcroft2002-12-222-0/+13
| | | | Notes: svn path=/head/; revision=108190
* Use '\033' rather than '\e' as the latter is a gccism.David Malone2002-12-221-1/+1
| | | | | | | | | PR: 46015 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl> MFC after: 1 week Notes: svn path=/head/; revision=108189
* english(4) police.Jens Schweikhardt2002-12-221-2/+2
| | | | Notes: svn path=/head/; revision=108188
* - Add a spin lock to single thread cache invalidation and tlb flush ipis,Jake Burkholder2002-12-225-19/+22
| | | | | | | | which allows ipis to be sent outside of Giant. - Remove the ap boot mutex, which is unused. Notes: svn path=/head/; revision=108187
* Enforce correct ordering of the filedesc structure and pipe mutex, becauseKris Kennaway2002-12-221-0/+2
| | | | | | | | | WITNESS can get the order wrong if it guesses based on first use. Reviewed by: jhb, alfred Notes: svn path=/head/; revision=108184
* Fix typo: vunerable -> vulnerable.Pierre Beyssac2002-12-221-1/+1
| | | | Notes: svn path=/head/; revision=108182
* Correct minor grammos.Jens Schweikhardt2002-12-221-3/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=108181
* Remove forgotten INP_UNLOCK(inp) in my previous commit.Pierre Beyssac2002-12-221-1/+0
| | | | | | | Reported by: hsu Notes: svn path=/head/; revision=108180
* Add a word, lost in previos commit.Alexander Kabaev2002-12-221-0/+1
| | | | Notes: svn path=/head/; revision=108179
* Add note about GCC -fno-pcc-struct-return being default again. TheAlexander Kabaev2002-12-221-0/+8
| | | | | | | | | | breakage window was about 18 days long. Submitted by: juli Approved by: re (rwatson) Notes: svn path=/head/; revision=108177
* Back out the -fpcc-struct-return fixes.Alexander Kabaev2002-12-222-24/+68
| | | | | | | Approved by: re (rwatson) Notes: svn path=/head/; revision=108176
* MB_LEN_MAX is not MD, move it to the MI limits.h.Tim J. Robbins2002-12-2215-14/+2
| | | | Notes: svn path=/head/; revision=108175
* Fix a bug in GCC which effectively prevents DEFAULT_PCC_STRUCT_RETURN fromAlexander Kabaev2002-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) Notes: svn path=/head/; revision=108173
* SMP locking for ifnet list.Jeffrey Hsu2002-12-2221-24/+126
| | | | Notes: svn path=/head/; revision=108172
* The UP -current was not properly counting the per-cpu VM stats in theMatthew Dillon2002-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 Notes: svn path=/head/; revision=108171
* Revert part of the last commit. Do not fake-up the cylinders to makeMatthew Dillon2002-12-221-2/+1
| | | | | | | | the sectors fit (at least, don't fake them up any more then they are already faked up). Notes: svn path=/head/; revision=108170
* Fix style (no space after return, twice-too-big continuation) andJuli Mallett2002-12-221-2/+2
| | | | | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde Notes: svn path=/head/; revision=108168
* So many people have asked me to describe my development environment thatMatthew Dillon2002-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 Notes: svn path=/head/; revision=108167
* - Add a pmap pointer to struct md_page, and use this to find the pmap thatJake Burkholder2002-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. Notes: svn path=/head/; revision=108166
* Be nice. There are evidentally a number of different cards thatWarner Losh2002-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 Notes: svn path=/head/; revision=108165
* Make newsyslog(8) print the correct date when the logs are turned over.Tom Rhodes2002-12-211-2/+2
| | | | | | | | | PR: 46395 Submitted by: maxim MFC: eventually Notes: svn path=/head/; revision=108164
* Reduce libc's memory footprint by lazily allocating memory used internallyRob Braun2002-12-211-9/+22
| | | | | | | | | by setproctitle(). Reviewed by: jkh Notes: svn path=/head/; revision=108163
* do not try to free a mountpoint that we did not allocate.Matthew Dillon2002-12-211-4/+9
| | | | | | | X-MFC after: immediately Notes: svn path=/head/; revision=108161
* In syncache_timer(), don't attempt to lock the inpcb structurePierre Beyssac2002-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 Notes: svn path=/head/; revision=108160
* The previous commit contained a stupid mistake: ctxt->pam_[cp]sock wasDag-Erling Smørgrav2002-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. Notes: svn path=/head/; revision=108159
* Mark the INVALID keyword as being deprecated since the concept ofTim J. Robbins2002-12-212-1/+5
| | | | | | | "invalid runes" is useless without the rest of the deprecated rune interface. Notes: svn path=/head/; revision=108158
* Make pmap_qenter and pmap_qremove look more like the other pmaps.Jake Burkholder2002-12-211-7/+10
| | | | Notes: svn path=/head/; revision=108157
* Add the -P option which executes multiple copies of the specified utilityTim J. Robbins2002-12-212-19/+57
| | | | | | | in parallel. Idea from GNU xargs. Notes: svn path=/head/; revision=108156
* Removed unused pmap_qenter_flags.Jake Burkholder2002-12-212-17/+0
| | | | Notes: svn path=/head/; revision=108155
* Make the atomic arithmetic functions return the old value, since they'reJake Burkholder2002-12-211-40/+38
| | | | | | | all implemented with cas anyway. Notes: svn path=/head/; revision=108153
* Reduce libc.so's memory footprint by lazily allocating memory used internallyRob Braun2002-12-212-4/+16
| | | | | | | | by basename() and dirname(). Reviewed by: eric Notes: svn path=/head/; revision=108152
* Import newer versions of div() and ldiv() from NetBSD which handleTim J. Robbins2002-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. Notes: svn path=/head/; revision=108151
* -mno-align-long-strings can make things smaller, so lets use it in hopesDavid E. O'Brien2002-12-212-0/+2
| | | | | | | that it does here. Notes: svn path=/head/; revision=108149
* Fix multiple registration of the elf_legacy_coredump sysctl variable.Marcel Moolenaar2002-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. Notes: svn path=/head/; revision=108148
* Remove unimplemented System V options from the getopt() option string.Tim J. Robbins2002-12-211-1/+1
| | | | Notes: svn path=/head/; revision=108146
* Revamp the way rc.diskless1 creates and populates memory filesystems. MakeMatthew Dillon2002-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 Notes: svn path=/head/; revision=108145
* replace the special-purpose rate-limiting code with the general facilitySam Leffler2002-12-211-38/+28
| | | | | | | | just added; this tries to maintain the same behaviour vis a vis printing the rate-limiting messages but need tweaking Notes: svn path=/head/; revision=108144
* define HAVE_PPSRATECHECK now that we have this stuff in the kernelSam Leffler2002-12-201-0/+1
| | | | | | | | (probably belongs elsewhere; add it this way for now so the system will build) Notes: svn path=/head/; revision=108143
* add generic rate limiting support from netbsd; ratelimit is purely time based,Sam Leffler2002-12-202-0/+90
| | | | | | | | | ppsratecheck is for controlling packets/second Obtained from: netbsd Notes: svn path=/head/; revision=108142
* Add page queue locking around functions that call vm_page_flag_set. ThisJake Burkholder2002-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> Notes: svn path=/head/; revision=108140
* Extend the scope of the page queues lock in vm_pgmoveco().Alan Cox2002-12-201-4/+4
| | | | Notes: svn path=/head/; revision=108139