Skip to content

Commit ec5a435

Browse files
authored
Update linux-mm-2.md
1 parent f154ac9 commit ec5a435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MM/linux-mm-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static inline void __native_flush_tlb_single(unsigned long addr)
483483
}
484484
```
485485
486-
不支持时调用 `__flush_tlb` 更新 `cr3` 寄存器。在这步结束之后 `__early_set_fixmap` 函数就执行完了,我们又可以回到 `__early_ioremap` 的实现了。因为我们为给定的地址设定了固定映射区域,我们需要将 I/O 重映射的区域的基虚拟地址用 `slot` 下标保存在 `prev_map` 数组中。
486+
否则,调用 `__flush_tlb` 更新 `cr3` 寄存器。在这步结束之后 `__early_set_fixmap` 函数就执行完了,我们又可以回到 `__early_ioremap` 的实现了。因为我们为给定的地址设定了固定映射区域,我们需要将 I/O 重映射的区域的基虚拟地址用 `slot` 下标保存在 `prev_map` 数组中。
487487
488488
```C
489489
prev_map[slot] = (void __iomem *)(offset + slot_virt[slot]);

0 commit comments

Comments
 (0)