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
ebde3c69
Commit
ebde3c69
authored
Jan 1, 2015
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py: Add guarded includes for asm-based headers.
parent
ddbcc795
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
py/asmarm.h
+5
-0
5 additions, 0 deletions
py/asmarm.h
py/asmthumb.h
+6
-0
6 additions, 0 deletions
py/asmthumb.h
py/asmx64.h
+7
-0
7 additions, 0 deletions
py/asmx64.h
py/asmx86.h
+7
-0
7 additions, 0 deletions
py/asmx86.h
with
25 additions
and
0 deletions
py/asmarm.h
+
5
−
0
View file @
ebde3c69
...
...
@@ -24,6 +24,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __MICROPY_INCLUDED_PY_ASMARM_H__
#define __MICROPY_INCLUDED_PY_ASMARM_H__
#include
"py/misc.h"
#define ASM_ARM_PASS_COMPUTE (1)
#define ASM_ARM_PASS_EMIT (2)
...
...
@@ -120,3 +124,4 @@ void asm_arm_bcc_label(asm_arm_t *as, int cond, uint label);
void
asm_arm_b_label
(
asm_arm_t
*
as
,
uint
label
);
void
asm_arm_bl_ind
(
asm_arm_t
*
as
,
void
*
fun_ptr
,
uint
fun_id
,
uint
reg_temp
);
#endif // __MICROPY_INCLUDED_PY_ASMARM_H__
This diff is collapsed.
Click to expand it.
py/asmthumb.h
+
6
−
0
View file @
ebde3c69
...
...
@@ -23,6 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __MICROPY_INCLUDED_PY_ASMTHUMB_H__
#define __MICROPY_INCLUDED_PY_ASMTHUMB_H__
#include
"py/misc.h"
#define ASM_THUMB_PASS_COMPUTE (1)
#define ASM_THUMB_PASS_EMIT (2)
...
...
@@ -200,3 +204,5 @@ void asm_thumb_mov_reg_local_addr(asm_thumb_t *as, uint rlo_dest, int local_num)
void
asm_thumb_b_label
(
asm_thumb_t
*
as
,
uint
label
);
// convenience ?
void
asm_thumb_bcc_label
(
asm_thumb_t
*
as
,
int
cc
,
uint
label
);
// convenience: picks narrow or wide branch
void
asm_thumb_bl_ind
(
asm_thumb_t
*
as
,
void
*
fun_ptr
,
uint
fun_id
,
uint
reg_temp
);
// convenience ?
#endif // __MICROPY_INCLUDED_PY_ASMTHUMB_H__
This diff is collapsed.
Click to expand it.
py/asmx64.h
+
7
−
0
View file @
ebde3c69
...
...
@@ -23,6 +23,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __MICROPY_INCLUDED_PY_ASMX64_H__
#define __MICROPY_INCLUDED_PY_ASMX64_H__
#include
"py/mpconfig.h"
#include
"py/misc.h"
// AMD64 calling convention is:
// - args pass in: RDI, RSI, RDX, RCX, R08, R09
...
...
@@ -108,3 +113,5 @@ void asm_x64_mov_local_to_r64(asm_x64_t* as, int src_local_num, int dest_r64);
void
asm_x64_mov_r64_to_local
(
asm_x64_t
*
as
,
int
src_r64
,
int
dest_local_num
);
void
asm_x64_mov_local_addr_to_r64
(
asm_x64_t
*
as
,
int
local_num
,
int
dest_r64
);
void
asm_x64_call_ind
(
asm_x64_t
*
as
,
void
*
ptr
,
int
temp_r32
);
#endif // __MICROPY_INCLUDED_PY_ASMX64_H__
This diff is collapsed.
Click to expand it.
py/asmx86.h
+
7
−
0
View file @
ebde3c69
...
...
@@ -23,6 +23,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __MICROPY_INCLUDED_PY_ASMX86_H__
#define __MICROPY_INCLUDED_PY_ASMX86_H__
#include
"py/mpconfig.h"
#include
"py/misc.h"
// x86 cdecl calling convention is:
// - args passed on the stack in reverse order
...
...
@@ -106,3 +111,5 @@ void asm_x86_mov_local_to_r32(asm_x86_t* as, int src_local_num, int dest_r32);
void
asm_x86_mov_r32_to_local
(
asm_x86_t
*
as
,
int
src_r32
,
int
dest_local_num
);
void
asm_x86_mov_local_addr_to_r32
(
asm_x86_t
*
as
,
int
local_num
,
int
dest_r32
);
void
asm_x86_call_ind
(
asm_x86_t
*
as
,
void
*
ptr
,
mp_uint_t
n_args
,
int
temp_r32
);
#endif // __MICROPY_INCLUDED_PY_ASMX86_H__
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