提交 090cb072 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

be more precise about what needs to be atomic in tlbflush()

上级 637baf23
...@@ -221,10 +221,11 @@ tlbflush() ...@@ -221,10 +221,11 @@ tlbflush()
pushcli(); pushcli();
int myid = mycpu()->id; int myid = mycpu()->id;
lcr3(rcr3()); lcr3(rcr3());
popcli();
for (int i = 0; i < ncpu; i++) for (int i = 0; i < ncpu; i++)
if (i != myid) if (i != myid)
lapic_tlbflush(i); lapic_tlbflush(i);
popcli();
for (int i = 0; i < ncpu; i++) for (int i = 0; i < ncpu; i++)
if (i != myid) if (i != myid)
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论