Fixes in the XLR platform code
- Fix bug in pic.h, assign reg variable, before return. - In xlr_pci.c, need to ignore the result of mmio read.
This commit is contained in:
parent
88117a532d
commit
1104442832
@ -163,7 +163,7 @@ pic_read_control(void)
|
||||
uint32_t reg;
|
||||
|
||||
mtx_lock_spin(&xlr_pic_lock);
|
||||
xlr_read_reg(mmio, PIC_CTRL);
|
||||
reg = xlr_read_reg(mmio, PIC_CTRL);
|
||||
mtx_unlock_spin(&xlr_pic_lock);
|
||||
return (reg);
|
||||
}
|
||||
@ -179,7 +179,7 @@ pic_write_control(uint32_t control)
|
||||
}
|
||||
|
||||
static __inline void
|
||||
pic_update_control(__uint32_t control)
|
||||
pic_update_control(uint32_t control)
|
||||
{
|
||||
xlr_reg_t *mmio = xlr_io_mmio(XLR_IO_PIC_OFFSET);
|
||||
|
||||
|
@ -426,7 +426,7 @@ static void
|
||||
bridge_pcix_ack(int irq)
|
||||
{
|
||||
|
||||
xlr_read_reg(xlr_io_mmio(XLR_IO_PCIX_OFFSET), 0x140 >> 2);
|
||||
(void)xlr_read_reg(xlr_io_mmio(XLR_IO_PCIX_OFFSET), 0x140 >> 2);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user