From owner-freebsd-hackers Mon Jul 19 14:17:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id F0F1014D69 for ; Mon, 19 Jul 1999 14:17:27 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <40325>; Tue, 20 Jul 1999 06:57:59 +1000 Date: Tue, 20 Jul 1999 07:16:10 +1000 From: Peter Jeremy Subject: Re: Determining the return address In-reply-to: To: hackers@FreeBSD.ORG Cc: des@flood.ping.uio.no Message-Id: <99Jul20.065759est.40325@border.alcanet.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav wrote: >Alfred Perlstein writes: >> specifically how you say you increment it, then decrement it, >> if you have multiple handlers where one can interupt another >> you can have the counter get jumbled. > >Not if increment / decrement is atomic. Which it _isn't_ in general. The only case where it _is_ atomic is on a UP i386, where the compiler has generated an `inc' instruction (which it might not). Check out /sys/alpha/include/atomic.h or a recent (less than a week old [1]) -current version of /sys/i386/include/atomic.h for atomic code. Peter [1] It was broken prior to this. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message