From 50927537ac510fe7b2bd41ec5a1d07a37930bda8 Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Fri, 17 May 2013 10:54:40 +0900 Subject: [PATCH] remove setting of warm reset vector (bug#11) at least, in attached-mic and builtin-mic, should not be necessary because it uses the SIPI. --- arch/x86/kernel/cpu.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/cpu.c b/arch/x86/kernel/cpu.c index 07250188..c4722af4 100644 --- a/arch/x86/kernel/cpu.c +++ b/arch/x86/kernel/cpu.c @@ -44,7 +44,7 @@ void *get_x86_this_cpu_kstack(void); void init_processors_local(int max_id); void assign_processor_id(void); void arch_delay(int); -void x86_set_warm_reset(void); +void x86_set_warm_reset(unsigned long ip, char *first_page_va); void x86_init_perfctr(void); extern int kprintf(const char *format, ...); @@ -393,12 +393,7 @@ static void outb(uint8_t v, uint16_t port) static void set_warm_reset_vector(unsigned long ip) { - /* Write CMOS */ - x86_set_warm_reset(); - - /* Set vector */ - *(unsigned short *)(first_page_va + 0x469) = (ip >> 4); - *(unsigned short *)(first_page_va + 0x467) = ip & 0xf; + x86_set_warm_reset(ip, first_page_va); } static void wait_icr_idle(void)