From e63b8c3302b1e80e14f3d3628ff279f7316ee208 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 18 Feb 2021 14:51:28 +0000 Subject: [PATCH] [librm] Add missing __asmcall on init_idt() The __asmcall declaration has no effect on a void function with no parameters, but should be included for completeness since the function is called directly from assembly code. Signed-off-by: Michael Brown --- src/arch/x86/transitions/librm_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/transitions/librm_mgmt.c b/src/arch/x86/transitions/librm_mgmt.c index f9e1d261a..85cfc8f49 100644 --- a/src/arch/x86/transitions/librm_mgmt.c +++ b/src/arch/x86/transitions/librm_mgmt.c @@ -118,7 +118,7 @@ void set_interrupt_vector ( unsigned int intr, void *vector ) { * Initialise interrupt descriptor table * */ -void init_idt ( void ) { +__asmcall void init_idt ( void ) { struct interrupt_vector *vec; unsigned int intr;