Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stud-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Roman Romanov
stud-support
Commits
087c80be
Commit
087c80be
authored
1 year ago
by
Pavel Pisa
Browse files
Options
Downloads
Patches
Plain Diff
seminaries/qtrvsim/uart-echo-irq: minor update to build by internal assembler
Signed-off-by:
Pavel Pisa
<
pisa@cmp.felk.cvut.cz
>
parent
92d521c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
seminaries/qtrvsim/uart-echo-irq/uart-echo-irq.S
+5
-5
5 additions, 5 deletions
seminaries/qtrvsim/uart-echo-irq/uart-echo-irq.S
with
5 additions
and
5 deletions
seminaries/qtrvsim/uart-echo-irq/uart-echo-irq.S
+
5
−
5
View file @
087c80be
...
...
@@ -85,8 +85,8 @@ skip:
loop
:
csrrs
t1
,
mepc
,
zero
//
check
sw
t1
,
SPILED_REG_LED_LINE_o
(
a0
)
srl
t2
,
t0
,
31
sll
t0
,
t0
,
1
srl
i
t2
,
t0
,
31
sll
i
t0
,
t0
,
1
or
t0
,
t0
,
t2
lw
t2
,
SPILED_REG_KNOBS_8BIT_o
(
a0
)
sw
t2
,
SPILED_REG_LED_RGB1_o
(
a0
)
...
...
@@ -117,11 +117,11 @@ ret_from_exception:
handle_irq
:
//
t0
mcause
slli
t0
,
t0
,
2
//
shift
out
sign
,
left
sources
*
4
/
*
the
t0
would
be
used
to
point
into
irq
handlers
table
*/
/
*
check
only
for
UART
RX
interupt
for
simplicity
8
*/
/
/
the
t0
would
be
used
to
point
into
irq
handlers
table
/
/
check
only
for
UART
RX
interupt
for
simplicity
addi
a0
,
zero
,
16
*
4
//
UART
RX
is
the
first
platform
irq
beq
t0
,
a0
,
handle_uart_rx_irq
//
it
is
UART
RX
/
*
mask
out
unknown
sources
*/
/
/
mask
out
unknown
sources
srli
t0
,
t0
,
2
//
make
t0
back
simple
source
index
addi
a0
,
zero
,
1
sll
a0
,
a0
,
t0
//
generate
bit
mask
for
source
...
...
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