diff options
author | jhb <jhb@FreeBSD.org> | 2001-03-28 03:06:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-03-28 03:06:10 +0000 |
commit | 3e3a661612c8296ecbe74b7f3b09965dacbb7ff9 (patch) | |
tree | 31bcf682861c81d34d0528babee47b8a1d4c44ba /sys/ia64 | |
parent | dea228e37800fc07cb4619f31e155310a4bad233 (diff) | |
download | FreeBSD-src-3e3a661612c8296ecbe74b7f3b09965dacbb7ff9.zip FreeBSD-src-3e3a661612c8296ecbe74b7f3b09965dacbb7ff9.tar.gz |
Switch from save/disable/restore_intr() to critical_enter/exit().
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/pmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 0c396c0..3743354f 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -409,13 +409,12 @@ pmap_invalidate_all(pmap_t pmap) { u_int64_t addr; int i, j; - u_int32_t psr; + critical_t psr; KASSERT(pmap == PCPU_GET(current_pmap), ("invalidating TLB for non-current pmap")); - psr = save_intr(); - disable_intr(); + psr = critical_enter(); addr = pmap_pte_e_base; for (i = 0; i < pmap_pte_e_count1; i++) { for (j = 0; j < pmap_pte_e_count2; j++) { @@ -424,7 +423,7 @@ pmap_invalidate_all(pmap_t pmap) } addr += pmap_pte_e_stride1; } - restore_intr(psr); + critical_exit(psr); } static void |