Subversion Repositories HelenOS

Rev

Rev 3153 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3153 Rev 4341
Line 53... Line 53...
53
{
53
{
54
    asm volatile (
54
    asm volatile (
55
        "dcbst 0, %0\n"
55
        "dcbst 0, %0\n"
56
        "sync\n"
56
        "sync\n"
57
        "icbi 0, %0\n"
57
        "icbi 0, %0\n"
-
 
58
        "sync\n"
58
        "isync\n"
59
        "isync\n"
59
        :: "r" (addr)
60
        :: "r" (addr)
60
    );
61
    );
61
}
62
}
62
 
63
 
Line 74... Line 75...
74
 
75
 
75
    for (i = 0; i < len; i += COHERENCE_INVAL_MIN) {
76
    for (i = 0; i < len; i += COHERENCE_INVAL_MIN) {
76
        asm volatile ("icbi 0, %0\n" :: "r" (addr + i));
77
        asm volatile ("icbi 0, %0\n" :: "r" (addr + i));
77
    }
78
    }
78
 
79
 
79
    asm volatile ("isync");
80
    asm volatile (
-
 
81
        "sync\n"
-
 
82
        "isync\n"
-
 
83
    );
80
}
84
}
81
 
85
 
82
#endif
86
#endif
83
 
87
 
84
/** @}
88
/** @}