From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20875 invoked from network); 13 Feb 2000 23:20:58 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Feb 2000 23:20:58 -0000 Received: from notfoo.nightmoose.net (rak-2.dsl.speakeasy.net [216.254.25.63]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id SAA23281 for ; Sun, 13 Feb 2000 18:20:56 -0500 Received: (qmail 17979 invoked by uid 501); 13 Feb 2000 23:20:48 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 13 Feb 2000 23:20:48 -0000 Date: Sun, 13 Feb 2000 18:20:48 -0500 (EST) From: "Ross A. Knepper" To: axp-list@redhat.com Subject: how to simulate an unaligned ldl_l Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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