|
From: Ken T. <ke...@we...> - 2001-09-30 10:00:00
|
On Sat, 29 Sep 2001, Rene Brothuhn wrote: > OK, I`l describe it. If you use __get_free_pages(GFP_ATOMIC, 1) you get > 2 pages and you will probably apply 8192 to the size argument of > kernel_set_cachemode(). Thats OK. > But if you apply sizeof(struct x) to the size argument and sizeof(struct > x) isn`t a multiply of PAGE_SIZE then the last page is not remapped by > kernel_set_cachemode(). Because the loop in kernel_set_cachemode() is > initialized at value: size = size / PAGE_SIZE. > If size = 10000, so you have to remap 3 pages, but 10000 / 4096 = > 2(u_long) and the loop only remaps 2 pages. > > I hope now its clear what I mean. Yes, clear as mud ;) > > Thinking about yet another play with the A4091... Well, I won't bother then as nothing's affected. Thanks, Ken. |