summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 2007drahn2007-01-021-2/+2
|
* Kernel stack can be swapped. This means that stuff that's on the stackmiod2006-11-291-2/+2
| | | | | | | | | | should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
* grammar, spelling, and style fixes from bret lambert;jmc2006-11-141-2/+2
| | | | kern_descrip.c change ok deraadt
* initialize the propolice cookie more carefully so -fstack-protector-allderaadt2006-05-061-2/+10
| | | | will work; ok miod
* With the exception of two other small uncommited diffs this movesbrad2006-03-041-2/+2
| | | | | | the remainder of the network stack from splimp to splnet. ok miod@
* 2006miod2006-01-011-2/+2
|
* fix memory leak conditions in thrsleep and significantly simplifytedu2005-12-221-2/+1
|
* kernel support for threaded processes (rthreads).tedu2005-12-031-1/+5
| | | | | | | | uses rfork(RFTHREAD) to create threads, which are presently processes that are a little more tightly bound together. several new syscalls added to facilitate a userland thread library. all conditional on RTHREADS, currently disabled. ok deraadt
* ansi. No binary change.jsg2005-11-121-15/+8
|
* Typo in comment, from Giorgos Keramidas, keramida (at) ceid (dot)tom2005-07-181-2/+2
| | | | upatras (dot) gr. Thanks.
* 2005mickey2005-01-011-2/+2
|
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-261-2/+2
| | | | no change in compiler assembly output.
* mountroothooks are called after the root filesystem is mounted.deraadt2004-11-281-1/+3
|
* Create the init process earlier, before the root filesystem is mounted,miod2004-11-231-22/+66
| | | | | | | | | | | and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
* This touches only MI code, and adds new time keeping code. Thetholo2004-07-281-3/+7
| | | | | | | | | | | | | | | code is all conditionalized on __HAVE_TIMECOUNTER, and not enabled on any platforms. adjtime(2) support exists, courtesy of nordin@, sysctl(2) support and a concept of quality for each time source attached exists. High quality time sources exists for PIIX4 ACPI timer as well as some AMD power management chips. This will have to be redone once we actually add ACPI support (at that time we need to use the ACPI interfaces to get at these clocks). ok art@ ken@ miod@ jmc@ and many more
* protect printf with a mutex instead of SIMPLELOCK.art2004-07-201-4/+1
|
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-2/+3
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* debranch SMP, have funniklas2004-06-131-7/+23
|
* Merge in a piece of the SMP branch into HEAD.art2004-06-091-2/+13
| | | | | | | | | | | Introduce the cpu_info structure, p_cpu field in struct proc and global scheduling context and various changed code to deal with this. At the moment no architecture uses this stuff yet, but it will allow us slow and controlled migration to the new APIs. All new code is ifdef:ed out. ok deraadt@ niklas@
* pull ncpus support from smp tree into main branch.marc2004-06-081-1/+2
| | | | | remove alpha specific definition of ncpus. OK (and tested on alpha) deraadt@
* init kqueues normally, from pedro martellettotedu2004-04-011-2/+8
|
* nicer printf for copyright. from Pedro Martellettotedu2004-03-141-3/+2
|
* call timeout_startup early, so timeouts are available. report from sam smithtedu2004-01-211-6/+6
| | | | ok art deraadt
* Get rid of M_LOCKF and use pool for allocating lockf structures.grange2004-01-141-1/+5
| | | | | | From NetBSD. Tested by many people, ok art@.
* 2004deraadt2004-01-011-2/+2
|
* use arc4random_bytestedu2003-11-031-6/+2
|
* match syscallargs comments with realityhenning2003-09-011-4/+4
| | | | | from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
* emulation is now controlled by sysctl. changes:tedu2003-08-211-1/+7
| | | | | | | | | add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Add option NO_PROPOLICE, which explicitely disables the use of the propolicemiod2003-05-131-1/+7
| | | | | | | | stack protection when building kernels. Intended to be used on installation media, with tight space constraints - currently, only added where SMALL_KERNEL was already defined. Not thoroughly tested, but requested by deraadt.
* support for propolice in the kernel.tedu2003-05-131-1/+9
| | | | | | some style input itojun@ tdeval@ toby@ tested, mostly by deraadt, on i386, macppc, vax, sparc64 ok deraadt@ miod@
* Don't map the fake arg list for init with X permissions.art2003-05-091-2/+2
| | | | niklas@ tdeval@ ok
* move cpu_configre() lower after the proc0 is more completely initialized.mickey2003-03-061-14/+14
| | | | | still calculate the memory limits for proc0 at after the autoconf is done. miod@ testing on everything; art@ ok
* Remove fetch(9) and store(9) functions from the kernel, and replace the fewmiod2003-01-091-5/+7
| | | | | | remaining instances of them with appropriate copy(9) usage. ok art@, tested on all arches unless my memory is non-ECC
* 2003 in copyrightpvalchev2003-01-011-2/+2
|
* simplify stack grownups (growndowns are not touched)mickey2002-12-191-5/+1
|
* Instead of statically allocating filedescs for proc0, use fdinit.art2002-11-221-14/+6
|
* repair proc0 rlimit setup for >2GB machinesderaadt2002-11-221-5/+6
|
* if_attach() gets called before domaininit(). scan all interfaces for if_afdataitojun2002-05-271-1/+2
| | | | initialization after domaininit().
* remove ambiguity in version,ostype,osversion,osrelease and their constanity, they are and declarre 'em accordingly also removing private externies of thosemickey2002-03-141-2/+2
|
* First round of __P removal in sysmillert2002-03-141-14/+14
|
* Add proc0 to the PIDHASH table. art@ oknordin2002-01-301-1/+2
|
* Don't include <sys/map.h> when you don't need what's in it.miod2002-01-161-2/+1
|
* 2002deraadt2002-01-011-2/+2
|
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-191-4/+2
| | | | | | | | | machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
* Yet another sync to NetBSD uvm.art2001-12-041-2/+2
| | | | | | Today we add a pmap argument to pmap_update() and allocate map entries for kernel_map from kmem_map instead of using the static entries. This should get rid of MAX_KMAPENT panics. Also some uvm_loan problems are fixed.
* Sync in more uvm changes from NetBSD.art2001-11-281-3/+2
| | | | | This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
* change socket allocation to pool allocator; from netbsd; okay niklas@provos2001-11-271-1/+5
|
* Merge in the unified buffer cache code as found in NetBSD 2001/03/10. Theart2001-11-271-1/+3
| | | | | | | code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
* Merge in some parts of the ubc work that has been done in NetBSD that are notart2001-11-101-2/+6
| | | | | | | | | | UBC, but prerequsites for it. - Create a daemon that processes async I/O (swap and paging in the future) requests that need processing in process context and that were processed in the pagedaemon before. - Convert some ugly ifdef DIAGNOSTIC code to less intrusive KASSERTs. - misc other cleanups.