-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
3,321 additions
and
474 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 @@ | ||
../../common/crt0.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
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
# distributed under the mit license | ||
# https://opensource.org/licenses/mit-license.php | ||
|
||
.section .text.init | ||
.global _start | ||
|
||
_start: | ||
|
||
# First init all the registers to 0 | ||
li x1, 0 | ||
li x2, 0 | ||
li x3, 0 | ||
li x4, 0 | ||
li x5, 0 | ||
li x6, 0 | ||
li x7, 0 | ||
li x8, 0 | ||
li x8, 0 | ||
li x9, 0 | ||
li x10, 0 | ||
li x11, 0 | ||
li x12, 0 | ||
li x13, 0 | ||
li x14, 0 | ||
li x15, 0 | ||
li x16, 0 | ||
li x17, 0 | ||
li x19, 0 | ||
li x20, 0 | ||
li x21, 0 | ||
li x22, 0 | ||
li x23, 0 | ||
li x24, 0 | ||
li x25, 0 | ||
li x26, 0 | ||
li x27, 0 | ||
li x28, 0 | ||
li x29, 0 | ||
li x30, 0 | ||
li x31, 0 | ||
|
||
# Setup system call function address | ||
la t0, trap_entry | ||
csrw mtvec,t0 | ||
|
||
# Init the max boundary of the stack section | ||
# _estack will be linked later with the linker file symbols | ||
la sp, _estack | ||
|
||
# Jump to the main | ||
call main | ||
|
||
trap_entry: | ||
ebreak |
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 @@ | ||
../common/linker.ld |
Oops, something went wrong.