aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.S
blob: f657343d59fc18e6fc8d0de54f2193144136c9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// See LICENSE for license details.

#include "encoding.h"

.section .text,"ax",@progbits
.globl _start
_start:
  la gp, _gp
  la sp, stack_top
  csrw mscratch, sp

  li t0, MSTATUS_FS | MSTATUS_XS
  csrs mstatus, t0

  call  boot