diff options
| -rw-r--r-- | arch/mips/dec/int-handler.S | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/arch/mips/dec/int-handler.S b/arch/mips/dec/int-handler.S index 1910223a9c02..cea2bb1621e6 100644 --- a/arch/mips/dec/int-handler.S +++ b/arch/mips/dec/int-handler.S | |||
| @@ -147,23 +147,12 @@ | |||
| 147 | * Find irq with highest priority | 147 | * Find irq with highest priority |
| 148 | */ | 148 | */ |
| 149 | # open coded PTR_LA t1, cpu_mask_nr_tbl | 149 | # open coded PTR_LA t1, cpu_mask_nr_tbl |
| 150 | #if (_MIPS_SZPTR == 32) | 150 | #if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) |
| 151 | # open coded la t1, cpu_mask_nr_tbl | 151 | # open coded la t1, cpu_mask_nr_tbl |
| 152 | lui t1, %hi(cpu_mask_nr_tbl) | 152 | lui t1, %hi(cpu_mask_nr_tbl) |
| 153 | addiu t1, %lo(cpu_mask_nr_tbl) | 153 | addiu t1, %lo(cpu_mask_nr_tbl) |
| 154 | 154 | #else | |
| 155 | #endif | 155 | #error GCC `-msym32' option required for 64-bit DECstation builds |
| 156 | #if (_MIPS_SZPTR == 64) | ||
| 157 | # open coded dla t1, cpu_mask_nr_tbl | ||
| 158 | .set push | ||
| 159 | .set noat | ||
| 160 | lui t1, %highest(cpu_mask_nr_tbl) | ||
| 161 | lui AT, %hi(cpu_mask_nr_tbl) | ||
| 162 | daddiu t1, t1, %higher(cpu_mask_nr_tbl) | ||
| 163 | daddiu AT, AT, %lo(cpu_mask_nr_tbl) | ||
| 164 | dsll t1, 32 | ||
| 165 | daddu t1, t1, AT | ||
| 166 | .set pop | ||
| 167 | #endif | 156 | #endif |
| 168 | 1: lw t2,(t1) | 157 | 1: lw t2,(t1) |
| 169 | nop | 158 | nop |
| @@ -214,23 +203,12 @@ | |||
| 214 | * Find irq with highest priority | 203 | * Find irq with highest priority |
| 215 | */ | 204 | */ |
| 216 | # open coded PTR_LA t1,asic_mask_nr_tbl | 205 | # open coded PTR_LA t1,asic_mask_nr_tbl |
| 217 | #if (_MIPS_SZPTR == 32) | 206 | #if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) |
| 218 | # open coded la t1, asic_mask_nr_tbl | 207 | # open coded la t1, asic_mask_nr_tbl |
| 219 | lui t1, %hi(asic_mask_nr_tbl) | 208 | lui t1, %hi(asic_mask_nr_tbl) |
| 220 | addiu t1, %lo(asic_mask_nr_tbl) | 209 | addiu t1, %lo(asic_mask_nr_tbl) |
| 221 | 210 | #else | |
| 222 | #endif | 211 | #error GCC `-msym32' option required for 64-bit DECstation builds |
| 223 | #if (_MIPS_SZPTR == 64) | ||
| 224 | # open coded dla t1, asic_mask_nr_tbl | ||
| 225 | .set push | ||
| 226 | .set noat | ||
| 227 | lui t1, %highest(asic_mask_nr_tbl) | ||
| 228 | lui AT, %hi(asic_mask_nr_tbl) | ||
| 229 | daddiu t1, t1, %higher(asic_mask_nr_tbl) | ||
| 230 | daddiu AT, AT, %lo(asic_mask_nr_tbl) | ||
| 231 | dsll t1, 32 | ||
| 232 | daddu t1, t1, AT | ||
| 233 | .set pop | ||
| 234 | #endif | 212 | #endif |
| 235 | 2: lw t2,(t1) | 213 | 2: lw t2,(t1) |
| 236 | nop | 214 | nop |
