This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFA: [PATCH]: MIPS enhancements to libgcj...
- From: Jeff Sturm <jsturm at one-point dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 21 Oct 2003 14:33:09 -0400 (EDT)
- Subject: Re: RFA: [PATCH]: MIPS enhancements to libgcj...
On Tue, 21 Oct 2003, David Daney wrote:
> The backtrace is implemented in sysdep/dwarf2-backtrace.cc which I
> think will work for all *-linux* targets. If someone wants to test
> this theory, that would be great.
Great, we should use this on alpha too. Time to blow the dust off my
164LX.
> Since I am only an amateur MIPS expert, perhaps someone (a real MIPS
> expert for example) should look at sysdeps/mips/locks.h
I'm certainly no MIPS expert, so others might comment on the llsc stuff.
However:
+inline static void
+release_set(volatile obj_addr_t *addr, obj_addr_t new_val)
+{
+ __asm__ __volatile__("sync" : :);
+ *(addr) = new_val;
+}
Probably want a memory clobber here...
+inline static void
+read_barrier()
+{
+ __asm__ __volatile__("sync" : :);
+}
...and here...
+inline static void
+write_barrier()
+{
+ __asm__ __volatile__("sync" : :);
+}
...and here.
Jeff