From: Jack Lange Date: Thu, 23 Apr 2009 03:45:01 +0000 (-0500) Subject: changed inline functions to static X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=b7cb21f4a2443581074c0a3374ef9d88e72c51ce changed inline functions to static --- diff --git a/palacios/include/palacios/vmm_lowlevel.h b/palacios/include/palacios/vmm_lowlevel.h index b7f46fa..687069f 100644 --- a/palacios/include/palacios/vmm_lowlevel.h +++ b/palacios/include/palacios/vmm_lowlevel.h @@ -22,7 +22,7 @@ #ifdef __V3_32BIT__ -void __inline__ v3_cpuid(uint_t target, addr_t * eax, addr_t * ebx, addr_t * ecx, addr_t * edx) { +static void __inline__ v3_cpuid(uint_t target, addr_t * eax, addr_t * ebx, addr_t * ecx, addr_t * edx) { __asm__ __volatile__ ( "pushl %%ebx\n\t" "cpuid\n\t" @@ -36,7 +36,7 @@ void __inline__ v3_cpuid(uint_t target, addr_t * eax, addr_t * ebx, addr_t * ecx #elif __V3_64BIT__ -void __inline__ v3_cpuid(uint_t target, addr_t * eax, addr_t * ebx, addr_t * ecx, addr_t * edx) { +static void __inline__ v3_cpuid(uint_t target, addr_t * eax, addr_t * ebx, addr_t * ecx, addr_t * edx) { __asm__ __volatile__ ( "pushq %%rbx\n\t" "cpuid\n\t" @@ -51,7 +51,7 @@ void __inline__ v3_cpuid(uint_t target, addr_t * eax, addr_t * ebx, addr_t * ecx #endif -void __inline__ v3_set_msr(uint_t msr, uint_t high_byte, uint_t low_byte) { +static void __inline__ v3_set_msr(uint_t msr, uint_t high_byte, uint_t low_byte) { __asm__ __volatile__ ( "wrmsr" : @@ -63,7 +63,7 @@ void __inline__ v3_set_msr(uint_t msr, uint_t high_byte, uint_t low_byte) { -void __inline__ v3_get_msr(uint_t msr, uint_t * high_byte, uint_t * low_byte) { +static void __inline__ v3_get_msr(uint_t msr, uint_t * high_byte, uint_t * low_byte) { __asm__ __volatile__ ( "rdmsr" : "=d" (*high_byte), "=a" (*low_byte) @@ -73,11 +73,11 @@ void __inline__ v3_get_msr(uint_t msr, uint_t * high_byte, uint_t * low_byte) { -void __inline__ v3_enable_ints() { +static void __inline__ v3_enable_ints() { __asm__ __volatile__ ("sti"); } -void __inline__ v3_disable_ints() { +static void __inline__ v3_disable_ints() { __asm__ __volatile__ ("cli"); }