Move the prototype for savectx from cpu.h to pcb.h, as it is on other

platforms, as well as putting it in an #ifdef KERNEL block.

MFC after:	2 weeks
This commit is contained in:
Nathan Whitehorn 2012-09-23 17:33:16 +00:00
parent 3eabad2587
commit 2383d92ae8
2 changed files with 1 additions and 3 deletions

View File

@ -98,7 +98,4 @@ void cpu_reset(void);
void fork_trampoline(void);
void swi_vm(void *);
/* XXX the following should not be here. */
void savectx(struct pcb *) __returns_twice;
#endif /* _MACHINE_CPU_H_ */

View File

@ -89,6 +89,7 @@ extern struct pmap *curpm;
extern struct proc *fpuproc;
void makectx(struct trapframe *, struct pcb *);
void savectx(struct pcb *) __returns_twice;
#endif
#endif /* _MACHINE_PCB_H_ */