1.1 --- a/stage2/entry.S Mon Feb 22 20:31:50 2016 +0100
1.2 +++ b/stage2/entry.S Mon Feb 22 23:23:52 2016 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 - * Interrupt handling support.
1.6 + * Interrupt and TLB miss handling support.
1.7 *
1.8 - * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.9 + * Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.10 *
1.11 * This program is free software: you can redistribute it and/or modify
1.12 * it under the terms of the GNU General Public License as published by
1.13 @@ -18,11 +18,19 @@
1.14 */
1.15
1.16 .text
1.17 +.extern tlb_handler
1.18 .extern interrupt_handler
1.19 +.globl _tlb_entry
1.20 .globl _irq_entry
1.21 .globl _end_entries
1.22 .set noreorder
1.23
1.24 +_tlb_entry:
1.25 + lui $k0, %hi(tlb_handler)
1.26 + ori $k0, $k0, %lo(tlb_handler)
1.27 + jr $k0
1.28 + nop
1.29 +
1.30 _irq_entry:
1.31 lui $k0, %hi(interrupt_handler)
1.32 ori $k0, $k0, %lo(interrupt_handler)