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
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
5d02e2d6
Commit
5d02e2d6
authored
11 years ago
by
Mikael Eiman
Browse files
Options
Downloads
Patches
Plain Diff
OSX: fixes to make nlrx64.S with Apple's clang
parent
e9906ac3
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
py/nlrx64.S
+21
-2
21 additions, 2 deletions
py/nlrx64.S
with
21 additions
and
2 deletions
py/nlrx64.S
+
21
−
2
View file @
5d02e2d6
...
...
@@ -5,9 +5,14 @@
.
text
/*
uint
nlr_push
(
rdi
=
nlr_buf_t
*
nlr
)
*/
#ifndef __llvm__
.
globl
nlr_push
.
type
nlr_push
,
@
function
nlr_push
:
#else
.
globl
_nlr_push
_nlr_push
:
#endif
movq
(%
rsp
),
%
rax
#
load
return
%
rip
movq
%
rax
,
16
(%
rdi
)
#
store
%
rip
into
nlr_buf
movq
%
rbp
,
24
(%
rdi
)
#
store
%
rbp
into
nlr_buf
...
...
@@ -22,22 +27,32 @@ nlr_push:
movq
%
rdi
,
nlr_top
(%
rip
)
#
stor
new
nlr_buf
(
to
make
linked
list
)
xorq
%
rax
,
%
rax
#
return
0
,
normal
return
ret
#
return
.
size
nlr_push
,
.
-
nlr_push
//
.
size
nlr_push
,
.
-
nlr_push
/*
void
nlr_pop
()
*/
#ifndef __llvm__
.
globl
nlr_pop
.
type
nlr_pop
,
@
function
nlr_pop
:
#else
.
globl
_nlr_pop
_nlr_pop
:
#endif
movq
nlr_top
(%
rip
),
%
rax
#
get
nlr_top
into
%
rax
movq
(%
rax
),
%
rax
#
load
prev
nlr_buf
movq
%
rax
,
nlr_top
(%
rip
)
#
store
prev
nlr_buf
(
to
unlink
list
)
ret
#
return
.
size
nlr_pop
,
.
-
nlr_pop
//
.
size
nlr_pop
,
.
-
nlr_pop
/*
void
nlr_jump
(
rdi
=
uint
val
)
*/
#ifndef __llvm__
.
globl
nlr_jump
.
type
nlr_jump
,
@
function
nlr_jump
:
#else
.
globl
_nlr_jump
_nlr_jump
:
#endif
movq
%
rdi
,
%
rax
#
put
return
value
in
%
rax
movq
nlr_top
(%
rip
),
%
rdi
#
get
nlr_top
into
%
rdi
movq
%
rax
,
8
(%
rdi
)
#
store
return
value
...
...
@@ -55,8 +70,12 @@ nlr_jump:
xorq
%
rax
,
%
rax
#
clear
return
register
inc
%
al
#
increase
to
make
1
,
non
-
local
return
ret
#
return
#ifndef __llvm__
.
size
nlr_jump
,
.
-
nlr_jump
#endif
#ifndef __llvm__
.
local
nlr_top
#endif
.
comm
nlr_top
,
8
,
8
#endif
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