Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[x86/Linux] Fix compilation in pal and context header#8244

Merged
gkhanna79 merged 1 commit into
dotnet:masterfrom
seanshpark:x86pal01
Nov 22, 2016
Merged

[x86/Linux] Fix compilation in pal and context header#8244
gkhanna79 merged 1 commit into
dotnet:masterfrom
seanshpark:x86pal01

Conversation

@seanshpark
Copy link
Copy Markdown

@seanshpark seanshpark commented Nov 22, 2016

Fix compile error for x86/Linux

  • add KNONVOLATILE_CONTEXT_POINTERS
  • add X86 codes in pal/context.h

@seanshpark
Copy link
Copy Markdown
Author

@dotnet-bot test Linux ARM Emulator Cross Debug Build please

@seanshpark
Copy link
Copy Markdown
Author

@janvorli , @jkotas , @gkhanna79 , PTAL

Comment thread src/pal/inc/pal.h Outdated
PDWORD Edi;
PDWORD Ebp;
PDWORD Esp;
PDWORD Eip;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last three don't belong here, the rest is correct.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is more that do not belong here - there should only be: Ebx, Esi, Edi, Ebp.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, use only Ebx, Esi, Edi, Ebp

Comment thread src/pal/inc/pal.h Outdated
#elif defined(__linux__) && defined(_ARM64_)
#define PAL_CS_NATIVE_DATA_SIZE 116
#elif defined(__linux__) && defined(__i386__)
#define PAL_CS_NATIVE_DATA_SIZE 96
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 76

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, 76.

@janvorli
Copy link
Copy Markdown
Member

@seanshpark since you've said it is WIP, I assume there are more changes needed to make PAL compile, right?

@seanshpark
Copy link
Copy Markdown
Author

since you've said it is WIP, I assume there are more changes needed to make PAL compile, right?

Yes, compile now about 1%, based on the compile. Most changes are under 10% and some are above 90% I think.

WIP, fix compile error for x86/Linux
- add KNONVOLATILE_CONTEXT_POINTERS
- add _X86_ codes in pal/context.h
@seanshpark
Copy link
Copy Markdown
Author

I think this title should be more specific.

@gkhanna79 gkhanna79 added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 22, 2016
@gkhanna79
Copy link
Copy Markdown
Member

I have marked this PR as no-merge so that you can continue to push changes to it make the PAL compile. Once everything is in order, we can them merge the PR.

@seanshpark Let me know if that does not work for you.

@seanshpark seanshpark changed the title [x86/Linux] Fix compilation in pal [x86/Linux] Fix compilation in pal and context header Nov 22, 2016
@seanshpark
Copy link
Copy Markdown
Author

@gkhanna79 , I think I misused WIP as there is no other patches in ths PR. I would like to post small patches to fix compilation errors. I'm adding each PR to #8188 as I create. If this fix is OK then please merge.

@gkhanna79 gkhanna79 removed the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 22, 2016
@gkhanna79 gkhanna79 merged commit 9395bf4 into dotnet:master Nov 22, 2016
@seanshpark seanshpark deleted the x86pal01 branch November 22, 2016 23:17
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
[x86/Linux] Fix compilation in pal and context header

Commit migrated from dotnet/coreclr@9395bf4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants