Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cMIPS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Strozzi
cMIPS
Commits
92800b1d
Commit
92800b1d
authored
9 years ago
by
Roberto Hexsel
Browse files
Options
Downloads
Patches
Plain Diff
fixed handlers.s
parent
fc3b9232
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cMIPS/include/handlers.s
+6
-3
6 additions, 3 deletions
cMIPS/include/handlers.s
with
6 additions
and
3 deletions
cMIPS/include/handlers.s
+
6
−
3
View file @
92800b1d
...
@@ -213,6 +213,7 @@ cmips_delay:
...
@@ -213,6 +213,7 @@ cmips_delay:
#
_kmsg_saves
[
0
]=
$a0
,
[
1
]=
$a1
,
[
2
]=
$a2
,
[
3
]=
$ra
#
_kmsg_saves
[
0
]=
$a0
,
[
1
]=
$a1
,
[
2
]=
$a2
,
[
3
]=
$ra
#
#
.
text
.
text
.
align
2
.
set
noreorder
.
set
noreorder
.
set
noat
.
set
noat
.
global
cmips_kmsg
.
global
cmips_kmsg
...
@@ -227,7 +228,7 @@ cmips_kmsg:
...
@@ -227,7 +228,7 @@ cmips_kmsg:
sw
$a2
,
2
*
4
(
$k0
)
sw
$a2
,
2
*
4
(
$k0
)
lui
$a1
,
%
hi
(
_kmsg_list
)
lui
$a1
,
%
hi
(
_kmsg_list
)
ori
$a1
,
$a1
,
%
hi
(
_kmsg_list
)
ori
$a1
,
$a1
,
%
lo
(
_kmsg_list
)
sll
$k1
,
$k1
,
2
#
adjust
index
onto
table
sll
$k1
,
$k1
,
2
#
adjust
index
onto
table
addu
$a1
,
$a1
,
$k1
addu
$a1
,
$a1
,
$k1
...
@@ -250,10 +251,12 @@ k_for: lbu $a0, 0($a1)
...
@@ -250,10 +251,12 @@ k_for: lbu $a0, 0($a1)
.
equ
kmsg_interr
,
0
.
equ
kmsg_interr
,
0
.
equ
kmsg_excep
,
1
.
equ
kmsg_excep
,
1
.
data
.
data
.
align
2
.
global
_kmsg_list
.
global
_kmsg_list
_kmsg_list
:
.
word
_kmsg_interr
,
_kmsg_excep
_kmsg_interr
:
.
asciiz
"\n\tinterrupt\n\n"
_kmsg_interr
:
.
asciiz
"\n\tinterrupt\n\n"
_kmsg_excep
:
.
asciiz
"\n\texceptioninterrupt\n\n"
_kmsg_excep
:
.
asciiz
"\n\texceptioninterrupt\n\n"
_kmsg_list
:
.
word
_kmsg_interr
,
_kmsg_excep
#----------------------------------------------------------------
#----------------------------------------------------------------
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment