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