|
@@ -15,9 +15,7 @@
|
|
#include <asm/mmu_context.h>
|
|
#include <asm/mmu_context.h>
|
|
|
|
|
|
/**
|
|
/**
|
|
- * sh64_tlb_init
|
|
|
|
- *
|
|
|
|
- * Perform initial setup for the DTLB and ITLB.
|
|
|
|
|
|
+ * sh64_tlb_init - Perform initial setup for the DTLB and ITLB.
|
|
*/
|
|
*/
|
|
int __init sh64_tlb_init(void)
|
|
int __init sh64_tlb_init(void)
|
|
{
|
|
{
|
|
@@ -46,9 +44,7 @@ int __init sh64_tlb_init(void)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * sh64_next_free_dtlb_entry
|
|
|
|
- *
|
|
|
|
- * Find the next available DTLB entry
|
|
|
|
|
|
+ * sh64_next_free_dtlb_entry - Find the next available DTLB entry
|
|
*/
|
|
*/
|
|
unsigned long long sh64_next_free_dtlb_entry(void)
|
|
unsigned long long sh64_next_free_dtlb_entry(void)
|
|
{
|
|
{
|
|
@@ -56,9 +52,7 @@ unsigned long long sh64_next_free_dtlb_entry(void)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * sh64_get_wired_dtlb_entry
|
|
|
|
- *
|
|
|
|
- * Allocate a wired (locked-in) entry in the DTLB
|
|
|
|
|
|
+ * sh64_get_wired_dtlb_entry - Allocate a wired (locked-in) entry in the DTLB
|
|
*/
|
|
*/
|
|
unsigned long long sh64_get_wired_dtlb_entry(void)
|
|
unsigned long long sh64_get_wired_dtlb_entry(void)
|
|
{
|
|
{
|
|
@@ -71,12 +65,10 @@ unsigned long long sh64_get_wired_dtlb_entry(void)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * sh64_put_wired_dtlb_entry
|
|
|
|
|
|
+ * sh64_put_wired_dtlb_entry - Free a wired (locked-in) entry in the DTLB.
|
|
*
|
|
*
|
|
* @entry: Address of TLB slot.
|
|
* @entry: Address of TLB slot.
|
|
*
|
|
*
|
|
- * Free a wired (locked-in) entry in the DTLB.
|
|
|
|
- *
|
|
|
|
* Works like a stack, last one to allocate must be first one to free.
|
|
* Works like a stack, last one to allocate must be first one to free.
|
|
*/
|
|
*/
|
|
int sh64_put_wired_dtlb_entry(unsigned long long entry)
|
|
int sh64_put_wired_dtlb_entry(unsigned long long entry)
|
|
@@ -115,7 +107,7 @@ int sh64_put_wired_dtlb_entry(unsigned long long entry)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * sh64_setup_tlb_slot
|
|
|
|
|
|
+ * sh64_setup_tlb_slot - Load up a translation in a wired slot.
|
|
*
|
|
*
|
|
* @config_addr: Address of TLB slot.
|
|
* @config_addr: Address of TLB slot.
|
|
* @eaddr: Virtual address.
|
|
* @eaddr: Virtual address.
|
|
@@ -154,7 +146,7 @@ inline void sh64_setup_tlb_slot(unsigned long long config_addr,
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * sh64_teardown_tlb_slot
|
|
|
|
|
|
+ * sh64_teardown_tlb_slot - Teardown a translation.
|
|
*
|
|
*
|
|
* @config_addr: Address of TLB slot.
|
|
* @config_addr: Address of TLB slot.
|
|
*
|
|
*
|