|
From: Rene B. <re...@we...> - 2001-09-28 17:55:16
|
Alan Buxey wrote: > > is 8192 just one page, or would you expect it to be 2? 8192 are 2 pages (pagesize =3D 4096), but __get_free_pages() gives you 1=20 page for 0 and 2 pages for 1 and 3 pages for 2 and so on... > > how about using a sizeof((*np)) instead of the 8192? Doesn`t work properly with kernel_set_cachemode(). I posted yesterday there was a problem in kernel_set_cachemode(). Thats=20 not true. I have made some changes in kernel_set_cachemode(), so that=20 the loop-counter wasn`t calculated correctly anymore. Blame on me! I=20 hope that no one has wasted time to looking whats up in=20 kernel_set_cachemode()... Nevertheless, kernel_set_cachemode() does not set the cachemode for the=20 last page, if the upper boundary of size does not end up at a multiply=20 of PAGE_SIZE (as it will be with sizeof()). Some little changes should=20 fix this. Maybe its not necessary, but I think the code were more=20 reliable. Maybe I fix it later. Ciao, Ren=E8 |