diff options
| author | zhao maosheng <[email protected]> | 2024-02-06 10:20:27 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-02-06 18:34:53 -0500 |
| commit | 49b17d01ac48949cdaa756a29657d59061822fa7 (patch) | |
| tree | 5a23c5ee9896cf7ce048ef6654b4c3367f98220f | |
| parent | cfcc72ee8a43c58824ce72c49b878b54e12db179 (diff) | |
preventing erroneous optimization of rt_ioremap_early
| -rw-r--r-- | libcpu/aarch64/common/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/aarch64/common/mmu.c b/libcpu/aarch64/common/mmu.c index 2485949367..68270df4ef 100644 --- a/libcpu/aarch64/common/mmu.c +++ b/libcpu/aarch64/common/mmu.c @@ -604,7 +604,7 @@ static int _map_single_page_2M(unsigned long *lv0_tbl, unsigned long va, void *rt_ioremap_early(void *paddr, size_t size) { - size_t count; + volatile size_t count; rt_ubase_t base; static void *tbl = RT_NULL; |
