acrn-hypervisor/hypervisor/include/arch/x86
Xiangyang Wu a97593e7db HV:treewide:Update return type of function ffs64 and ffz64
To reduce type conversion in HV:
Update return type of function ffs64 and ffz64 as uint16;
For ffs64, when the input is zero, INVALID_BIT_INDEX is returned;
Update temporary variable type and return value check of caller
when it call ffs64 or ffz64;

Note: In the allocate_mem, there is no return value checking for
calling ffz64, this will be updated latter.

V1-->V2:
        INVALID_BIT_INDEX instead of INVALID_NUMBER
        Coding style fixing;
        INVALID_CPU_ID instead of INVALID_PCPU_ID or INVALID_VCPU_ID;
        "%hu" is used to print vcpu id (uint16_t);
        Add "U/UL" for constant value as needed.
V2-->V3:
        ffs64 return INVALID_BIT_INDEX directly when
        the input value is zero;
        Remove excess "%hu" updates.
V3-->V4:
        Clean up the comments of ffs64;
        Add "U" for constant value as needed.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-02 15:11:22 +08:00
..
guest HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
apicreg.h hv:merge struct lapic and lapic_regs to lapic_regs 2018-07-02 10:49:14 +08:00
assign.h HV: move common stuff from assign.c 2018-06-15 17:10:41 +08:00
cpu.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
cpufeatures.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpuid.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
gdt.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
hob_parse.h HV: Parse SeedList HOB 2018-06-07 09:55:29 +08:00
host_pm.h hv: trap vm0 write/read pm1a/pm1b registers 2018-06-29 00:50:01 +08:00
hv_arch.h hv: implement lowlevel S3 enter/wakeup 2018-06-29 00:50:01 +08:00
idt.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
io.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
ioapic.h HV: treewide: drop debug-only helpers in release build 2018-07-02 14:35:39 +08:00
irq.h HV: treewide: drop debug-only helpers in release build 2018-07-02 14:35:39 +08:00
lapic.h hv:merge struct lapic and lapic_regs to lapic_regs 2018-07-02 10:49:14 +08:00
mmu.h HV:transfer page_table_type type 2018-07-02 10:47:01 +08:00
msr.h hv: emulate CR0.CD and CR0.NW 2018-07-02 12:33:06 +08:00
mtrr.h hv: basic MTRR virtualization 2018-06-08 12:06:15 +08:00
multiboot.h HV: treewide: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
per_cpu.h HV:change the cpu state to enum type 2018-07-02 11:22:48 +08:00
reboot.h hv: Add reboot shell command 2018-05-18 16:38:40 +08:00
softirq.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
timer.h HV: treewide: enforce unsignedness of pcpu_id 2018-06-21 16:59:21 +08:00
trusty.h HV: treewide: convert suffix ULL to UL 2018-06-29 00:50:01 +08:00
vmexit.h HV: treewide: drop debug-only helpers in release build 2018-07-02 14:35:39 +08:00
vmx.h hv: emulate CR0.CD and CR0.NW 2018-07-02 12:33:06 +08:00
vtd.h hv: More changes to enable GPU passthru 2018-06-29 00:50:01 +08:00
zeropage.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00