diff options
author | Simon Glass <sjg@chromium.org> | 2025-03-15 14:25:40 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-03 11:41:55 -0600 |
commit | b4a3ebe30426712a1981eb3bf53992d88bae01e3 (patch) | |
tree | f359bbf91f47ca83f3bf5a0ac870bfb58ba8eb9d /arch/x86/cpu/i386/cpu.c | |
parent | ffd92a25be3feb4d9ff8393781ce65896cf9a3b6 (diff) |
x86: Rename the _D dirty flag
This value happens to be used by ctype.h so chose a different name.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/i386/cpu.c')
-rw-r--r-- | arch/x86/cpu/i386/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c index 845e00ca439..b108f724c51 100644 --- a/arch/x86/cpu/i386/cpu.c +++ b/arch/x86/cpu/i386/cpu.c @@ -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); } |