1.1 --- a/stage2/head2.S Sat Dec 05 19:42:12 2015 +0100
1.2 +++ b/stage2/head2.S Sun Dec 06 00:55:36 2015 +0100
1.3 @@ -24,21 +24,15 @@
1.4
1.5 .text
1.6 .extern c_main
1.7 -.extern _tlb_entry
1.8 -.extern _exc_entry
1.9 .extern _irq_entry
1.10 .extern _end_entries
1.11 -.extern _exc_stack
1.12 .globl _start
1.13 .set noreorder
1.14
1.15 _start:
1.16 - /* Initialise the stacks. */
1.17 + /* Initialise the stack. */
1.18
1.19 la $sp, 0x80080000
1.20 - la $k0, 0x80090000
1.21 - la $k1, _exc_stack
1.22 - sw $k0, 0($k1)
1.23
1.24 /* Initialise the globals pointer. */
1.25
1.26 @@ -47,33 +41,9 @@
1.27
1.28 move $k0, $ra
1.29
1.30 - /* Copy TLB handling instructions. */
1.31 -
1.32 - la $t0, _tlb_entry /* start */
1.33 - li $t1, 0x80000000
1.34 - la $t2, _cache_entry /* end */
1.35 - jal _copy
1.36 - nop
1.37 -
1.38 - /* Copy cache handling instructions. */
1.39 -
1.40 - move $t0, $t2 /* start */
1.41 - li $t1, 0x80000100
1.42 - la $t2, _exc_entry /* end */
1.43 - jal _copy
1.44 - nop
1.45 -
1.46 - /* Copy exception handling instructions. */
1.47 -
1.48 - move $t0, $t2 /* start */
1.49 - li $t1, 0x80000180
1.50 - la $t2, _irq_entry /* end */
1.51 - jal _copy
1.52 - nop
1.53 -
1.54 /* Copy IRQ handling instructions. */
1.55
1.56 - move $t0, $t2 /* start */
1.57 + la $t0, _irq_entry /* start */
1.58 li $t1, 0x80000200
1.59 la $t2, _end_entries /* end */
1.60 jal _copy