diff options
author | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-11-27 00:08:28 +0000 |
---|---|---|
committer | Takuya ASADA <syuu@cvs.openbsd.org> | 2009-11-27 00:08:28 +0000 |
commit | 195eb75588cdb8ec88ca9985c49402c1780706ba (patch) | |
tree | 0697d4ac521a096e16f1ff2e86992af4a555fa5c /sys/arch/sgi | |
parent | ff500d53e0a8255f083e6114a7be1b80083069d7 (diff) |
atomic counter increment for SMP.
ok jsing@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/intr_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/sgi/intr_template.c b/sys/arch/sgi/sgi/intr_template.c index 9880ab66998..2aedc63af6c 100644 --- a/sys/arch/sgi/sgi/intr_template.c +++ b/sys/arch/sgi/sgi/intr_template.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr_template.c,v 1.6 2009/11/25 17:39:51 syuu Exp $ */ +/* $OpenBSD: intr_template.c,v 1.7 2009/11/27 00:08:27 syuu Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. @@ -156,7 +156,7 @@ INTR_FUNCTIONNAME(uint32_t hwpend, struct trap_frame *frame) splraise(ih->ih_level); if ((*ih->ih_fun)(ih->ih_arg) != 0) { rc = 1; - ih->ih_count.ec_count++; + atomic_add_uint64(&ih->ih_count.ec_count, 1); } __asm__ (".set noreorder\n"); ci->ci_ipl = ipl; |