search for: intr_init_hook

Displaying 8 results from an estimated 8 matches for "intr_init_hook".

2007 Apr 18
0
[PATCH 2/5] Interrupts subarch cleanup.patch
A brave attempt to be rid of an unnecessary subarch hook and clean things up a bit. First, all subarches use IRQ-2 as a cascade IRQ. So do that in the common code. Second, there is no need for a pre_intr_init_hook. We can set up the interrupt gates at any time, as this doesn't touch any real hardware, just the processor gates. Now the subarch code still needs to setup the appropriate irq descriptors, fill in any custom interrupt gates, and initialize controllers, but it can do that all at once. This r...
2007 Apr 18
0
[PATCH 2/5] Interrupts subarch cleanup.patch
A brave attempt to be rid of an unnecessary subarch hook and clean things up a bit. First, all subarches use IRQ-2 as a cascade IRQ. So do that in the common code. Second, there is no need for a pre_intr_init_hook. We can set up the interrupt gates at any time, as this doesn't touch any real hardware, just the processor gates. Now the subarch code still needs to setup the appropriate irq descriptors, fill in any custom interrupt gates, and initialize controllers, but it can do that all at once. This r...
2007 Apr 18
2
[RFC, PATCH 14/24] i386 Vmi reboot fixes
...1:38:32.000000000 -0800 @@ -31,6 +31,7 @@ #include <linux/interrupt.h> #include <linux/bootmem.h> #include <linux/mm.h> +#include <linux/pm.h> #include <asm/acpi.h> #include <asm/arch_hooks.h> #include <asm/processor.h> @@ -205,7 +206,6 @@ void __init intr_init_hook(void) setup_irq(2, &irq2); } - /* * Probe for the VMI option ROM */ @@ -238,6 +238,13 @@ void __init probe_vmi_rom(void) } } +/* Simple shutdown routine to power down in a VM */ +void +vmi_power_off(void) +{ + /* Shutdown halt powers off the CPU */ + shutdown_halt(); +} /* *...
2007 Apr 18
2
[RFC, PATCH 14/24] i386 Vmi reboot fixes
...1:38:32.000000000 -0800 @@ -31,6 +31,7 @@ #include <linux/interrupt.h> #include <linux/bootmem.h> #include <linux/mm.h> +#include <linux/pm.h> #include <asm/acpi.h> #include <asm/arch_hooks.h> #include <asm/processor.h> @@ -205,7 +206,6 @@ void __init intr_init_hook(void) setup_irq(2, &irq2); } - /* * Probe for the VMI option ROM */ @@ -238,6 +238,13 @@ void __init probe_vmi_rom(void) } } +/* Simple shutdown routine to power down in a VM */ +void +vmi_power_off(void) +{ + /* Shutdown halt powers off the CPU */ + shutdown_halt(); +} /* *...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
..., nops=%ld, extra native = %ld bytes\n", + a - (struct vmi_annotation *)start + 1, (unsigned long)(end-start), + translation_size, nop_size, extra_native_bytes); +} + +static void scan_builtin_annotations(void) +{ + scan_annotations(__vmi_annotation, __vmi_annotation_end); +} + +/** + * pre_intr_init_hook - initialisation prior to setting up interrupt vectors + * + * Description: + * Perform any necessary interrupt initialisation prior to setting up + * the "ordinary" interrupt call gates. For legacy reasons, the ISA + * interrupts should be initialised here if the machine emulates a PC +...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
..., nops=%ld, extra native = %ld bytes\n", + a - (struct vmi_annotation *)start + 1, (unsigned long)(end-start), + translation_size, nop_size, extra_native_bytes); +} + +static void scan_builtin_annotations(void) +{ + scan_annotations(__vmi_annotation, __vmi_annotation_end); +} + +/** + * pre_intr_init_hook - initialisation prior to setting up interrupt vectors + * + * Description: + * Perform any necessary interrupt initialisation prior to setting up + * the "ordinary" interrupt call gates. For legacy reasons, the ISA + * interrupts should be initialised here if the machine emulates a PC +...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...ART; extern char __VMI_SHARED; VROMHeader *vmi_rom = NULL; VMI_UINT8 hypervisor_found; +VMI_UINT8 hypervisor_timer_found; /* Convenient macro for calling VMI functions indirectly in the ROM */ typedef VMI_UINT32 __attribute__((regparm(1))) (VROMFUNC)(void); @@ -201,6 +205,11 @@ void __init intr_init_hook(void) { #ifdef CONFIG_X86_LOCAL_APIC apic_intr_init(); + + /* if the VMI-timer is used, redirect the local APIC timer interrupt + * gate to point to the vmi interrupt handler. */ + if (vmi_timer_used()) + set_intr_gate(LOCAL_TIMER_VECTOR, apic_vmi_timer_interrupt); #endif setup_irq(2, &a...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...ART; extern char __VMI_SHARED; VROMHeader *vmi_rom = NULL; VMI_UINT8 hypervisor_found; +VMI_UINT8 hypervisor_timer_found; /* Convenient macro for calling VMI functions indirectly in the ROM */ typedef VMI_UINT32 __attribute__((regparm(1))) (VROMFUNC)(void); @@ -201,6 +205,11 @@ void __init intr_init_hook(void) { #ifdef CONFIG_X86_LOCAL_APIC apic_intr_init(); + + /* if the VMI-timer is used, redirect the local APIC timer interrupt + * gate to point to the vmi interrupt handler. */ + if (vmi_timer_used()) + set_intr_gate(LOCAL_TIMER_VECTOR, apic_vmi_timer_interrupt); #endif setup_irq(2, &a...