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.
This commit is contained in:
Nate Williams 1993-09-10 22:14:37 +00:00
parent 70a3b3d1af
commit 7c2b54e804
2 changed files with 16 additions and 8 deletions

View File

@ -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; {

View File

@ -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; {