This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
RE: patch for GC on powerpc-eabi
- To: "'Geoff Keating'" <geoffk at redhat dot com>, "java-patches at sources dot redhat dot com" <java-patches at sources dot redhat dot com>
- Subject: RE: patch for GC on powerpc-eabi
- From: Anthony Green <green at redhat dot com>
- Date: Sun, 10 Dec 2000 17:45:42 -0800
- Cc: "'hans_boehm at hp dot com'" <hans_boehm at hp dot com>
- Organization: Red Hat, Inc.
- Reply-To: "green at cygnus dot com" <green at cygnus dot com>
Patches to the GC should also go to Hans (CC'd).
On Sunday, December 10, 2000 2:39 PM, Geoff Keating [SMTP:geoffk@geoffk.org]
wrote:
>
> This makes the automated tester more happy by adding configury for
> boehm GC on powerpc-eabisim. I hope to get this target fully working
> once the CVS repository integration has progressed; this patch at
> least lets the tree compile without switching on Java.
>
> (It would probably be good if boehm could detect that there was
> no OS support and just not build itself... Maybe later.)
>
> I'll be committing this, based on my ppc port maintainership. I hope
> I'm not treading on anyone's toes...
>
> --
> - Geoffrey Keating <geoffk@geoffk.org>
>
> ===File ~/patches/cygnus/java-eabigc.patch==================
> 2000-12-10 Geoffrey Keating <geoffk@redhat.com>
>
> * gcconfig.h: Add new case for powerpc EABI.
> [PPC]: Handle embedded OS for powerpc simulator.
>
> Index: gcconfig.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/boehm-gc/gcconfig.h,v
> retrieving revision 1.14
> diff -u -p -r1.14 gcconfig.h
> --- gcconfig.h 2000/08/16 18:17:59 1.14
> +++ gcconfig.h 2000/12/10 22:27:13
> @@ -297,6 +297,10 @@
> # endif
> # define mach_type_known
> # endif
> +# if defined(__embedded__) && defined(PPC)
> +# define POWERPC
> +# define mach_type_known
> +# endif
>
> /* Feel free to add more clauses here */
>
> @@ -572,6 +576,17 @@
> # define DATASTART ((ptr_t) get_etext())
> # define STACKBOTTOM ((ptr_t) 0xc0000000)
> # define DATAEND /* not needed */
> +# endif
> +# ifdef __embedded__
> +# define ALIGNMENT 4
> +# define OS_TYPE "EMBEDDED"
> + extern void __end, __dso_handle;
> +# define DATASTART (&__dso_handle) /* OK, that's ugly. */
> +# define DATAEND (&__end)
> + /* Stack starts at 0xE0000000 for the simulator. */
> +# undef STACK_GRAN
> +# define STACK_GRAN 0x10000000
> +# define HEURISTIC1
> # endif
> # endif
>
> ============================================================