mirror of https://github.com/xqemu/xqemu.git
acpi: drop debug port
I'm pretty sure this isn't needed any more. I think this predates the switch to seabios, and the seabios DSDT table has a DBUG() aml macro which writes stuff to the seabios debug port (0x402). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
3f5bc9e8af
commit
3e43749882
|
@ -38,8 +38,6 @@
|
||||||
# define PIIX4_DPRINTF(format, ...) do { } while (0)
|
# define PIIX4_DPRINTF(format, ...) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ACPI_DBG_IO_ADDR 0xb044
|
|
||||||
|
|
||||||
#define GPE_BASE 0xafe0
|
#define GPE_BASE 0xafe0
|
||||||
#define GPE_LEN 4
|
#define GPE_LEN 4
|
||||||
|
|
||||||
|
@ -129,11 +127,6 @@ static void apm_ctrl_changed(uint32_t val, void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void acpi_dbg_writel(void *opaque, uint32_t addr, uint32_t val)
|
|
||||||
{
|
|
||||||
PIIX4_DPRINTF("ACPI: DBG: 0x%08x\n", val);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void pm_io_space_update(PIIX4PMState *s)
|
static void pm_io_space_update(PIIX4PMState *s)
|
||||||
{
|
{
|
||||||
uint32_t pm_io_base;
|
uint32_t pm_io_base;
|
||||||
|
@ -400,8 +393,6 @@ static int piix4_pm_initfn(PCIDevice *dev)
|
||||||
/* APM */
|
/* APM */
|
||||||
apm_init(&s->apm, apm_ctrl_changed, s);
|
apm_init(&s->apm, apm_ctrl_changed, s);
|
||||||
|
|
||||||
register_ioport_write(ACPI_DBG_IO_ADDR, 4, 4, acpi_dbg_writel, s);
|
|
||||||
|
|
||||||
if (s->kvm_enabled) {
|
if (s->kvm_enabled) {
|
||||||
/* Mark SMM as already inited to prevent SMM from running. KVM does not
|
/* Mark SMM as already inited to prevent SMM from running. KVM does not
|
||||||
* support SMM mode. */
|
* support SMM mode. */
|
||||||
|
|
Loading…
Reference in New Issue