x86: Rename the _D dirty flag
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:40 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
This value happens to be used by ctype.h so chose a different name.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/i386/cpu.c

index 845e00c..b108f72 100644 (file)
@@ -596,7 +596,7 @@ int cpu_has_64bit(void)
 #define _RW   BIT(1)   /* write allowed */
 #define _US   BIT(2)   /* user-access allowed */
 #define _A    BIT(5)   /* has been accessed */
-#define _D    BIT(6)   /* has been written to */
+#define _DT   BIT(6)   /* has been written to */
 #define _PS   BIT(7)   /* indicates 2MB page size here */
 
 /**
@@ -620,7 +620,7 @@ static void build_pagetable(uint32_t *pgtable)
 
        /* Level 2 has 2048 64-bit entries, each repesenting 2MiB */
        for (i = 0; i < 2048; i++)
-               pgtable[2048 + i * 2] = _PRES + _RW + _US + _PS + _A +  _D +
+               pgtable[2048 + i * 2] = _PRES + _RW + _US + _PS + _A +  _DT +
                                         (i << 21UL);
 }