mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-12 12:30:08 +00:00
hv: irq: fix MISRA-C violations in irq.c and idt.h
This commit fixed following violations: - Procedure has more than one exit point: free_irq_vector/request_irq/dispatch_interrupt - goto detected: dispatch_interrupt - Pointer param should be declared pointer to const: fixup_idt - basic type declaration used: fixup_idt Tracked-On: #861 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
/* Interrupt Descriptor Table (LDT) selectors are 16 bytes on x86-64 instead of
|
||||
* 8 bytes.
|
||||
*/
|
||||
#define X64_IDT_DESC_SIZE (0x10)
|
||||
#define X64_IDT_DESC_SIZE (0x10U)
|
||||
/* Number of the HOST IDT entries */
|
||||
#define HOST_IDT_ENTRIES (0x100)
|
||||
#define HOST_IDT_ENTRIES (0x100U)
|
||||
/* Size of the IDT */
|
||||
#define HOST_IDT_SIZE (HOST_IDT_ENTRIES * X64_IDT_DESC_SIZE)
|
||||
|
||||
|
Reference in New Issue
Block a user