From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756548AbZCJXzm (ORCPT ); Tue, 10 Mar 2009 19:55:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755334AbZCJXzd (ORCPT ); Tue, 10 Mar 2009 19:55:33 -0400 Received: from hera.kernel.org ([140.211.167.34]:38675 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753822AbZCJXzc (ORCPT ); Tue, 10 Mar 2009 19:55:32 -0400 Subject: Re: [git-pull -tip V2] x86: cpu architecture debug code From: Jaswinder Singh Rajput To: Ingo Molnar Cc: "H. Peter Anvin" , x86 maintainers , LKML In-Reply-To: <20090310174535.GA2963@elte.hu> References: <1236684201.3301.11.camel@localhost.localdomain> <20090310122806.GE5794@elte.hu> <1236697752.3387.2.camel@localhost.localdomain> <20090310152029.GN3850@elte.hu> <1236701373.3387.4.camel@localhost.localdomain> <20090310174535.GA2963@elte.hu> Content-Type: text/plain; charset="UTF-8" Date: Wed, 11 Mar 2009 05:25:10 +0530 Message-Id: <1236729310.7004.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 (2.24.4-1.fc10) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2009-03-10 at 18:45 +0100, Ingo Molnar wrote: > Thanks - picked it up into tip:x86/debug. (Note that i > rearranged the Makefile details a bit so that it does not > conflict with tip:perfcounters) > > Not yet in tip:master, because it triggers this build failure: > > arch/x86/kernel/cpu/cpu_debug.c: In function ‘print_dt’: > arch/x86/kernel/cpu/cpu_debug.c:475: error: implicit declaration of function ‘store_ldt’ > Here is the fix. The following changes since commit 259ef6fcea4046fe24495b1e3631c1b905c531c1: Jaswinder Singh Rajput (1): x86: cpu architecture debug code are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tip-cpu.git master Jaswinder Singh Rajput (1): x86: cpu_debug.c remove some dependency arch/x86/kernel/cpu/cpu_debug.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) Complete diff: diff --git a/arch/x86/kernel/cpu/cpu_debug.c b/arch/x86/kernel/cpu/cpu_debug.c index 0bdf4da..08c365a 100755 --- a/arch/x86/kernel/cpu/cpu_debug.c +++ b/arch/x86/kernel/cpu/cpu_debug.c @@ -464,19 +464,19 @@ static void print_dt(void *seq) unsigned long ldt; /* IDT */ - store_idt((struct desc_ptr *)&dt); + native_store_idt((struct desc_ptr *)&dt); print_desc_ptr("IDT", seq, dt); /* GDT */ - store_gdt((struct desc_ptr *)&dt); + native_store_gdt((struct desc_ptr *)&dt); print_desc_ptr("GDT", seq, dt); /* LDT */ - store_ldt(ldt); + asm volatile("sldt %0" : "=m" (ldt)); seq_printf(seq, " LDT\t: %016lx\n", ldt); /* TR */ - store_tr(ldt); + asm volatile("str %0" : "=r" (ldt)); seq_printf(seq, " TR\t: %016lx\n", ldt); }