Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* how to simulate an unaligned ldl_l
@ 2000-02-13 23:20 Ross A. Knepper
  2000-02-14  5:07 ` Jay.Estabrook
  2000-02-15  3:08 ` Richard Henderson
  0 siblings, 2 replies; 6+ messages in thread
From: Ross A. Knepper @ 2000-02-13 23:20 UTC (permalink / raw)
  To: axp-list


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-02-15  3:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-13 23:20 how to simulate an unaligned ldl_l Ross A. Knepper
2000-02-14  5:07 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox