diff options
author | imp <imp@FreeBSD.org> | 2010-07-15 03:56:08 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-07-15 03:56:08 +0000 |
commit | 3c7324dbb668f6e9d65abd7a6bbba131fa47b1eb (patch) | |
tree | a86dded402de1da14d1c0af80b64d01755f73d99 /sys | |
parent | 2708628cd3f7c5d62efd61ef0ae95f847d98c925 (diff) | |
download | FreeBSD-src-3c7324dbb668f6e9d65abd7a6bbba131fa47b1eb.zip FreeBSD-src-3c7324dbb668f6e9d65abd7a6bbba131fa47b1eb.tar.gz |
Move TLB definitions to tlb.h
Diffstat (limited to 'sys')
-rw-r--r-- | sys/mips/include/cpu.h | 18 | ||||
-rw-r--r-- | sys/mips/include/tlb.h | 21 |
2 files changed, 20 insertions, 19 deletions
diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h index 614bb97..91de2b7 100644 --- a/sys/mips/include/cpu.h +++ b/sys/mips/include/cpu.h @@ -62,24 +62,6 @@ /* END: These are going away */ /* - * The first TLB entry that write random hits. - * TLB entry 0 maps the kernel stack of the currently running thread - * TLB entry 1 maps the pcpu area of processor (only for SMP builds) - */ -#define KSTACK_TLB_ENTRY 0 -#ifdef SMP -#define PCPU_TLB_ENTRY 1 -#define VMWIRED_ENTRIES 2 -#else -#define VMWIRED_ENTRIES 1 -#endif /* SMP */ - -/* - * The number of process id entries. - */ -#define VMNUM_PIDS 256 - -/* * Exported definitions unique to mips cpu support. */ diff --git a/sys/mips/include/tlb.h b/sys/mips/include/tlb.h index 1092d02..b38cf2b 100644 --- a/sys/mips/include/tlb.h +++ b/sys/mips/include/tlb.h @@ -29,12 +29,31 @@ #ifndef _MACHINE_TLB_H_ #define _MACHINE_TLB_H_ +/* + * The first TLB entry that write random hits. + * TLB entry 0 maps the kernel stack of the currently running thread + * TLB entry 1 maps the pcpu area of processor (only for SMP builds) + */ +#define KSTACK_TLB_ENTRY 0 +#ifdef SMP +#define PCPU_TLB_ENTRY 1 +#define VMWIRED_ENTRIES 2 +#else +#define VMWIRED_ENTRIES 1 +#endif /* SMP */ + +/* + * The number of process id entries. + */ +#define VMNUM_PIDS 256 + +extern int num_tlbentries; + void tlb_insert_wired(unsigned, vm_offset_t, pt_entry_t, pt_entry_t); void tlb_invalidate_address(struct pmap *, vm_offset_t); void tlb_invalidate_all(void); void tlb_invalidate_all_user(struct pmap *); void tlb_save(void); void tlb_update(struct pmap *, vm_offset_t, pt_entry_t); -extern int num_tlbentries; #endif /* !_MACHINE_TLB_H_ */ |