-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add the aarch64 clean fastpath restore * try to add the riscv fastpath_restore,but failed * use a way to solve the problem * clean some warnings
- Loading branch information
1 parent
2d9f4d2
commit 4abdc8b
Showing
6 changed files
with
104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
__fastpath_restore: | ||
mv t0 , a2 | ||
ld ra, (0*8)(t0) | ||
ld sp, (1*8)(t0) | ||
ld gp, (2*8)(t0) | ||
/* skip tp */ | ||
/* skip x5/t0 */ | ||
ld t2, (6*8)(t0) | ||
ld s0, (7*8)(t0) | ||
ld s1, (8*8)(t0) | ||
ld a2, (11*8)(t0) | ||
ld a3, (12*8)(t0) | ||
ld a4, (13*8)(t0) | ||
ld a5, (14*8)(t0) | ||
ld a6, (15*8)(t0) | ||
ld a7, (16*8)(t0) | ||
ld s2, (17*8)(t0) | ||
ld s3, (18*8)(t0) | ||
ld s4, (19*8)(t0) | ||
ld s5, (20*8)(t0) | ||
ld s6, (21*8)(t0) | ||
ld s7, (22*8)(t0) | ||
ld s8, (23*8)(t0) | ||
ld s9, (24*8)(t0) | ||
ld s10, (25*8)(t0) | ||
ld s11, (26*8)(t0) | ||
ld t3, (27*8)(t0) | ||
ld t4, (28*8)(t0) | ||
ld t5, (29*8)(t0) | ||
ld t6, (30*8)(t0) | ||
ld t1, (3*8)(t0) | ||
add tp, t1, x0 | ||
ld t1, (34*8)(t0) | ||
csrw sepc, t1 | ||
csrw sscratch, t0 | ||
ld t1, (32*8)(t0) | ||
csrw sstatus, t1 | ||
ld t1, (5*8)(t0) | ||
ld t0, (4*8)(t0) | ||
sret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pub mod boot; | ||
pub mod fastpath; | ||
pub mod fault; | ||
#[cfg(target_arch="riscv64")] | ||
core::arch::global_asm!(include_str!("fastpath_restore.S")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters