13.07.2015 Views

EBC Complier Presentation - UEFI

EBC Complier Presentation - UEFI

EBC Complier Presentation - UEFI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Calling convention• CDECL only– R0: Stack Pointer, R7: return value– Like IA32.– All parameters are passed through stack including 8-byte 8structure/longlong.– Return value is passed through stack if larger than 8-byte8• Between <strong>EBC</strong> and native– <strong>EBC</strong> <strong>EBC</strong>– Call/Ret– May imply <strong>EBC</strong> native<strong>EBC</strong>– <strong>EBC</strong> native code– CallEx, , VM to handle calling convention– Native code <strong>EBC</strong>– Break 5, to create thunk for address taken <strong>EBC</strong> functions when <strong>EBC</strong> imageloading– One level indirect assignment for <strong>EBC</strong> function pointer due to the e existenceof thunking entry40

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!