diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-16 16:57:57 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-16 16:57:57 +0000 |
commit | c1d4b42a69d212864fda73f4a1ec45d498893879 (patch) | |
tree | d0ded423708b55f6864084633815a6dea9bdd44a /sys/amd64 | |
parent | 76d162d172781aa8110f4f7146542b1092e42d56 (diff) | |
download | FreeBSD-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/amd64')
-rw-r--r-- | sys/amd64/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/amd64/include/md_var.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index e9b7fff..50ede9d 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -80,7 +80,10 @@ extern char btext[]; extern char etext[]; extern u_int tsc_present; +void cpu_halt(void); +void cpu_reset(void); void fork_trampoline(void); +void swi_vm(void *); /* * Return contents of in-cpu fast counter as a sort of "bogo-time" diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index 63e9b2b..0410916 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -58,8 +58,6 @@ struct fpreg; struct dbreg; void busdma_swi(void); -void cpu_halt(void); -void cpu_reset(void); void cpu_setregs(void); void doreti_iret(void) __asm(__STRING(doreti_iret)); void doreti_iret_fault(void) __asm(__STRING(doreti_iret_fault)); @@ -68,7 +66,6 @@ void fillw(int /*u_short*/ pat, void *base, size_t cnt); void pagezero(void *addr); int is_physical_memory(vm_offset_t addr); void setidt(int idx, alias_for_inthand_t *func, int typ, int dpl, int ist); -void swi_vm(void *); void fpstate_drop(struct thread *td); #endif /* !_MACHINE_MD_VAR_H_ */ |