mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
HV: Rename functions beginning with "_"
V1: In order to remove MISRA C violations for rule 219S, rename functions, macros whose name starts with "_". Also removed some __mmio functions because they are duplicates and are not used anywhere. Renamed functions like __assert, to asm_assert, because they were only wrappers around asm calls. V2: Over and above the changes on V1, modified bitmap functions names to lock (corresponding to unlock) introduced in V1 Signed-off-by: Arindam Roy <arindam.roy@intel.com>
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
#define CPUID_EXTEND_ADDRESS_SIZE 0x80000008U
|
||||
|
||||
|
||||
static inline void __cpuid(uint32_t *eax, uint32_t *ebx,
|
||||
static inline void asm_cpuid(uint32_t *eax, uint32_t *ebx,
|
||||
uint32_t *ecx, uint32_t *edx)
|
||||
{
|
||||
/* Execute CPUID instruction and save results */
|
||||
@@ -118,7 +118,7 @@ static inline void cpuid(uint32_t leaf,
|
||||
*eax = leaf;
|
||||
*ecx = 0U;
|
||||
|
||||
__cpuid(eax, ebx, ecx, edx);
|
||||
asm_cpuid(eax, ebx, ecx, edx);
|
||||
}
|
||||
|
||||
static inline void cpuid_subleaf(uint32_t leaf, uint32_t subleaf,
|
||||
@@ -128,7 +128,7 @@ static inline void cpuid_subleaf(uint32_t leaf, uint32_t subleaf,
|
||||
*eax = leaf;
|
||||
*ecx = subleaf;
|
||||
|
||||
__cpuid(eax, ebx, ecx, edx);
|
||||
asm_cpuid(eax, ebx, ecx, edx);
|
||||
}
|
||||
|
||||
int set_vcpuid_entries(struct vm *vm);
|
||||
|
||||
Reference in New Issue
Block a user