summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1993-09-10 22:14:37 +0000
committernate <nate@FreeBSD.org>1993-09-10 22:14:37 +0000
commitef1065697e311f4200be112ec92fa1ddf435a207 (patch)
tree036088d46ab98956e0790e18010ce9e5cc9048ae /sys/amd64
parentaf0d0830a138502f5566320f840f6607dd31bceb (diff)
downloadFreeBSD-src-ef1065697e311f4200be112ec92fa1ddf435a207.zip
FreeBSD-src-ef1065697e311f4200be112ec92fa1ddf435a207.tar.gz
Removed volatile functions which were causing grief in the system, since
volatile functions are undefined, and there is no reason to have them in our kernel.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/vm_machdep.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index c89dac9..72ce563 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -49,7 +49,7 @@
/*
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
*/
-static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/vm_machdep.c,v 1.3 1993/07/27 10:52:21 davidg Exp $";
+static char rcsid[] = "$Header: /usr/chroot/CVS/386BSD/src/sys/i386/i386/vm_machdep.c,v 1.3 1993/07/27 10:52:21 davidg Exp $";
#include "param.h"
#include "systm.h"
@@ -169,7 +169,7 @@ cpu_exit(p)
/* NOTREACHED */
}
#else
-volatile void
+void
cpu_exit(p)
register struct proc *p;
{
@@ -179,8 +179,12 @@ cpu_exit(p)
#endif
splclock();
swtch();
- /*NOTREACHED*/
- for(;;);
+ /*
+ * This is to shutup the compiler, and if swtch() failed I suppose
+ * this would be a good thing. This keeps gcc happy because panic
+ * is a volatile void function as well.
+ */
+ panic("cpu_exit");
}
cpu_wait(p) struct proc *p; {
OpenPOWER on IntegriCloud