[lkml]   [2001]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectpte_val(*pte) as lvalue
In my driver, I have this code:

unsigned long p = pte_val(*pte);

[set some bits in "p"]

pte_val(*pte) = p;

This works fine in 2.2, and 2.4 when PAE support is disabled. When PAE support
is enabled, it doesn't work, because the pte_val macro can no longer be an

What is the accepted way to assign an integer to a pte that works in 2.2 and

Timur Tabi -
Interactive Silicon -

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:55    [W:0.024 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site