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:
Jayachandran C. 2011-01-20 08:08:19 +00:00
parent 88117a532d
commit 1104442832
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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