Mercurial > flash_v2
changeset 1105:a8f01385190a
Fix network debug issues.
| author | gthomas |
|---|---|
| date | Tue, 15 Jul 2003 00:57:45 +0000 |
| parents | 087b71a00179 |
| children | d4e3faad8d75 |
| files | packages/devs/eth/powerpc/quicc/current/ChangeLog packages/devs/eth/powerpc/quicc/current/cdl/quicc_eth_drivers.cdl packages/devs/eth/powerpc/quicc/current/src/if_quicc.c |
| diffstat | 3 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/eth/powerpc/quicc/current/ChangeLog +++ b/packages/devs/eth/powerpc/quicc/current/ChangeLog @@ -1,3 +1,10 @@ +2003-07-14 Gary Thomas <gary@mlbassoc.com> + + * src/if_quicc.c (quicc_eth_init): Only flush cache if enabled. + + * cdl/quicc_eth_drivers.cdl: Force serial debug messages during + initialization (work around startup issues with RedBoot). + 2003-03-28 Gary Thomas <gary@mlbassoc.com> * src/if_quicc.c: Align data buffers on cache boundary.
--- a/packages/devs/eth/powerpc/quicc/current/cdl/quicc_eth_drivers.cdl +++ b/packages/devs/eth/powerpc/quicc/current/cdl/quicc_eth_drivers.cdl @@ -9,6 +9,7 @@ ## ------------------------------------------- ## This file is part of eCos, the Embedded Configurable Operating System. ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +## Copyright (C) 2003 Gary Thomas ## ## eCos is free software; you can redistribute it and/or modify it under ## the terms of the GNU General Public License as published by the Free @@ -62,6 +63,9 @@ cdl_package CYGPKG_DEVS_ETH_POWERPC_QUIC include_dir . include_files ; # none _exported_ whatsoever + # Debug I/O during network stack initialization is not reliable + requires { !CYGPKG_NET || CYGPKG_NET_FORCE_SERIAL_CONSOLE == 1 } + description "Ethernet driver for PowerPC MPC8xx boards." compile -library=libextras.a if_quicc.c
--- a/packages/devs/eth/powerpc/quicc/current/src/if_quicc.c +++ b/packages/devs/eth/powerpc/quicc/current/src/if_quicc.c @@ -9,7 +9,7 @@ // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. -// Copyright (C) 2002 Gary Thomas +// Copyright (C) 2002, 2003 Gary Thomas // Copyright (C) 2003 Nick Garnett <nickg@calivar.com> // // eCos is free software; you can redistribute it and/or modify it under @@ -223,8 +223,10 @@ quicc_eth_init(struct cyg_netdevtab_entr // Ensure consistent state between cache and what the QUICC sees HAL_DCACHE_IS_ENABLED(cache_state); - HAL_DCACHE_SYNC(); - HAL_DCACHE_DISABLE(); + if (cache_state) { + HAL_DCACHE_SYNC(); + HAL_DCACHE_DISABLE(); + } #ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED // Set up to handle interrupts
