mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv:merge struct lapic and lapic_regs to lapic_regs
merge these two structures to lapic_regs Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -128,7 +128,7 @@ struct lapic_reg {
|
||||
uint32_t val; PAD3;
|
||||
};
|
||||
|
||||
struct lapic {
|
||||
struct lapic_regs {
|
||||
/* reserved */ PAD4;
|
||||
/* reserved */ PAD4;
|
||||
uint32_t id; PAD3;
|
||||
|
@@ -137,24 +137,6 @@ union lapic_id {
|
||||
} x2apic;
|
||||
};
|
||||
|
||||
struct lapic_regs {
|
||||
uint32_t id;
|
||||
uint32_t tpr;
|
||||
uint32_t apr;
|
||||
uint32_t ppr;
|
||||
uint32_t ldr;
|
||||
uint32_t dfr;
|
||||
uint32_t tmr[8];
|
||||
uint32_t svr;
|
||||
uint32_t lvtt;
|
||||
uint32_t lvt0;
|
||||
uint32_t lvt1;
|
||||
uint32_t lvterr;
|
||||
uint32_t ticr;
|
||||
uint32_t tccr;
|
||||
uint32_t tdcr;
|
||||
};
|
||||
|
||||
void write_lapic_reg32(uint32_t offset, uint32_t value);
|
||||
void save_lapic(struct lapic_regs *regs);
|
||||
int early_init_lapic(void);
|
||||
|
Reference in New Issue
Block a user