summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed unused #includes.bde1997-09-021-6/+1
|
* Fixed options SHOW_BUSYBUFS and PANIC_REBOOT_WAIT_TIME which were brokenbde1997-08-311-1/+3
| | | | | | by incomplete cutting and pasting from machdep.c to kern_shutdown.c. PR: 3953
* Correct some things I forgot about until it was too late with smp_active.peter1997-08-261-5/+4
| | | | | | | smp_active = 1 used to indicate that the system had frozen previously started AP's, while smp_active = 0 was "AP's not yet started". I have split this into smp_started (which is set when the AP's come online), and smp_active is left for turning on/off AP scheduling.
* Fixed some formatting and style bugs.bde1997-08-261-7/+5
| | | | Fixed a gratuitous ANSIism.
* Teach both disk drivers how to cope with a hardware watchdogjulian1997-08-091-1/+3
| | | | | | | while dumping core.. I'm tired of getting 1/2 of a core-dump conditional on -DHW_WDOG for now this will migrate to 2.2 as that's where I need it.
* Use up 4 precious bytes to give the kernel a hook tojulian1997-08-091-1/+22
| | | | | support hardware watchdogs. The actual functions would be supplied in an LKM or a linked file, but they need to hang off something.
* Preliminary support for per-cpu data pages.peter1997-06-221-4/+7
| | | | | | | | | | | | | | | | This eliminates a lot of #ifdef SMP type code. Things like _curproc reside in a data page that is unique on each cpu, eliminating the expensive macros like: #define curproc (SMPcurproc[cpunumber()]) There are some unresolved bootstrap and address space sharing issues at present, but Steve is waiting on this for other work. There is still some strictly temporary code present that isn't exactly pretty. This is part of a larger change that has run into some bumps, this part is standalone so it should be safe. The temporary code goes away when the full idle cpu support is finished. Reviewed by: fsmp, dyson
* When APM is configured, turn off the power when halting for good.wollman1997-06-151-1/+2
|
* Move the printing of "cpu#%d" to AFTER the general panic argument string.fsmp1997-05-241-5/+4
| | | | | | | When a panic occurs early in the SMP boot process 'cpunumber()' hangs, causing the panic string to be lost. Now the system appears to hang in 'breakpoint()', but at least the user sees the panic string before the hang.
* Man the liferafts! Here comes the long awaited SMP -> -current merge!peter1997-04-261-1/+26
| | | | | | | | | | | | | | | | There are various options documented in i386/conf/LINT, there is more to come over the next few days. The kernel should run pretty much "as before" without the options to activate SMP mode. There are a handful of known "loose ends" that need to be fixed, but have been put off since the SMP kernel is in a moderately good condition at the moment. This commit is the result of the tinkering and testing over the last 14 months by many people. A special thanks to Steve Passe for implementing the APIC code!
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Reduced #include spam in <sys/sysproto.h> and fixed things that dependedbde1997-01-161-0/+1
| | | | | | | | | | | | | | on it. makesyscalls.sh: This parsed $Id$. Fixed(?) to parse $FreeBSD$. The output is wrong when the id is not expanded in the source file. syscalls.master: Fixed declaration of sigsuspend(). There are still some bogons and spam involving sigset_t. Use `struct foo *' instead of the equivalent `foo_t *' for some nfs and lfs syscalls so that <sys/sysproto.h> doesn't depend on <sys/mount.h>.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Further improved version of hadling a HALT when there is no console.julian1996-10-311-2/+8
|
* if there is no console, cngetc should act like getc and return -1julian1996-10-301-2/+2
| | | | make callers aware of this in those cases where it can occur.
* Changed cncheckc() interface so that it is 8-bit clean - return -1bde1996-09-141-2/+3
| | | | instead of 0 if there is no input.
* Don't use __dead in the kernel. It was an obfuscation for gcc >= 2.5bde1996-09-131-5/+2
| | | | and a no-op for gcc >= 2.6.
* Fixed two small leftovers form PHK's mega devconf removal commit..sos1996-09-071-2/+1
|
* Remove devconf, it never grew up to be of any use.phk1996-09-061-2/+1
|
* Remove the old cleanup code as it is no longer used..julian1996-08-261-28/+3
| | | | | also fix two cases of = instead of == (cut+paste bug duplication)
* Some cleanups to the callout lists recently added.julian1996-08-221-29/+66
| | | | | | | | note that at_shutdown has a new parameter to indicate When during a shutdown the callout should be made. also add a RB_POWEROFF flag to reboot "howto" parameter.. tells the reboot code in our at_shutdown module to turn off the UPS and kill the power. bound to be useful eventually on laptops
* Collect all the functioons concerned with rebooting into one placejulian1996-08-191-1/+2
| | | | | also add the at_shutdown callout list, and change the one user of the present (broken) method (the vn driver) to use the new scheme.
* move all functions related to shutting down to one filejulian1996-08-191-0/+429
called kern_shutdown.c note: I couldn't see anything machine dependant in the functions boot() and dumpsys() which were in machdep.c I have left a prototype for cpu_boot() which would go in machdep.c, but I have nothing to put in it. Iexpect others will let me know in no uncertain ways that this or that is machine dependant and should be there, but I'll way for that to happen.. :) I haven't actually taken the functions OUT of machdep or anywhere else yet.. I'm checking in this file so others can have a look at it and comment. SO PLEASE DO COMMENT! I am also (in another checkin) addinf a man(9) page for the new at_shotdown().. er freudian slip there.. at_shutdown() call so have a look at that (and at_exit and at_fork as well) and feed me comments.. I'll heck in the changes to make these (shutdown) changes active tomorrow if no-one objects too strongly..
OpenPOWER on IntegriCloud