Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Projects
Software for White Rabbit PTP Core
Commits
e3f4734f
Commit
e3f4734f
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Provide all exception handlers.
Otherwise unexpected roll-over onto the next handler will happen.
parent
aed819ee
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/lm32/crt0.S
+47
-4
47 additions, 4 deletions
target/lm32/crt0.S
with
47 additions
and
4 deletions
target/lm32/crt0.S
+
47
−
4
View file @
e3f4734f
...
...
@@ -90,9 +90,10 @@
.
global
_start
_start
:
.
weak
_debug_unit
_debug_unit
:
.
global
_reset_handler
.
type
_reset_handler
,
@
function
.
align
256
_debug_unit
:
_reset_handler
:
xor
r0
,
r0
,
r0
wcsr
IE
,
r0
...
...
@@ -103,11 +104,46 @@ _reset_handler:
calli
_crt0
nop
.
size
_reset_handler
,
.
-
_reset_handler
.
extern
_breakpoint_handler
.
global
_breakpoint_handler
.
type
_breakpoint_handler
,
@
function
.
align
32
_breakpoint_handler
:
bret
.
extern
_instruction_bus_error_handler
.
global
_instruction_bus_error_handler
.
type
_instruction_bus_error_handler
,
@
function
.
align
32
_instruction_bus_error_handler
:
eret
.
extern
_watchpoint_handler
.
global
_watchpoint_handler
.
type
_watchpoint_handler
,
@
function
.
align
32
_watchpoint_handler
:
bret
.
extern
_data_bus_error_handler
.
global
_data_bus_error_handler
.
type
_data_bus_error_handler
,
@
function
.
align
32
_data_bus_error_handler
:
eret
.
extern
_divide_by_zero_handler
.
global
_divide_by_zero_handler
.
type
_divide_by_zero_handler
,
@
function
.
align
32
_divide_by_zero_handler
:
eret
.
extern
_irq_entry
.
org
0
xc0
.
global
_interrupt_handler
.
type
_interrupt_handler
,
@
function
.
align
32
_interrupt_handler
:
sw
(
sp
+
0
),
ra
calli
_save_all
...
...
@@ -121,7 +157,14 @@ _interrupt_handler:
nop
nop
nop
.
extern
_system_call_handler
.
global
_system_call_handler
.
type
_system_call_handler
,
@
function
.
align
32
_system_call_handler
:
eret
.
org
0
x100
.
global
_crt0
.
type
_crt0
,
@
function
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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