diff options
author | jake <jake@FreeBSD.org> | 2002-03-13 04:43:45 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-03-13 04:43:45 +0000 |
commit | 89751e20c27db82879f0a6f9c83a527d641a6494 (patch) | |
tree | 2fcfdae5035db2e6e9182a95e453bbabfe49271a /sys/sparc64 | |
parent | be7100fe57aa64a8197bef9b5041ca5e905e851f (diff) | |
download | FreeBSD-src-89751e20c27db82879f0a6f9c83a527d641a6494.zip FreeBSD-src-89751e20c27db82879f0a6f9c83a527d641a6494.tar.gz |
Use intr_disable/intr_restore instead of doing it manually.
Submitted by: tmm
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/intr_machdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sparc64/sparc64/intr_machdep.c b/sys/sparc64/sparc64/intr_machdep.c index cd26a15..8d5643a 100644 --- a/sys/sparc64/sparc64/intr_machdep.c +++ b/sys/sparc64/sparc64/intr_machdep.c @@ -124,9 +124,7 @@ intr_setup(int pri, ih_func_t *ihf, int vec, iv_func_t *ivf, void *iva) { u_long ps; - ps = rdpr(pstate); - if (ps & PSTATE_IE) - wrpr(pstate, ps, PSTATE_IE); + ps = intr_disable(); if (vec != -1) { intr_vectors[vec].iv_func = ivf; intr_vectors[vec].iv_arg = iva; @@ -134,7 +132,7 @@ intr_setup(int pri, ih_func_t *ihf, int vec, iv_func_t *ivf, void *iva) intr_vectors[vec].iv_vec = vec; } intr_handlers[pri] = ihf; - wrpr(pstate, ps, 0); + intr_restore(ps); } static void |