Re: [RFC PATCH 02/34] ARM: mm: make 2-level pgd_t a scalar

From: Yeoreum Yun

Date: Thu Jul 16 2026 - 06:57:52 EST


Hi,

> On Mon, Jul 13, 2026, at 15:55, Yeoreum Yun wrote:
>
> > typedef pteval_t pte_t;
> > typedef pmdval_t pmd_t;
> > -typedef pmdval_t pgd_t[2];
> > +typedef pgdval_t pgd_t;
> > typedef pteval_t pgprot_t;
> >
>
> Just noticed one more issue here, I think this will break these
> two macros that now access four entries instead of two:
>
> #define copy_pmd(pmdpd,pmdps) \
> do { \
> pmdpd[0] = pmdps[0]; \
> pmdpd[1] = pmdps[1]; \
> flush_pmd_entry(pmdpd); \
> } while (0)
>
> #define pmd_clear(pmdp) \
> do { \
> pmdp[0] = __pmd(0); \
> pmdp[1] = __pmd(0); \
> clean_pmd_entry(pmdp); \
> } while (0)
>
> Arnd

I don't this this change wouldn't affect for this macros since
both of them still uses *pmd_t* which is u32.
So it still only changes tow entries.

--
Sincerely,
Yeoreum Yun