diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-17 06:42:08 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-17 06:42:08 +0000 |
commit | 7db6a715d6d16fc45da983ae9d2f40c08e8d44a5 (patch) | |
tree | c396c4d20098d5889204513f259cb9b3a2f0c0df /sys/alpha/include/cpu.h | |
parent | 93e442c71c6a2c58cc277afd732fa1984c44e238 (diff) | |
download | FreeBSD-src-7db6a715d6d16fc45da983ae9d2f40c08e8d44a5.zip FreeBSD-src-7db6a715d6d16fc45da983ae9d2f40c08e8d44a5.tar.gz |
Cleanup <machine/cpu.h> by moving MD prototypes to <machine/md_var.h>
like we have on other platforms. Move savectx() to <machine/pcb.h>.
A lot of files got these MD prototypes through the indirect inclusion
of <machine/cpu.h> and now need to include <machine/md_var.h>. The
number of which is unexpectedly large...
osf1_misc.c especially is tricky because szsigcode is redefined in
one of the osf1 header files. Reordering of the include files was
needed.
linprocfs.c now needs an explicit extern declaration.
Tested with: LINT
Diffstat (limited to 'sys/alpha/include/cpu.h')
-rw-r--r-- | sys/alpha/include/cpu.h | 59 |
1 files changed, 2 insertions, 57 deletions
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index 75edd1d..d9a76e4 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -52,8 +52,6 @@ #include <machine/frame.h> -#define cpu_getstack(td) (alpha_pal_rdusp()) - /* * Arguments to hardclock and gatherstats encapsulate the previous * machine state in an opaque clockframe. One the Alpha, we use @@ -98,67 +96,14 @@ struct clockframe { #ifdef _KERNEL -struct pcb; -struct thread; -struct reg; -struct rpb; -struct trapframe; - -extern struct rpb *hwrpb; -extern volatile int mc_expected, mc_received; +#define cpu_getstack(td) (alpha_pal_rdusp()) +#define get_cyclecount alpha_rpcc void cpu_halt(void); void cpu_reset(void); void fork_trampoline(void); /* MAGIC */ void swi_vm(void *); -/* XXX the following should not be here. */ -void XentArith(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ -void XentIF(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ -void XentInt(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ -void XentMM(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ -void XentRestart(void); /* MAGIC */ -void XentSys(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ -void XentUna(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ -void alpha_init(u_long, u_long, u_long, u_long, u_long); -void alpha_fpstate_check(struct thread *td); -void alpha_fpstate_drop(struct thread *td); -void alpha_fpstate_save(struct thread *td, int write); -void alpha_fpstate_switch(struct thread *td); -int alpha_pa_access(u_long); -int badaddr (void *, size_t); -int badaddr_read(void *, size_t, void *); -u_int64_t console_restart(u_int64_t, u_int64_t, u_int64_t); -void dumpconf(void); -void exception_return(void); /* MAGIC */ -void frametoreg(struct trapframe *, struct reg *); -long fswintrberr(void); /* MAGIC */ -void init_prom_interface(struct rpb*); -void interrupt(unsigned long, unsigned long, unsigned long, - struct trapframe *); -void machine_check(unsigned long, struct trapframe *, unsigned long, - unsigned long); -u_int64_t hwrpb_checksum(void); -void hwrpb_restart_setup(void); -void regdump(struct trapframe *); -void regtoframe(struct reg *, struct trapframe *); -void savectx(struct pcb *); -void set_iointr(void (*)(void *, unsigned long)); -void switch_exit(struct thread *); /* MAGIC */ -void syscall(u_int64_t, struct trapframe *); -void trap(unsigned long, unsigned long, unsigned long, unsigned long, - struct trapframe *); - -/* - * Return contents of in-cpu fast counter as a sort of "bogo-time" - * for non-critical timing. - */ -static __inline u_int64_t -get_cyclecount(void) -{ - return (alpha_rpcc()); -} - #endif /* _KERNEL */ #endif /* _ALPHA_CPU_H_ */ |