From c1d4b42a69d212864fda73f4a1ec45d498893879 Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 16 Aug 2003 16:57:57 +0000 Subject: Further cleanup and : move the MI prototypes of cpu_halt(), cpu_reset() and swi_vm() from md_var.h to cpu.h. This affects db_command.c and kern_shutdown.c. ia64: move all MD prototypes from cpu.h to md_var.h. This affects madt.c, interrupt.c and mp_machdep.c. Remove is_physical_memory(). It's not used (vm_machdep.c). alpha: the MD prototypes have been left in cpu.h with a comment that they should be there. Moving them is left for later. It was expected that the impact would be significant enough to be done in a seperate commit. powerpc: MD prototypes left in cpu.h. Comment added. Suggested by: bde Tested with: make universe (pc98 incomplete) --- sys/alpha/include/cpu.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/alpha/include/cpu.h') diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index 0e39182..75edd1d 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -107,6 +107,12 @@ struct trapframe; extern struct rpb *hwrpb; extern volatile int mc_expected, mc_received; +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 */ @@ -139,7 +145,6 @@ void regtoframe(struct reg *, struct trapframe *); void savectx(struct pcb *); void set_iointr(void (*)(void *, unsigned long)); void switch_exit(struct thread *); /* MAGIC */ -void fork_trampoline(void); /* MAGIC */ void syscall(u_int64_t, struct trapframe *); void trap(unsigned long, unsigned long, unsigned long, unsigned long, struct trapframe *); -- cgit v1.1