mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 08:16:49 +07:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
64 lines
2.5 KiB
C
64 lines
2.5 KiB
C
#ifndef _SPARC_TLBFLUSH_H
|
|
#define _SPARC_TLBFLUSH_H
|
|
|
|
#include <linux/config.h>
|
|
#include <linux/mm.h>
|
|
// #include <asm/processor.h>
|
|
|
|
/*
|
|
* TLB flushing:
|
|
*
|
|
* - flush_tlb() flushes the current mm struct TLBs XXX Exists?
|
|
* - flush_tlb_all() flushes all processes TLBs
|
|
* - flush_tlb_mm(mm) flushes the specified mm context TLB's
|
|
* - flush_tlb_page(vma, vmaddr) flushes one page
|
|
* - flush_tlb_range(vma, start, end) flushes a range of pages
|
|
* - flush_tlb_kernel_range(start, end) flushes a range of kernel pages
|
|
* - flush_tlb_pgtables(mm, start, end) flushes a range of page tables
|
|
*/
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
BTFIXUPDEF_CALL(void, local_flush_tlb_all, void)
|
|
BTFIXUPDEF_CALL(void, local_flush_tlb_mm, struct mm_struct *)
|
|
BTFIXUPDEF_CALL(void, local_flush_tlb_range, struct vm_area_struct *, unsigned long, unsigned long)
|
|
BTFIXUPDEF_CALL(void, local_flush_tlb_page, struct vm_area_struct *, unsigned long)
|
|
|
|
#define local_flush_tlb_all() BTFIXUP_CALL(local_flush_tlb_all)()
|
|
#define local_flush_tlb_mm(mm) BTFIXUP_CALL(local_flush_tlb_mm)(mm)
|
|
#define local_flush_tlb_range(vma,start,end) BTFIXUP_CALL(local_flush_tlb_range)(vma,start,end)
|
|
#define local_flush_tlb_page(vma,addr) BTFIXUP_CALL(local_flush_tlb_page)(vma,addr)
|
|
|
|
extern void smp_flush_tlb_all(void);
|
|
extern void smp_flush_tlb_mm(struct mm_struct *mm);
|
|
extern void smp_flush_tlb_range(struct vm_area_struct *vma,
|
|
unsigned long start,
|
|
unsigned long end);
|
|
extern void smp_flush_tlb_page(struct vm_area_struct *mm, unsigned long page);
|
|
|
|
#endif /* CONFIG_SMP */
|
|
|
|
BTFIXUPDEF_CALL(void, flush_tlb_all, void)
|
|
BTFIXUPDEF_CALL(void, flush_tlb_mm, struct mm_struct *)
|
|
BTFIXUPDEF_CALL(void, flush_tlb_range, struct vm_area_struct *, unsigned long, unsigned long)
|
|
BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long)
|
|
|
|
// Thanks to Anton Blanchard, our pagetables became uncached in 2.4. Wee!
|
|
// extern void flush_tlb_pgtables(struct mm_struct *mm,
|
|
// unsigned long start, unsigned long end);
|
|
#define flush_tlb_pgtables(mm, start, end) do{ }while(0)
|
|
|
|
#define flush_tlb_all() BTFIXUP_CALL(flush_tlb_all)()
|
|
#define flush_tlb_mm(mm) BTFIXUP_CALL(flush_tlb_mm)(mm)
|
|
#define flush_tlb_range(vma,start,end) BTFIXUP_CALL(flush_tlb_range)(vma,start,end)
|
|
#define flush_tlb_page(vma,addr) BTFIXUP_CALL(flush_tlb_page)(vma,addr)
|
|
|
|
// #define flush_tlb() flush_tlb_mm(current->active_mm) /* XXX Sure? */
|
|
|
|
/*
|
|
* This is a kludge, until I know better. --zaitcev XXX
|
|
*/
|
|
#define flush_tlb_kernel_range(start, end) flush_tlb_all()
|
|
|
|
#endif /* _SPARC_TLBFLUSH_H */
|