On Fri, Jun 15, 2012 at 11:20:25PM +0200, Michał Masłowski wrote:
> > It's used *a lot*. It happens the same in ARM. In general, lots of code is 
> > full
> > of unaligned accesses fixed realtime by the kernel. Mount debugfs, and check
> > /sys/kerne/debug/mips/unaligned_instructions to see the counter grow! :)
> > echo 2 to unaligned_action, and check your dmesg for a full report of 
> > everyone.
> > echo 1, and see SIGBUS everywhere.
> >
> > That's the *easy* way to fix *all* sigbuses. But the Coprocessor load/store 
> > are
> > just not implemented. :)
> 
> Ok, didn't know it (fixed once a sigbus in code that had all non-double
> fields properly aligned, didn't expect it to have other reasons for not
> crashing elsewhere).  This doesn't change the two facts that allocating
> memory with eight byte alignment isn't difficult to do and that there
> are other problems in libwebkit which probably need fixing in userspace.

I agree, userspace software should be fixed for that, because the kernel traps
are slow. But the kernel traps allow us at least to run the software.

I'm trying to write those traps, but I'm stuck... Learning mips asm for the
first time.

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.

Reply via email to