]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[librm] Add missing __asmcall on init_idt()
authorMichael Brown <mcb30@ipxe.org>
Thu, 18 Feb 2021 14:51:28 +0000 (14:51 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 18 Feb 2021 14:52:25 +0000 (14:52 +0000)
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 <mcb30@ipxe.org>
src/arch/x86/transitions/librm_mgmt.c

index f9e1d261a3acf884d74a98216b5bea0f0f1fdc6d..85cfc8f49f937d7a869421186a2dcd3256b7dd17 100644 (file)
@@ -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;