Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/lubbock Fix kgdb_port_init() to make it comp...



details:   https://anonhg.NetBSD.org/src/rev/de984e87a02d
branches:  trunk
changeset: 574265:de984e87a02d
user:      bsh <bsh%NetBSD.org@localhost>
date:      Sat Feb 26 10:22:41 2005 +0000

description:
Fix kgdb_port_init() to make it compile with options KGDB.

diffstat:

 sys/arch/evbarm/lubbock/lubbock_machdep.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r bcf1f5a7e9eb -r de984e87a02d sys/arch/evbarm/lubbock/lubbock_machdep.c
--- a/sys/arch/evbarm/lubbock/lubbock_machdep.c Sat Feb 26 07:19:25 2005 +0000
+++ b/sys/arch/evbarm/lubbock/lubbock_machdep.c Sat Feb 26 10:22:41 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lubbock_machdep.c,v 1.4 2004/12/12 21:03:06 abs Exp $ */
+/*     $NetBSD: lubbock_machdep.c,v 1.5 2005/02/26 10:22:41 bsh Exp $ */
 
 /*
  * Copyright (c) 2002, 2003  Genetec Corporation.  All rights reserved.
@@ -112,7 +112,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lubbock_machdep.c,v 1.4 2004/12/12 21:03:06 abs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lubbock_machdep.c,v 1.5 2005/02/26 10:22:41 bsh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1147,20 +1147,19 @@
 {
 #if (NCOM > 0) && defined(COM_PXA2X0)
        paddr_t paddr = 0;
-       enum pxa2x0_uart_id uart_id;
        uint32_t ckenreg = ioreg_read(LUBBOCK_CLKMAN_VBASE+CLKMAN_CKEN);
 
        if (0 == strcmp(kgdb_devname, "ffuart")) {
                paddr = PXA2X0_FFUART_BASE;
-               clenreg |= CKEN_FFUART;
+               ckenreg |= CKEN_FFUART;
        }
        else if (0 == strcmp(kgdb_devname, "btuart")) {
                paddr = PXA2X0_BTUART_BASE;
-               clenreg |= CKEN_BTUART;
+               ckenreg |= CKEN_BTUART;
        }
 
        if (paddr &&
-           0 == com_kgdb_attach_pxa2x0(&pxa2x0_a4x_bs_tag, paddr,
+           0 == com_kgdb_attach(&pxa2x0_a4x_bs_tag, paddr,
                kgdb_rate, PXA2X0_COM_FREQ, COM_TYPE_PXA2x0, comkgdbmode)) {
 
                ioreg_write(LUBBOCK_CLKMAN_VBASE+CLKMAN_CKEN, ckenreg);



Home | Main Index | Thread Index | Old Index