1 /* 2 * Interrupt handling support. 3 * 4 * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk> 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 .text 21 .extern real_exception_handler 22 .globl _tlb_entry 23 .globl _cache_entry 24 .globl _exc_entry 25 .globl _irq_entry 26 .globl _end_entries 27 .set noreorder 28 29 _tlb_entry: 30 lui $k0, %hi(real_exception_handler) 31 ori $k0, $k0, %lo(real_exception_handler) 32 jr $k0 33 nop 34 35 _cache_entry: 36 lui $k0, %hi(real_exception_handler) 37 ori $k0, $k0, %lo(real_exception_handler) 38 jr $k0 39 nop 40 41 _exc_entry: 42 lui $k0, %hi(real_exception_handler) 43 ori $k0, $k0, %lo(real_exception_handler) 44 jr $k0 45 nop 46 47 _irq_entry: 48 lui $k0, %hi(real_exception_handler) 49 ori $k0, $k0, %lo(real_exception_handler) 50 jr $k0 51 nop 52 53 _end_entries: 54 55 .set reorder