Re: [PATCH -tip] x86: do_boot_cpu - check if we have ESR register

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cyrill Gorcunov
Date: Wednesday, October 22, 2008 - 8:06 am

[Ingo Molnar - Wed, Oct 22, 2008 at 05:04:16PM +0200]
| 
| * Cyrill Gorcunov <gorcunov@gmail.com> wrote:
| 
| > [Ingo Molnar - Wed, Oct 22, 2008 at 04:59:09PM +0200]
| > | 
| > | > > | > -		apic_write(APIC_ESR, 0);
| > | > > | > -		apic_read(APIC_ESR);
| > | > > | > +		if (APIC_INTEGRATED(apic_version[phys_apicid])) {
| > | > > | > +			apic_write(APIC_ESR, 0);
| > | > > | > +			apic_read(APIC_ESR);
| > | > > | > +		}
| > | 
| > | this wouldnt build with certain configs:
| > | 
| > | arch/x86/kernel/smpboot.c: In function 'do_boot_cpu':
| > | arch/x86/kernel/smpboot.c:897: error: 'phys_apicid' undeclared (first use in this function)
| > | arch/x86/kernel/smpboot.c:897: error: (Each undeclared identifier is reported only once
| > | arch/x86/kernel/smpboot.c:897: error: for each function it appears in.)
| > | include/asm/io_32.h: In function 'memcpy_fromio':
| > | 
| > | because phys_apicid is not available in the !WAKE_SECONDARY_VIA_INIT 
| > | case. Changed it to boot_cpu_physical_apicid - that should be good 
| > | enough.
| > | 
| > | 	Ingo
| > | 
| > 
| > Did you fixed it? (oh... actually I've been compilling the patch
| > but had this CONFIG turned on and didn't catch this issue)
| 
| yeah, fixed it up, dont worry about it.
| 
| 	Ingo
| 

Thanks Ingo!

		- Cyrill -
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH -tip] x86: do_boot_cpu - check if we have ESR r ..., Cyrill Gorcunov, (Wed Oct 22, 8:06 am)
Re: [PATCH -tip] x86: do_boot_cpu - check if we have ESR r ..., Maciej W. Rozycki, (Wed Oct 22, 8:29 am)
Re: [PATCH -tip] x86: do_boot_cpu - check if we have ESR r ..., Maciej W. Rozycki, (Wed Oct 22, 8:41 am)
Re: [PATCH -tip] x86: do_boot_cpu - check if we have ESR r ..., Maciej W. Rozycki, (Wed Oct 22, 8:42 am)
Re: [PATCH -tip] x86: do_boot_cpu - check if we have ESR r ..., Maciej W. Rozycki, (Wed Oct 22, 8:52 am)