aboutsummaryrefslogtreecommitdiff
path: root/boot.S
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-08-03 20:48:02 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-08-03 20:48:02 -0700
commitb93785370d0be893e0a484ec22f1365db184dcce (patch)
tree4d2feed338dad348f69213bc655d7f49feadb2d0 /boot.S
parent8b9b445a198d40e7076ca88c5aa742cd3dc72bd4 (diff)
downloadpk-b93785370d0be893e0a484ec22f1365db184dcce.zip
pk-b93785370d0be893e0a484ec22f1365db184dcce.tar.gz
pk-b93785370d0be893e0a484ec22f1365db184dcce.tar.bz2
[pk,sim,xcc] Renamed instructions to RISC-V spec
All word-sized arithmetic operations are now postfixed with 'w', and all double-word-sized arithmetic operations are no longer prefixed with 'd'. mtc0/mfc0 are removed and replaced with mfpcr/mtpcr/mwfpcr/mwtpcr.
Diffstat (limited to 'boot.S')
-rw-r--r--boot.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/boot.S b/boot.S
index 073f0f0..c74327a 100644
--- a/boot.S
+++ b/boot.S
@@ -5,17 +5,17 @@ __start:
# set up SR
li $t0, 0xFF
- dmtc0 $t0, $0
+ mtpcr $t0, $0
# set up trap table
- dla $t0, trap_table
- dmtc0 $t0, $3
+ la $t0, trap_table
+ mtpcr $t0, $3
# set up stack
- dla $sp,stack_top-64
+ la $sp,stack_top-64
# call into kernel
- dla $t0, boot
+ la $t0, boot
jr $t0
.end __start