savectx returns through cpu_switch in case of the child, so it must
return void just like cpu_switch. Fix prototype and usage from machdep.c
This commit is contained in:
parent
ea8c29e94b
commit
6f1e6c97de
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.180 1996/04/05 03:36:02 ache Exp $
|
||||
* $Id: machdep.c,v 1.181 1996/04/06 01:06:04 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -936,7 +936,8 @@ boot(howto)
|
||||
} else {
|
||||
if (howto & RB_DUMP) {
|
||||
if (!cold) {
|
||||
savectx(&dumppcb);
|
||||
int foo;
|
||||
savectx(&dumppcb, &foo);
|
||||
dumppcb.pcb_ptd = rcr3();
|
||||
dumpsys();
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pcb.h 5.10 (Berkeley) 5/12/91
|
||||
* $Id: pcb.h,v 1.11 1996/03/02 19:37:45 peter Exp $
|
||||
* $Id: pcb.h,v 1.12 1996/04/18 21:34:53 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _I386_PCB_H_
|
||||
@ -79,7 +79,7 @@ struct md_coredump {
|
||||
|
||||
#ifdef KERNEL
|
||||
extern struct pcb *curpcb; /* our current running pcb */
|
||||
int savectx __P((struct pcb*, int *));
|
||||
void savectx __P((struct pcb*, int *));
|
||||
#endif
|
||||
|
||||
#endif /* _I386_PCB_H_ */
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.180 1996/04/05 03:36:02 ache Exp $
|
||||
* $Id: machdep.c,v 1.181 1996/04/06 01:06:04 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -936,7 +936,8 @@ boot(howto)
|
||||
} else {
|
||||
if (howto & RB_DUMP) {
|
||||
if (!cold) {
|
||||
savectx(&dumppcb);
|
||||
int foo;
|
||||
savectx(&dumppcb, &foo);
|
||||
dumppcb.pcb_ptd = rcr3();
|
||||
dumpsys();
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pcb.h 5.10 (Berkeley) 5/12/91
|
||||
* $Id: pcb.h,v 1.11 1996/03/02 19:37:45 peter Exp $
|
||||
* $Id: pcb.h,v 1.12 1996/04/18 21:34:53 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _I386_PCB_H_
|
||||
@ -79,7 +79,7 @@ struct md_coredump {
|
||||
|
||||
#ifdef KERNEL
|
||||
extern struct pcb *curpcb; /* our current running pcb */
|
||||
int savectx __P((struct pcb*, int *));
|
||||
void savectx __P((struct pcb*, int *));
|
||||
#endif
|
||||
|
||||
#endif /* _I386_PCB_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user