Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
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
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
Roberto Hexsel
cMIPS
Commits
9782bdeb
There was a problem fetching the pipeline summary.
Commit
9782bdeb
authored
9 years ago
by
Roberto Hexsel
Browse files
Options
Downloads
Patches
Plain Diff
fixed data allocation for UART_rx_irq handler
parent
c67b6164
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cMIPS/include/handlers.s
+23
-20
23 additions, 20 deletions
cMIPS/include/handlers.s
with
23 additions
and
20 deletions
cMIPS/include/handlers.s
+
23
−
20
View file @
9782bdeb
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
#===============================================================
=
#===============================================================
=
#
interrupt
handler
for
external
counter
attached
to
IP5
=
HW3
#
interrupt
handler
for
external
counter
attached
to
IP5
=
HW3
#
for
extCounter
address
see
vhdl
/
packageMemory
.
vhd
#
for
extCounter
address
see
vhdl
/
packageMemory
.
vhd
#
.
bss
.
bss
.
align
2
.
align
2
.
global
_counter_val
#
accumulate
number
of
interrupts
.
global
_counter_val
#
accumulate
number
of
interrupts
.
comm
_counter_val
4
_counter_val
:
.
space
4
.
comm
_counter_saves
8
*
4
#
area
to
save
up
to
8
registers
_counter_saves
:
.
space
8
*
4
#
area
to
save
up
to
8
registers
#
_counter_saves
[
0
]=
$a0
,
[
1
]=
$a1
,
[
2
]=
$a2
,
...
#
_counter_saves
[
0
]=
$a0
,
[
1
]=
$a1
,
[
2
]=
$a2
,
[
3
]=
$a3
,
...
.
set
HW_counter_value
,
0xc00000c8
#
Count
200
clock
pulses
&
interr
.
set
HW_counter_value
,
0xc00000c8
#
Count
200
clock
pulses
&
interr
...
@@ -69,19 +69,22 @@ extCounter:
...
@@ -69,19 +69,22 @@ extCounter:
#===============================================================
=
#===============================================================
=
#
interrupt
handler
for
UART
attached
to
IP6
=
HW4
#
interrupt
handler
for
UART
attached
to
IP6
=
HW4
#
for
UART
's address see vhdl/packageMemory.vhd
#
.
bss
.
bss
.
align
2
.
align
2
.
global
Ud
.
global
Ud
,
_uart_buff
Ud
:
.
comm
rx_queue
16
#
reception
queue
and
pointers
Ud
:
.
comm
rx_hd
4
rx_hd
:
.
space
4
.
comm
rx_tl
4
rx_tl
:
.
space
4
.
comm
tx_queue
16
#
transmission
queue
and
pointers
rx_q
:
.
space
16
#
reception
queue
and
pointers
.
comm
tx_hd
4
tx_hd
:
.
space
4
.
comm
tx_tl
4
tx_tl
:
.
space
4
.
comm
nrx
4
#
characters
in
RX_queue
tx_q
:
.
space
16
#
transmission
queue
and
pointers
.
comm
ntx
4
#
spaces
left
in
TX_queue
nrx
:
.
space
4
#
characters
in
RX_queue
.
comm
_uart_buff
16
*
4
#
up
to
16
registers
to
be
saved
here
ntx
:
.
space
4
#
spaces
left
in
TX_queue
_uart_buff
:
.
space
16
*
4
#
up
to
16
registers
to
be
saved
here
.
set
UART_rx_irq
,
0x08
.
set
UART_rx_irq
,
0x08
.
set
UART_tx_irq
,
0x10
.
set
UART_tx_irq
,
0x10
...
@@ -451,11 +454,11 @@ cmips_delay:
...
@@ -451,11 +454,11 @@ cmips_delay:
#
void
cmips_kmsg
(
$k1
)
#
void
cmips_kmsg
(
$k1
)
#
this
function
preserves
registers
other
than
k0
,
k1
#
this
function
preserves
registers
other
than
k0
,
k1
#
#
.
data
.
bss
.
align
2
.
align
2
.
comm
_kmsg_saves
4
*
4
#
area
to
save
4
registers
_kmsg_saves
:
.
space
4
*
4
#
area
to
save
4
registers
#
_kmsg_saves
[
0
]=
$a0
,
[
1
]=
$a1
,
[
2
]=
$a2
,
[
3
]=
$a3
#
_kmsg_saves
[
0
]=
$a0
,
[
1
]=
$a1
,
[
2
]=
$a2
,
[
3
]=
$a3
#
.
text
.
text
.
align
2
.
align
2
.
set
noreorder
.
set
noreorder
...
...
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