From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 06 Jan 2006 16:30:00 +0000 (GMT) Received: from rtsoft2.corbina.net ([85.21.88.2]:25520 "HELO mail.dev.rtsoft.ru") by ftp.linux-mips.org with SMTP id S8133585AbWAFQ3m (ORCPT ); Fri, 6 Jan 2006 16:29:42 +0000 Received: (qmail 5312 invoked from network); 6 Jan 2006 16:32:17 -0000 Received: from wasted.dev.rtsoft.ru (HELO ?192.168.1.248?) (192.168.1.248) by mail.dev.rtsoft.ru with SMTP; 6 Jan 2006 16:32:17 -0000 Message-ID: <43BE9C20.2040805@ru.mvista.com> Date: Fri, 06 Jan 2006 19:34:40 +0300 From: Sergei Shtylylov Organization: MostaVista Software Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803 X-Accept-Language: ru, en-us, en-gb MIME-Version: 1.0 To: linux-mips@linux-mips.org CC: Manish Lachwani , Jordan Crouse , ralf@linux-mips.org Subject: [PATCH] Make KGDB compile for AMD Au1200 Content-Type: multipart/mixed; boundary="------------040105000905030801070202" Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 9789 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sshtylyov@ru.mvista.com Precedence: bulk X-list: linux-mips This is a multi-part message in MIME format. --------------040105000905030801070202 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello. AMD Au1200 SOC just doesn't have UART3, so KGDB won't even compile for it as is, here's the fix to make KGDB use UART1. Note that I haven't really tested KGDB itself... WBR, Sergei --------------040105000905030801070202 Content-Type: text/plain; name="DBAu1200-fix-KGDB-UART.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="DBAu1200-fix-KGDB-UART.patch" diff --git a/include/asm-mips/mach-au1x00/au1000.h b/include/asm-mips/mach-au1x00/au1000.h index 8e1d7ed..4686e17 100644 --- a/include/asm-mips/mach-au1x00/au1000.h +++ b/include/asm-mips/mach-au1x00/au1000.h @@ -1198,7 +1198,11 @@ extern au1xxx_irq_map_t au1xxx_irq_map[] /* UARTS 0-3 */ #define UART_BASE UART0_ADDR +#ifdef CONFIG_SOC_AU1200 +#define UART_DEBUG_BASE UART1_ADDR +#else #define UART_DEBUG_BASE UART3_ADDR +#endif #define UART_RX 0 /* Receive buffer */ #define UART_TX 4 /* Transmit buffer */ --------------040105000905030801070202--