Mercurial > flash_v2
changeset 822:060f6b8274f3
Update redboot exec command to stop eth driver
line wrap: on
line diff
--- a/packages/hal/mips/arch/current/ChangeLog +++ b/packages/hal/mips/arch/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2003-02-27 Nick Garnett <nickg@calivar.com> * include/mips-stub.h: Disabled option that makes MIPS32 targets
--- a/packages/hal/mips/arch/current/src/redboot_linux_exec.c +++ b/packages/hal/mips/arch/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // // 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 @@ -56,6 +56,10 @@ #include <cyg/hal/hal_cache.h> #include <cyg/hal/hal_if.h> +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + #define xstr(s) str(s) #define str(s...) #s @@ -131,6 +135,10 @@ do_exec(int argc, char *argv[]) HAL_DISABLE_INTERRUPTS(oldints); +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + pb = (struct parmblock *)base_addr; pcmd = pb->text;
--- a/packages/hal/mn10300/am33/current/ChangeLog +++ b/packages/hal/mn10300/am33/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2002-12-06 Mark Salter <msalter@redhat.com> * src/var_misc.c (hal_mn10300_mem_real_region_top): New function.
--- a/packages/hal/mn10300/am33/current/src/redboot_linux_exec.c +++ b/packages/hal/mn10300/am33/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // // 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 @@ -57,6 +57,10 @@ #include <cyg/hal/hal_intr.h> #include <cyg/hal/hal_cache.h> +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + // Exported CLI function(s) // The exec command works like the go command in YAMON - that is, @@ -119,6 +123,10 @@ do_exec(int argc, char *argv[]) } } +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + HAL_DISABLE_INTERRUPTS(oldints); HAL_DCACHE_SYNC(); HAL_ICACHE_DISABLE();
--- a/packages/hal/powerpc/adder/current/ChangeLog +++ b/packages/hal/powerpc/adder/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2003-01-31 Gary Thomas <gary@mlbassoc.com> * cdl/hal_powerpc_adder.cdl: No tests currently defined. @@ -40,7 +44,7 @@ 2002-11-25 Gary Thomas <gthomas@ecosce //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // Copyright (C) 2002 Gary Thomas // // eCos is free software; you can redistribute it and/or modify it under
--- a/packages/hal/powerpc/adder/current/src/redboot_linux_exec.c +++ b/packages/hal/powerpc/adder/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // Copyright (C) 2002 Gary Thomas // // eCos is free software; you can redistribute it and/or modify it under @@ -74,6 +74,10 @@ #include <net/net.h> #endif +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + #ifdef CYGSEM_REDBOOT_HAL_LINUX_BOOT #include CYGHWR_MEMORY_LAYOUT_H @@ -227,6 +231,10 @@ do_exec(int argc, char *argv[]) } } +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + // Disable interrupts HAL_DISABLE_INTERRUPTS(oldints);
--- a/packages/hal/powerpc/csb281/current/ChangeLog +++ b/packages/hal/powerpc/csb281/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2003-02-26 Gary Thomas <gary@mlbassoc.com> * src/lcd_support.c (lcd_on): Enable/disable is still not stable.
--- a/packages/hal/powerpc/csb281/current/src/redboot_linux_exec.c +++ b/packages/hal/powerpc/csb281/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // Copyright (C) 2002 Gary Thomas // // eCos is free software; you can redistribute it and/or modify it under @@ -72,6 +72,10 @@ #include <net/net.h> #endif +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + #ifdef CYGSEM_REDBOOT_HAL_LINUX_BOOT #include CYGHWR_MEMORY_LAYOUT_H @@ -225,6 +229,10 @@ do_exec(int argc, char *argv[]) } } +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + // Disable interrupts HAL_DISABLE_INTERRUPTS(oldints);
--- a/packages/hal/powerpc/mbx/current/ChangeLog +++ b/packages/hal/powerpc/mbx/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2003-03-07 Gary Thomas <gary@mlbassoc.com> * include/plf_stub.h: Remove [confusing] platform specific include.
--- a/packages/hal/powerpc/mbx/current/src/redboot_linux_exec.c +++ b/packages/hal/powerpc/mbx/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // // 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 @@ -68,6 +68,10 @@ #include <cyg/hal/hal_intr.h> #include <cyg/hal/hal_cache.h> +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + #ifdef CYGSEM_REDBOOT_HAL_LINUX_BOOT #include CYGHWR_MEMORY_LAYOUT_H @@ -260,6 +264,10 @@ do_exec(int argc, char *argv[]) } +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + // Disable interrupts HAL_DISABLE_INTERRUPTS(oldints);
--- a/packages/hal/powerpc/viper/current/ChangeLog +++ b/packages/hal/powerpc/viper/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2003-03-07 Gary Thomas <gary@mlbassoc.com> * include/plf_stub.h: Remove superfluous include <pkgconf/hal_powerpc_viper.h>
--- a/packages/hal/powerpc/viper/current/src/redboot_linux_exec.c +++ b/packages/hal/powerpc/viper/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // Copyright (C) 2002 Gary Thomas // // eCos is free software; you can redistribute it and/or modify it under @@ -74,6 +74,10 @@ #include <net/net.h> #endif +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + #ifdef CYGSEM_REDBOOT_HAL_LINUX_BOOT #include CYGHWR_MEMORY_LAYOUT_H @@ -227,6 +231,10 @@ do_exec(int argc, char *argv[]) } } +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + // Disable interrupts HAL_DISABLE_INTERRUPTS(oldints);
--- a/packages/hal/sh/arch/current/ChangeLog +++ b/packages/hal/sh/arch/current/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Mark Salter <msalter@redhat.com> + + * src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary. + 2003-01-31 Mark Salter <msalter@redhat.com> * src/hal_syscall.c (hal_syscall_handler): Let generic syscall code
--- a/packages/hal/sh/arch/current/src/redboot_linux_exec.c +++ b/packages/hal/sh/arch/current/src/redboot_linux_exec.c @@ -8,7 +8,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. // // 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 @@ -55,6 +55,10 @@ #include <cyg/hal/hal_intr.h> #include <cyg/hal/hal_cache.h> +#ifdef CYGPKG_IO_ETH_DRIVERS +#include <cyg/io/eth/eth_drv.h> // Logical driver interfaces +#endif + #define xstr(s) str(s) #define str(s...) #s @@ -124,6 +128,10 @@ do_exec(int argc, char *argv[]) diag_printf(" Base address 0x%08x Entry 0x%08x\n", base_addr, entry); diag_printf(" Cmdline : %s\n", cmd_line); +#ifdef CYGPKG_IO_ETH_DRIVERS + eth_drv_stop(); +#endif + HAL_DISABLE_INTERRUPTS(oldints); HAL_DCACHE_SYNC(); HAL_ICACHE_DISABLE();
