mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
modified the lapic_id type to uint8_t
According intel mannual and ACPI mannual,lapic_id length is 1 byte. V1->V2: Add U suffix to the numeric when do arithmetic operation on lapic. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
int cpu_find_logical_id(uint32_t lapic_id);
|
||||
int cpu_find_logical_id(uint8_t lapic_id);
|
||||
|
||||
/**********************************/
|
||||
/* EXTERNAL VARIABLES */
|
||||
|
@@ -160,7 +160,7 @@ void save_lapic(struct lapic_regs *regs);
|
||||
int early_init_lapic(void);
|
||||
int init_lapic(uint16_t cpu_id);
|
||||
void send_lapic_eoi(void);
|
||||
uint32_t get_cur_lapic_id(void);
|
||||
uint8_t get_cur_lapic_id(void);
|
||||
int send_startup_ipi(enum intr_cpu_startup_shorthand cpu_startup_shorthand,
|
||||
uint32_t cpu_startup_dest,
|
||||
uint64_t cpu_startup_start_address);
|
||||
|
Reference in New Issue
Block a user