Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
9d63932b
Commit
9d63932b
authored
Oct 22, 2013
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
Add gchelper.s, to load registers and clean stack for GC.
parent
0c5827fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
stm/gchelper.s
+36
-0
36 additions, 0 deletions
stm/gchelper.s
with
36 additions
and
0 deletions
stm/gchelper.s
0 → 100644
+
36
−
0
View file @
9d63932b
.
syntax
unified
.
cpu
cortex
-
m4
.
thumb
.
text
.
align
2
@
void
gc_helper_get_regs_and_clean_stack
(
r0
=
uint
regs
[
10
],
r1
=
heap_end
)
.
global
gc_helper_get_regs_and_clean_stack
.
thumb
.
thumb_func
.
type
gc_helper_get_regs_and_clean_stack
,
%
function
gc_helper_get_regs_and_clean_stack
:
@
store
registers
into
given
array
str
r4
,
[
r0
],
#
4
str
r5
,
[
r0
],
#
4
str
r6
,
[
r0
],
#
4
str
r7
,
[
r0
],
#
4
str
r8
,
[
r0
],
#
4
str
r9
,
[
r0
],
#
4
str
r10
,
[
r0
],
#
4
str
r11
,
[
r0
],
#
4
str
r12
,
[
r0
],
#
4
str
r13
,
[
r0
],
#
4
@
clean
the
stack
from
given
pointer
up
to
current
sp
movs
r0
,
#
0
mov
r2
,
sp
b
.
entry
.
loop
:
str
r0
,
[
r1
],
#
4
.
entry
:
cmp
r1
,
r2
bcc
.
loop
bx
lr
.
size
gc_helper_get_regs_and_clean_stack
,
.
-
gc_helper_get_regs_and_clean_stack
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