diff options
Diffstat (limited to 'devel/xulrunner/patches/patch-xo')
-rw-r--r-- | devel/xulrunner/patches/patch-xo | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/devel/xulrunner/patches/patch-xo b/devel/xulrunner/patches/patch-xo new file mode 100644 index 00000000000..0b40b798711 --- /dev/null +++ b/devel/xulrunner/patches/patch-xo @@ -0,0 +1,53 @@ +$NetBSD: patch-xo,v 1.1 2010/04/01 08:25:07 jmcneill Exp $ + +--- xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s.orig 2010-03-31 06:23:31.000000000 -0400 ++++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s 2010-03-31 06:28:23.000000000 -0400 +@@ -26,8 +26,46 @@ + + /* This code is for MIPS using the O32 ABI. */ + +-#include <sys/regdef.h> +-#include <sys/asm.h> ++#ifdef __NetBSD__ ++# include <machine/regdef.h> ++# include <machine/asm.h> ++# ifndef fp ++# define fp s8 ++# endif ++# ifndef PTRLOG ++# if SZREG == 4 ++# define PTRLOG 2 ++# else ++# define PTRLOG 3 ++# endif ++# endif ++# ifndef SETUP_GP ++# if defined(__mips_o32) ++# define SETUP_GP \ ++ .set push; \ ++ .set noreorder; \ ++ .cpload t9; \ ++ .set pop ++# define SAVE_GP(x) \ ++ .cprestore x ++# else ++# define SETUP_GP ++# define SAVE_GP(x) ++# endif ++# endif ++# ifndef ALSZ ++# if defined(__mips_n32) || defined(__mips_n64) ++# define ALSZ 15 ++# define ALMASK ~15 ++# else ++# define ALSZ 7 ++# define ALMASK ~7 ++# endif ++# endif ++#else ++# include <sys/regdef.h> ++# include <sys/asm.h> ++#endif + + # NARGSAVE is the argument space in the callers frame, including extra + # 'shadowed' space for the argument registers. The minimum of 4 |