Subversion Repositories HelenOS

Rev

Rev 2071 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2089
Line 77... Line 77...
77
#ifndef __ASM__
77
#ifndef __ASM__
78
 
78
 
79
#include <arch/asm.h>
79
#include <arch/asm.h>
80
#include <arch/barrier.h>
80
#include <arch/barrier.h>
81
#include <arch/types.h>
81
#include <arch/types.h>
82
#include <typedefs.h>
-
 
83
 
82
 
84
/** LSU Control Register. */
83
/** LSU Control Register. */
85
union lsu_cr_reg {
84
typedef union {
86
    uint64_t value;
85
    uint64_t value;
87
    struct {
86
    struct {
88
        unsigned : 23;
87
        unsigned : 23;
89
        unsigned pm : 8;
88
        unsigned pm : 8;
90
        unsigned vm : 8;
89
        unsigned vm : 8;
Line 98... Line 97...
98
        unsigned im : 1;    /**< I-MMU enable. */
97
        unsigned im : 1;    /**< I-MMU enable. */
99
        unsigned dc : 1;    /**< D-Cache enable. */
98
        unsigned dc : 1;    /**< D-Cache enable. */
100
        unsigned ic : 1;    /**< I-Cache enable. */
99
        unsigned ic : 1;    /**< I-Cache enable. */
101
       
100
       
102
    } __attribute__ ((packed));
101
    } __attribute__ ((packed));
103
};
-
 
104
typedef union lsu_cr_reg lsu_cr_reg_t;
102
} lsu_cr_reg_t;
105
 
103
 
106
#endif /* !def __ASM__ */
104
#endif /* !def __ASM__ */
107
 
105
 
108
#endif
106
#endif
109
 
107