summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-16 16:57:57 +0000
committermarcel <marcel@FreeBSD.org>2003-08-16 16:57:57 +0000
commitc1d4b42a69d212864fda73f4a1ec45d498893879 (patch)
treed0ded423708b55f6864084633815a6dea9bdd44a /sys/sparc64
parent76d162d172781aa8110f4f7146542b1092e42d56 (diff)
downloadFreeBSD-src-c1d4b42a69d212864fda73f4a1ec45d498893879.zip
FreeBSD-src-c1d4b42a69d212864fda73f4a1ec45d498893879.tar.gz
Further cleanup <machine/cpu.h> and <machine/md_var.h>: 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)
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/cpu.h3
-rw-r--r--sys/sparc64/include/md_var.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/include/cpu.h b/sys/sparc64/include/cpu.h
index f0caebf..d92d724 100644
--- a/sys/sparc64/include/cpu.h
+++ b/sys/sparc64/include/cpu.h
@@ -77,7 +77,10 @@
extern char btext[];
extern char etext[];
+void cpu_halt(void);
+void cpu_reset(void);
void fork_trampoline(void);
+void swi_vm(void *v);
static __inline u_int64_t
get_cyclecount(void)
diff --git a/sys/sparc64/include/md_var.h b/sys/sparc64/include/md_var.h
index 4cf0348..899d1bb 100644
--- a/sys/sparc64/include/md_var.h
+++ b/sys/sparc64/include/md_var.h
@@ -46,12 +46,9 @@ extern vm_paddr_t kstack0_phys;
struct pcpu;
-void cpu_halt(void);
void cpu_identify(u_long vers, u_int clock, u_int id);
-void cpu_reset(void);
void cpu_setregs(struct pcpu *pc);
int is_physical_memory(vm_paddr_t addr);
-void swi_vm(void *v);
cpu_block_copy_t spitfire_block_copy;
cpu_block_zero_t spitfire_block_zero;
OpenPOWER on IntegriCloud