mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:17:07 +08:00
fix:fixed variable misuse
This commit is contained in:
parent
9e680e9f86
commit
a25d3fd301
@ -125,7 +125,7 @@ void invalidate_writeback_dcache(unsigned long addr, int size)
|
|||||||
unsigned long start, end;
|
unsigned long start, end;
|
||||||
|
|
||||||
start = (addr + pcacheinfo->dcacheline_size -1) & (- pcacheinfo->dcacheline_size);
|
start = (addr + pcacheinfo->dcacheline_size -1) & (- pcacheinfo->dcacheline_size);
|
||||||
end = (end + size + pcacheinfo->dcacheline_size -1) & ( -pcacheinfo->dcacheline_size);
|
end = (addr + size + pcacheinfo->dcacheline_size -1) & ( -pcacheinfo->dcacheline_size);
|
||||||
|
|
||||||
while (start <end)
|
while (start <end)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user