From: "Ross A. Knepper" <rak@notfoo.nightmoose.net>
To: axp-list@redhat.com
Subject: how to simulate an unaligned ldl_l
Date: Sun, 13 Feb 2000 18:20:48 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.10.10002131812010.16865-100000@notfoo.nightmoose.net> (raw)
i've been looking at porting reiserfs to alpha. unfortunately, it has a
bunch of unaligned data accesses. naturally, intel doesnt care. on
alpha, most unaligned LDx/STx instructions are emulated by a software
trap (outside the kernel that is -- i don't know about inside). however,
this is not the case with the load_locked and store_conditional
instructions.
i'm looking at a number of routines that use these instructions for
atomicity, via clear_bit(), set_bit(), etc. in asm/bitops.h. is there any
clever way to circumvent this problem? the only hack i can think of at
the moment is to use ldl_u to extract it, put it into an aligned longword
buffer and do the ldl_l on that address instead. i feel like i'd have to
be insane to try this, however :)
anybody had this problem before? found a solution?
thanks much!
-ross
next reply other threads:[~2000-02-13 23:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-13 23:20 Ross A. Knepper [this message]
2000-02-14 5:07 ` how to simulate an unaligned ldl_l Jay.Estabrook
2000-02-14 13:15 ` Peter Rival
2000-02-14 15:26 ` set_program_attributes message J. Pedro Sousa do Amaral
2000-02-14 15:51 ` how to simulate an unaligned ldl_l Joseph A. Martin
2000-02-15 3:08 ` Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox