diff options
author | Isaku Yamahata | 2010-05-14 09:29:04 +0200 |
---|---|---|
committer | Blue Swirl | 2010-05-15 17:33:08 +0200 |
commit | f885f1eaa8711c06033ceb1599e3750fb37c306f (patch) | |
tree | f03808086454c9bd232ec4e2d948a93fe43d6b55 /hw/pc.h | |
parent | pc: initialize ioapic before use. (diff) | |
download | qemu-f885f1eaa8711c06033ceb1599e3750fb37c306f.tar.gz qemu-f885f1eaa8711c06033ceb1599e3750fb37c306f.tar.xz qemu-f885f1eaa8711c06033ceb1599e3750fb37c306f.zip |
pc, i440fx: Make smm enable/disable function i440fx independent.
make cpu_smm_update() generic to be independent on i440fx by
registering a callback.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pc.h')
-rw-r--r-- | hw/pc.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -80,6 +80,9 @@ extern int fd_bootchk; void ioport_set_a20(int enable); int ioport_get_a20(void); +typedef void (*cpu_set_smm_t)(int smm, void *arg); +void cpu_smm_register(cpu_set_smm_t callback, void *arg); + /* acpi.c */ extern int acpi_enabled; extern char *acpi_tables; @@ -108,7 +111,6 @@ struct PCII440FXState; typedef struct PCII440FXState PCII440FXState; PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix_devfn, qemu_irq *pic, int ram_size); -void i440fx_set_smm(PCII440FXState *d, int val); void i440fx_init_memory_mappings(PCII440FXState *d); /* piix4.c */ |