Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/mm/tlb.h

    re2d97d7 r7a0359b  
    3636#define KERN_mips32_TLB_H_
    3737
    38 #include <arch/types.h>
    3938#include <typedefs.h>
    4039#include <arch/mm/asid.h>
    4140#include <arch/exception.h>
     41#include <trace.h>
    4242
    4343#define TLB_ENTRY_COUNT  48
     
    5959typedef union {
    6060        struct {
    61 #ifdef BIG_ENDIAN
     61#ifdef __BE__
    6262                unsigned : 2;       /* zero */
    6363                unsigned pfn : 24;  /* frame number */
     
    8080typedef union {
    8181        struct {
    82 #ifdef BIG_ENDIAN
     82#ifdef __BE__
    8383                unsigned vpn2 : 19;
    8484                unsigned : 5;
     
    9595typedef union {
    9696        struct {
    97 #ifdef BIG_ENDIAN
     97#ifdef __BE__
    9898                unsigned : 7;
    9999                unsigned mask : 12;
     
    110110typedef union {
    111111        struct {
    112 #ifdef BIG_ENDIAN
     112#ifdef __BE__
    113113                unsigned p : 1;
    114114                unsigned : 27;
     
    127127 * Probe TLB for Matching Entry.
    128128 */
    129 static inline void tlbp(void)
     129NO_TRACE static inline void tlbp(void)
    130130{
    131131        asm volatile ("tlbp\n\t");
     
    137137 * Read Indexed TLB Entry.
    138138 */
    139 static inline void tlbr(void)
     139NO_TRACE static inline void tlbr(void)
    140140{
    141141        asm volatile ("tlbr\n\t");
     
    146146 * Write Indexed TLB Entry.
    147147 */
    148 static inline void tlbwi(void)
     148NO_TRACE static inline void tlbwi(void)
    149149{
    150150        asm volatile ("tlbwi\n\t");
     
    155155 * Write Random TLB Entry.
    156156 */
    157 static inline void tlbwr(void)
     157NO_TRACE static inline void tlbwr(void)
    158158{
    159159        asm volatile ("tlbwr\n\t");
Note: See TracChangeset for help on using the changeset viewer.