Skip to contentSkip to conversation

x86/traps: Annotate {l,c}star_enter() as nocall

PATCH In review Andrew Cooper 2 participants 2 messages Jan 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/traps: Annotate {l,c}star_enter() as nocall

... as with other declarations which aren't legal to call from C.

---
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
index 668605e5bc67..02fdb3637d09 100644
@@ -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