aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include/pcb.h
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2007-01-19 11:15:34 +0000
committerMarius Strobl <marius@FreeBSD.org>2007-01-19 11:15:34 +0000
commit0ca3609e30f74cad1a9787c7afaa84aca4e8aa1f (patch)
tree2081798bc33b8d901626e55700e1b4e8b3beb0dd /sys/sparc64/include/pcb.h
parent7e2ff8bbff073b8f2d10ad9d4f1929e66f16395d (diff)
downloadsrc-0ca3609e30f74cad1a9787c7afaa84aca4e8aa1f.tar.gz
src-0ca3609e30f74cad1a9787c7afaa84aca4e8aa1f.zip
Convert the remainder of the low hanging fruits regarding including
headers in .S directly rather than getting to their macros through genassym.c/assym.s so there are less headers genassym.c has to be kept in sync with. While at it fix some stytle(9) bugs (indentation, prototype format, sort headers, etc) and remove trailing whitespace.
Notes
Notes: svn path=/head/; revision=166105
Diffstat (limited to 'sys/sparc64/include/pcb.h')
-rw-r--r--sys/sparc64/include/pcb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sparc64/include/pcb.h b/sys/sparc64/include/pcb.h
index 1f1e8dcb2540..7e8294ad9b68 100644
--- a/sys/sparc64/include/pcb.h
+++ b/sys/sparc64/include/pcb.h
@@ -29,12 +29,16 @@
#ifndef _MACHINE_PCB_H_
#define _MACHINE_PCB_H_
+#ifndef LOCORE
#include <machine/frame.h>
+#endif
#define MAXWIN 8
#define PCB_FEF (1 << 0)
+#ifndef LOCORE
+
/* NOTE: pcb_ufp must be aligned on a 64 byte boundary. */
struct pcb {
struct rwindow pcb_rw[MAXWIN];
@@ -49,8 +53,10 @@ struct pcb {
} __aligned(64);
#ifdef _KERNEL
-void makectx(struct trapframe *, struct pcb *);
+void makectx(struct trapframe *tf, struct pcb *pcb);
int savectx(struct pcb *pcb);
#endif
+#endif /* !LOCORE */
+
#endif /* !_MACHINE_PCB_H_ */