public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pte_val(*pte) as lvalue
@ 2001-07-02 23:22 Timur Tabi
  0 siblings, 0 replies; 7+ messages in thread
From: Timur Tabi @ 2001-07-02 23:22 UTC (permalink / raw)
  To: Linux Kernel Mailing list

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
lvalue.

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


-- 
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-07-03 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <9LUWoC.A.W3G.sIQQ7@dinero.interactivesi.com.suse.lists.linux.kernel>
2001-07-02 23:33 ` pte_val(*pte) as lvalue Andi Kleen
2001-07-03 19:55   ` eCos Matthew M. DeLoera
2001-07-03 18:32 ` pte_val(*pte) as lvalue Timur Tabi
2001-07-03 18:43   ` Russell King
2001-07-03 18:50     ` Timur Tabi
2001-07-03 19:11       ` Russell King
2001-07-02 23:22 Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox