Rev 2021 | Rev 2036 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2021 | Rev 2028 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | #ifdef ia64 |
|
- | 30 | ||
29 | #include <print.h> |
31 | #include <print.h> |
30 | #include <test.h> |
32 | #include <test.h> |
31 | #include <mm/page.h> |
33 | #include <mm/page.h> |
32 | #include <mm/frame.h> |
34 | #include <mm/frame.h> |
33 | #include <mm/as.h> |
35 | #include <mm/as.h> |
34 | #include <arch/mm/page.h> |
36 | #include <arch/mm/page.h> |
35 | #include <arch/mm/tlb.h> |
37 | #include <arch/mm/tlb.h> |
36 | #include <arch/types.h> |
38 | #include <arch/types.h> |
37 | #include <debug.h> |
39 | #include <debug.h> |
38 | 40 | ||
39 | #ifdef ia64 |
- | |
40 | - | ||
41 | extern void tlb_invalidate_all(void); |
41 | extern void tlb_invalidate_all(void); |
42 | extern void tlb_invalidate_pages(asid_t asid, uintptr_t va, count_t cnt); |
42 | extern void tlb_invalidate_pages(asid_t asid, uintptr_t va, count_t cnt); |
43 | 43 | ||
44 | void test(void) |
44 | char * test(void) |
45 | { |
45 | { |
46 | tlb_entry_t entryi; |
46 | tlb_entry_t entryi; |
47 | tlb_entry_t entryd; |
47 | tlb_entry_t entryd; |
48 | 48 | ||
49 | int i; |
49 | int i; |
50 | 50 | ||
51 | entryd.word[0] = 0; |
51 | entryd.word[0] = 0; |
52 | entryd.word[1] = 0; |
52 | entryd.word[1] = 0; |
53 | 53 | ||
Line 78... | Line 78... | ||
78 | } |
78 | } |
79 | 79 | ||
80 | tlb_invalidate_pages(8,0x0c000,14); |
80 | tlb_invalidate_pages(8,0x0c000,14); |
81 | 81 | ||
82 | /*tlb_invalidate_all();*/ |
82 | /*tlb_invalidate_all();*/ |
83 | } |
83 | |
84 | - | ||
85 | #else |
- | |
86 | - | ||
87 | void test_purge1(void) |
84 | return NULL; |
88 | { |
- | |
89 | printf("This test is availaible only on IA64 platform.\n"); |
- | |
90 | } |
85 | } |
91 | 86 | ||
92 | #endif |
87 | #endif |