x86/traps: Annotate {l,c}star_enter() as nocall
PATCH 1/1 x86/traps: Annotate {l,c}star_enter() as nocall
... as with other declarations which aren't legal to call from C.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/arch/x86/x86_64/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/x86_64/traps.c +2 -2
@@ -333,8 +333,8 @@ static unsigned int write_stub_trampoline( DEFINE_PER_CPU(struct stubs, stubs); -void lstar_enter (void ); -void cstar_enter (void ); +void nocall lstar_enter(void); +void nocall cstar_enter(void);void subarch_percpu_traps_init (void ) {
base-commit: 4a7e71aa085170f1a13976507c8e248f8715f116
prerequisite-patch-id: 897f8a9f53b9c95c7961be1793b2685c11dc6e50
Signature · 1 line
2.30.2
Quoted 3 lines · Andrew Cooper
... as with other declarations which aren't legal to call from C.
Signed-off-by Andrew Cooper <[email protected]>
Acked-by Jan Beulich <[email protected]>