mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 05:08:24 +00:00
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>
This commit is contained in:
parent
ffd92a25be
commit
b4a3ebe304
1 changed files with 2 additions and 2 deletions
|
@ -596,7 +596,7 @@ int cpu_has_64bit(void)
|
||||||
#define _RW BIT(1) /* write allowed */
|
#define _RW BIT(1) /* write allowed */
|
||||||
#define _US BIT(2) /* user-access allowed */
|
#define _US BIT(2) /* user-access allowed */
|
||||||
#define _A BIT(5) /* has been accessed */
|
#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 */
|
#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 */
|
/* Level 2 has 2048 64-bit entries, each repesenting 2MiB */
|
||||||
for (i = 0; i < 2048; i++)
|
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);
|
(i << 21UL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue