1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// See LICENSE for license details.
#include "pcr.h"
#include "pk.h"
.section .text,"ax",@progbits
.globl _start
_start:
lui sp, %hi(stack_top)
add sp, sp, %lo(stack_top)
lui a0, %hi(trap_entry)
add a0, a0, %lo(trap_entry)
mtpcr a0, evec
li a0, SR_S | SR_PS | SR_EI | SR_S64
or a1, a0, SR_EF | SR_EV
mtpcr a1, status
mfpcr a1, status
mtpcr a0, status
and a2, a1, SR_EF
lui a0, %hi(have_fp)
sw a2, %lo(have_fp)(a0)
and a2, a1, SR_EV
lui a0, %hi(have_vector)
sw a2, %lo(have_vector)(a0)
lui a0, %hi(boot)
jalr a0, %lo(boot)
|