mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1930384 - add missing BTI instruction in aarch64 C stubs r=nika
Differential Revision: https://phabricator.services.mozilla.com/D228562
This commit is contained in:
parent
ef42dea31f
commit
1cf7038b94
@ -201,6 +201,12 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, void* args,
|
||||
#define UNDERSCORE "_"
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_FEATURE_BTI_DEFAULT) && __ARM_FEATURE_BTI_DEFAULT == 1
|
||||
#define VALID_CALL_TARGET "bti c\n\t"
|
||||
#else
|
||||
#define VALID_CALL_TARGET
|
||||
#endif
|
||||
|
||||
// Load w17 with the constant 'n' and branch to SharedStub().
|
||||
# define STUB_ENTRY(n) \
|
||||
__asm__ ( \
|
||||
@ -224,6 +230,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, void* args,
|
||||
".else \n\t" \
|
||||
".err \"stub number "#n" >= 1000 not yet supported\"\n" \
|
||||
".endif \n\t" \
|
||||
VALID_CALL_TARGET \
|
||||
"mov w17,#"#n" \n\t" \
|
||||
"b SharedStub \n" \
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user