diff options
author | Marius Strobl <marius@FreeBSD.org> | 2007-01-19 11:15:34 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2007-01-19 11:15:34 +0000 |
commit | 0ca3609e30f74cad1a9787c7afaa84aca4e8aa1f (patch) | |
tree | 2081798bc33b8d901626e55700e1b4e8b3beb0dd /sys/sun4v/include/pcb.h | |
parent | 7e2ff8bbff073b8f2d10ad9d4f1929e66f16395d (diff) |
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/sun4v/include/pcb.h')
-rw-r--r-- | sys/sun4v/include/pcb.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sun4v/include/pcb.h b/sys/sun4v/include/pcb.h index 9791cd5cb330..ae366e5ae45f 100644 --- a/sys/sun4v/include/pcb.h +++ b/sys/sun4v/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]; /* wbuf for page faults during spill / fill trap handling */ @@ -55,8 +59,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_ */ |