diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-09-15 16:28:19 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-09-15 16:28:19 +0200 |
commit | 797c21e95cc80e985801ef0a08b3bb734e2118f4 (patch) | |
tree | b64f69290558909ae500673bfa27521c4288131c /picosoc/start.s | |
parent | cfd4933272f4c7ce7141a52145a193c188524f82 (diff) | |
download | picorv32-797c21e95cc80e985801ef0a08b3bb734e2118f4.tar.gz picorv32-797c21e95cc80e985801ef0a08b3bb734e2118f4.zip |
Improve PicoSoC demo firmware
Diffstat (limited to 'picosoc/start.s')
-rw-r--r-- | picosoc/start.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/picosoc/start.s b/picosoc/start.s index c3d7aac..47312d8 100644 --- a/picosoc/start.s +++ b/picosoc/start.s @@ -36,3 +36,26 @@ addi x31, zero, 0 li sp, 4*256 call main j start + +.global cmd_read_spi_flash_id_worker_begin +.global cmd_read_spi_flash_id_worker_end + +cmd_read_spi_flash_id_worker_begin: +li t0,0x02000008 +li t1,'F' +sw t1,0(t0) +li t1,'I' +sw t1,0(t0) +li t1,'X' +sw t1,0(t0) +li t1,'M' +sw t1,0(t0) +li t1,'E' +sw t1,0(t0) +li t1,'\r' +sw t1,0(t0) +li t1,'\n' +sw t1,0(t0) +ret +cmd_read_spi_flash_id_worker_end: + |