Skip to content

Commit

Permalink
[x86/Linux] Port jithelp.asm (dotnet/coreclr#8491)
Browse files Browse the repository at this point in the history
* [x86/Linux] Port jithelp.asm

This commit ports jithelp.asm for x86/Linux

The following Tailcall helpers are marked as NYI:
 - JIT_TailCall
 - JIT_TailCallReturnFromVSD
 - JIT_TailCallVSDLeave
 - JIT_TailCallLeave

* Revise macro and indentation


Commit migrated from dotnet/coreclr@e8e2adf
  • Loading branch information
parjong authored and janvorli committed Dec 13, 2016
1 parent 5d6eb22 commit a2e50f0
Show file tree
Hide file tree
Showing 4 changed files with 781 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/coreclr/src/pal/inc/unixasmmacrosx86.inc
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,14 @@ C_FUNC(\Name\()_End):
.macro EPILOG_END
pop ebp
.endm

.macro PREPARE_EXTERNAL_VAR Name, Reg
.att_syntax
call 0f
0:
popl %\Reg
1:
addl $_GLOBAL_OFFSET_TABLE_ + (1b - 0b), %\Reg
movl C_FUNC(\Name)@GOT(%\Reg), %\Reg
.intel_syntax noprefix
.endm
1 change: 1 addition & 0 deletions src/coreclr/src/vm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ else(WIN32)
elseif(CLR_CMAKE_TARGET_ARCH_I386)
set(VM_SOURCES_WKS_ARCH_ASM
${ARCH_SOURCES_DIR}/asmhelpers.S
${ARCH_SOURCES_DIR}/jithelp.S
${ARCH_SOURCES_DIR}/gmsasm.S
${ARCH_SOURCES_DIR}/umthunkstub.S
)
Expand Down
Loading

0 comments on commit a2e50f0

Please sign in to comment.