mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Parag Warudkar <kernel-stuff@comcast.net>
To: Robert Love <rml@novell.com>
Cc: Imanpreet Singh Arora <imanpreet@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Question from Russells Spinlocks
Date: Thu, 09 Dec 2004 21:04:23 -0500	[thread overview]
Message-ID: <41B90427.7030006@comcast.net> (raw)
In-Reply-To: <1102628981.4622.9.camel@betsy.boston.ximian.com>

Robert Love wrote:

>On Thu, 2004-12-09 at 21:15 +0000, kernel-stuff@comcast.net wrote:
>
>This part is incorrect (and horribly wrapped):
>
>  
>
>> The comment about  atomic_t - It is due to the fact that some ( IA-32 for e.g.) architectures guarantees atomicity of integer operations for only 24 bits. So you could possibly manipulate only 24 out of the 32 bits atomically - that's the hardware guarantee. The comments reflect this fact. (Pointers are 32bits on IA32 so it applies to pointer as well.)
>>    
>>
>
>The reason for the 24-bit limit on atomic_t is because SPARC32's
>implementation of atomic operations was limited to 24-bits per atomic
>integer, because the architecture provides very minimal atomic support,
>we had to embed a byte-sized lock in the word.  This limited SPARC32's
>atomic integer to 24 usable bits.  The other architectures can, of
>course, hold the full 32-bits but to be compatible code must assume the
>24-bit limit.
>
>Although this was fixed recently in 2.6 so it actually no longer
>applies.
>  
>
Yes - I understand it better now. Thanks!

Parag

  reply	other threads:[~2004-12-10  2:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-09 21:15 kernel-stuff
2004-12-09 21:49 ` Robert Love
2004-12-10  2:04   ` Parag Warudkar [this message]
2004-12-09 23:30 ` Anton Altaparmakov
2004-12-09 23:58   ` Jeff V. Merkey
2004-12-10  2:02   ` Parag Warudkar
  -- strict thread matches above, loose matches on Subject: below --
2004-12-08 21:00 Imanpreet Singh Arora
2004-12-09 21:53 ` Brian Gerst
2004-12-09 22:03   ` William Lee Irwin III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41B90427.7030006@comcast.net \
    --to=kernel-stuff@comcast.net \
    --cc=imanpreet@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@novell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome