It should be possible, in a "portable" program, to map the two pages you
want and then test to see whether they are aliasing correctly.
Write to one and read from the other page, and vice versa. Repeat a few
thousand times just in case you were interrupted in the middle.
That is my approach to creating circular buffers (which is the question
which started this thread).
Unfortunately, the update_mmu_cache makes aliasing work properly while
ruining performence, so then it's better to not to use the mapping trick
at all in that case. To check for this, I have to call gettimeofday()
between pairs of accesses, to check whether they are slow. I don't know
for sure if this works because I don't have an ARM to try it on.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/