diff options
| author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2003-04-07 19:42:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-07 19:42:41 -0700 |
| commit | d9c75cd7f2e01fd40e5715d149cb720405c5a705 (patch) | |
| tree | 302cae8c11cb58aa3b0169742f2a5c2b2aa9e786 | |
| parent | dd6eb371906b117f1fb84d14e728805ad6d7956b (diff) | |
[PATCH] and visws
| -rw-r--r-- | include/asm-i386/mach-visws/irq_vectors.h | 6 | ||||
| -rw-r--r-- | include/asm-i386/mach-visws/smpboot_hooks.h | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/include/asm-i386/mach-visws/irq_vectors.h b/include/asm-i386/mach-visws/irq_vectors.h index c05f144d0084..a3f927d6a6a3 100644 --- a/include/asm-i386/mach-visws/irq_vectors.h +++ b/include/asm-i386/mach-visws/irq_vectors.h @@ -51,4 +51,10 @@ */ #define NR_IRQS 224 +#define FPU_IRQ 13 + +#define FIRST_VM86_IRQ 3 +#define LAST_VM86_IRQ 15 +#define invalid_vm86_irq(irq) ((irq) < 3 || (irq) > 15) + #endif /* _ASM_IRQ_VECTORS_H */ diff --git a/include/asm-i386/mach-visws/smpboot_hooks.h b/include/asm-i386/mach-visws/smpboot_hooks.h index b8abdb9bea99..d926471fa359 100644 --- a/include/asm-i386/mach-visws/smpboot_hooks.h +++ b/include/asm-i386/mach-visws/smpboot_hooks.h @@ -1,10 +1,21 @@ +static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip) +{ + CMOS_WRITE(0xa, 0xf); + local_flush_tlb(); + Dprintk("1.\n"); + *((volatile unsigned short *) TRAMPOLINE_HIGH) = start_eip >> 4; + Dprintk("2.\n"); + *((volatile unsigned short *) TRAMPOLINE_LOW) = start_eip & 0xf; + Dprintk("3.\n"); +} + /* for visws do nothing for any of these */ static inline void smpboot_clear_io_apic_irqs(void) { } -static inline void smpboot_setup_warm_reset_vector(void) +static inline void smpboot_restore_warm_reset_vector(void) { } |
