Re: why no different definitions of __pte

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In my view, this macro will initial all members in struct with value x.

BTW, I have not found this header file in 2.6.32 kernel, or it's out of date.

2010/8/2 Parmenides <mobile.parmenides@xxxxxxxxx>
Hi,

In include/asm-i386/page.h, the pte_t is defined like this

#ifdef CONFIG_X86_PAE
typedef struct { unsigned long pte_low, pte_high; } pte_t;
#else
typedef struct { unsigned long pte_low; } pte_t;
#endif

in other words, the pte_t is defined according to two situations
respectively. But, a subsequent macro

#define __pte(x) ((pte_t) { (x) } )

is unique yet.

In PAE's case, I think that the __pte should have two parameters that
doesn't exist at all. This really puzzle me.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux