Re: [PATCH] RFC : Page table macros

From: Ian Wienand <>
Date: 2005-11-17 10:19:14
On Wed, Nov 16, 2005 at 02:53:14PM -0800, Chen, Kenneth W wrote:
> Ian Wienand wrote on Wednesday, November 16, 2005 2:42 PM
> > Well, therein lies my point.  Is it the size of a pointer or is it the
> > size of a pte/middle/uppper/global directory entry?
> I think you are mixing up with pte_t versus {pmd_t, pud_t, pgd_t}.
> Or maybe we simply don't understand each other :-(

This type of conversation is always hard over email!

The very way those entries are defined implies a level of abstraction.
For example  

typedef struct { unsigned long pmd; } pmd_t;
# define pmd_val(x)     ((x).pmd)

Now it's conceivable (if unlikely) that you might make a pmd have
another field.  Nothing should care because if it gets the value of
the pmd via the pmd_val macro, which returns the right thing.
However, you'd have to manually go through ivt.S to replace all the

So what we are saying in ivt.S is not really "size of a pointer" but
"size of a pmd entry".  They happen to be the same thing, but why
leave the definitions in two places at once?

Anyway, I'm not all that fussed about the ivt.S changes, as you say it
is very low level anyway.  But the assumptions in pgtable.h have
caused me grief before so my main argument would be for something like


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

Received on Thu Nov 17 10:19:54 2005

This archive was generated by hypermail 2.1.8 : 2005-11-17 10:20:12 EST