diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-17 22:05:48 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-17 22:05:48 +0000 |
commit | 41f961867b0614b088d46ce5cbdf6a4d274848b4 (patch) | |
tree | 530d3c57f6fd8d9c38911aebc9137e36d436e58c /sys/arch/hppa | |
parent | 7f33aa2f59d67ead13e253a82b4241d038e46a5d (diff) |
try to deal w/ a premature clock interrupt; does not break the 'it works scenario'
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/intr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/intr.c b/sys/arch/hppa/hppa/intr.c index c4d847c3e2f..c9b1de4ecb1 100644 --- a/sys/arch/hppa/hppa/intr.c +++ b/sys/arch/hppa/hppa/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.4 2002/12/17 21:54:25 mickey Exp $ */ +/* $OpenBSD: intr.c,v 1.5 2002/12/17 22:05:47 mickey Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -141,10 +141,12 @@ cpu_intr_init() mfctl(CR_ITMR, mask); mtctl(mask - 1, CR_ITMR); + mtctl(cpu_mask, CR_EIEM); + mtctl((1 << 31), CR_EIRR); + cold = 0; - /* in spl*() we trust, clock is enabled in initclocks() */ - mtctl(cpu_mask, CR_EIEM); + /* in spl*() we trust, clock is started in initclocks() */ kpsw |= PSL_I; __asm __volatile("ssm %0, %%r0" :: "i" (PSL_I)); } |