From c5d9c2a87845c736505ea9c725391cbe34beeab1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 17 Jul 2003 23:24:48 +0000 Subject: [PATCH] A few more macros to deal with the different size of long in 32-bit and 64-bit code. --- include/asm-mips/asm.h | 8 ++++++++ include/asm-mips64/asm.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/asm-mips/asm.h b/include/asm-mips/asm.h index db92a744289..53079e920b1 100644 --- a/include/asm-mips/asm.h +++ b/include/asm-mips/asm.h @@ -301,6 +301,10 @@ symbol = value #define LONG_SRLV srlv #define LONG_SRA sra #define LONG_SRAV srav + +#define LONG .word +#define LONGSIZE 4 +#define LONGLOG 2 #endif #if (_MIPS_SZLONG == 64) @@ -318,6 +322,10 @@ symbol = value #define LONG_SRLV dsrlv #define LONG_SRA dsra #define LONG_SRAV dsrav + +#define LONG .dword +#define LONGSIZE 8 +#define LONGLOG 3 #endif /* diff --git a/include/asm-mips64/asm.h b/include/asm-mips64/asm.h index 87120aa591f..aa546764d51 100644 --- a/include/asm-mips64/asm.h +++ b/include/asm-mips64/asm.h @@ -287,6 +287,10 @@ symbol = value #define LONG_SRLV srlv #define LONG_SRA sra #define LONG_SRAV srav + +#define LONG .word +#define LONGSIZE 4 +#define LONGLOG 2 #endif #if (_MIPS_SZLONG == 64) @@ -304,6 +308,10 @@ symbol = value #define LONG_SRLV dsrlv #define LONG_SRA dsra #define LONG_SRAV dsrav + +#define LONG .dword +#define LONGSIZE 8 +#define LONGLOG 3 #endif /* -- 2.11.4.GIT