diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-09-23 17:33:16 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-09-23 17:33:16 +0000 |
commit | 997168187e4534fb8038d74c22cd854a2f4bbff5 (patch) | |
tree | acec740354b15a8ed57b3377314b786de7f6d110 | |
parent | 736a97fe79f0878cbf1ec515a168baead8132f96 (diff) | |
download | FreeBSD-src-997168187e4534fb8038d74c22cd854a2f4bbff5.zip FreeBSD-src-997168187e4534fb8038d74c22cd854a2f4bbff5.tar.gz |
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
-rw-r--r-- | sys/powerpc/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/powerpc/include/pcb.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/powerpc/include/cpu.h b/sys/powerpc/include/cpu.h index 66d21eb..bf4db83 100644 --- a/sys/powerpc/include/cpu.h +++ b/sys/powerpc/include/cpu.h @@ -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_ */ diff --git a/sys/powerpc/include/pcb.h b/sys/powerpc/include/pcb.h index ede7644..394d934 100644 --- a/sys/powerpc/include/pcb.h +++ b/sys/powerpc/include/pcb.h @@ -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_ */ |