Re: pte_val(*pte) as lvalue

Russell King (rmk@arm.linux.org.uk)
Tue, 3 Jul 2001 19:43:00 +0100


On Tue, Jul 03, 2001 at 01:32:36PM -0500, Timur Tabi wrote:
> ** Reply to message from Andi Kleen <ak@suse.de> on 03 Jul 2001 01:33:42 +0200
> > set_pte(pte, mk_pte( ... ))
>
> I'm not sure how to use mk_pte. The first parameter is a struct page *,
> which I don't have. All I'm doing is modifying the PTE value. I don't
> want to "make" another one.

set_pte is the only way you can guarantee that the architecture
implementation gets to do what it needs to do with the PTE value
before stuffing it into the PTE tables.

Can I ask what the nature of the PTE modification is, and where you
are making this modification?

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- 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/