[PATCH] Sparc JIT on Linux

Tim Wilkinson tim at tjwassoc.co.uk
Fri Mar 28 15:10:54 PST 1997


This should get the Sparc JIT working under Linux (well it does on Redhat 
4.1).  It's not been well tested so do let me know how it fares.

Cheers
Tim

File: kaffe-0.8.3/config/sparc/linux/jit-md.h
/*
 * sparc/linux/jit-md.h
 * Linux SPARC JIT configuration information.
 *
 * Copyright (c) 1996-97 T. J. Wilkinson & Associates, London, UK.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * Written by Tim Wilkinson <tim at tjwassoc.co.uk>
 */

#ifndef __sparc_linux_jit_md_h
#define __sparc_linux_jit_md_h

/**/
/* Include common information. */
/**/
#include "sparc/jit.h"

/**/
/* Extra exception handling information. */
/**/
#include <asm/sigcontext.h>

/* Function prototype for signal handlers */
#define EXCEPTIONPROTO                                                  \
        int sig, __siginfo_t* ctx

/* Get the first exception frame from a signal handler */
#define EXCEPTIONFRAME(f, c)                                            \
        (f).retbp = (c)->si_regs.u_regs[UREG_FP];                       \
        (f).retpc = (c)->si_regs.pc

#endif


--
  Tim Wilkinson                         Tel/Fax: +44 181 440 0658
  T. J. Wilkinson & Associates,         Mobile:  +44 370 621006
  London, UK.                           Email:   tim at tjwassoc.co.uk



More information about the kaffe mailing list