Skip to content

Commit

Permalink
[x86/Linux] Fix PAL unit test paltest_pal_sxs_test1 (dotnet/coreclr#8522
Browse files Browse the repository at this point in the history
)

Fix unit test error for x86/Linux
- fix fail of exception_handling/pal_sxs/test1/paltest_pal_sxs_test1

Commit migrated from dotnet/coreclr@b2a083a
  • Loading branch information
seanshpark authored and janvorli committed Dec 9, 2016
1 parent 071e149 commit d95b674
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/coreclr/src/pal/src/arch/i386/context2.S
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ LOCAL_LABEL(Done_CONTEXT_EXTENDED_REGISTERS):
// Restore
pop ebx
pop eax
ret
ret 4
LEAF_END CONTEXT_CaptureContext, _TEXT

LEAF_ENTRY RtlCaptureContext, _TEXT
Expand All @@ -91,7 +91,6 @@ LEAF_ENTRY RtlCaptureContext, _TEXT
mov DWORD PTR [eax + CONTEXT_ContextFlags], (CONTEXT_FLOATING_POINT)
pop eax
jmp C_FUNC(CONTEXT_CaptureContext)
ret
LEAF_END RtlCaptureContext, _TEXT

LEAF_ENTRY RtlRestoreContext, _TEXT
Expand Down Expand Up @@ -147,6 +146,6 @@ LOCAL_LABEL(Done_Restore_CONTEXT_EXTENDED_REGISTERS):
pop esi
pop edi

ret
ret 8
LEAF_END RtlRestoreContext, _TEXT

1 change: 1 addition & 0 deletions src/coreclr/src/pal/src/include/pal/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ Parameters :
--*/
void
PALAPI
CONTEXT_CaptureContext(
LPCONTEXT lpContext
);
Expand Down
3 changes: 0 additions & 3 deletions src/coreclr/src/pal/src/thread/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ SET_DEFAULT_DEBUG_CHANNEL(THREAD); // some headers have code with asserts, so do

extern PGET_GCMARKER_EXCEPTION_CODE g_getGcMarkerExceptionCode;

// in context2.S
extern void CONTEXT_CaptureContext(LPCONTEXT lpContext);

#define CONTEXT_AREA_MASK 0xffff
#ifdef _X86_
#define CONTEXT_ALL_FLOATING (CONTEXT_FLOATING_POINT | CONTEXT_EXTENDED_REGISTERS)
Expand Down

0 comments on commit d95b674

Please sign in to comment.