提交 60e22cff 编写于 作者: M Max Filippov

xtensa: use ITLB_HIT_BIT instead of hardcoded number

There is ITLB_HIT_BIT macro, no need to use 0x8 to check for TLB hit.
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
上级 5a7ad114
...@@ -453,9 +453,9 @@ void cpu_reset(void) ...@@ -453,9 +453,9 @@ void cpu_reset(void)
tmpaddr += SZ_512M; tmpaddr += SZ_512M;
/* Invalidate mapping in the selected temporary area */ /* Invalidate mapping in the selected temporary area */
if (itlb_probe(tmpaddr) & 0x8) if (itlb_probe(tmpaddr) & BIT(ITLB_HIT_BIT))
invalidate_itlb_entry(itlb_probe(tmpaddr)); invalidate_itlb_entry(itlb_probe(tmpaddr));
if (itlb_probe(tmpaddr + PAGE_SIZE) & 0x8) if (itlb_probe(tmpaddr + PAGE_SIZE) & BIT(ITLB_HIT_BIT))
invalidate_itlb_entry(itlb_probe(tmpaddr + PAGE_SIZE)); invalidate_itlb_entry(itlb_probe(tmpaddr + PAGE_SIZE));
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册