This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

update rest of exec command implementations


Index: hal/mips/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/arch/current/ChangeLog,v
retrieving revision 1.68
diff -u -p -5 -r1.68 ChangeLog
--- hal/mips/arch/current/ChangeLog	27 Feb 2003 18:28:36 -0000	1.68
+++ hal/mips/arch/current/ChangeLog	11 Mar 2003 17:09:43 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2003-02-27  Nick Garnett  <nickg at calivar dot com>
 
 	* include/mips-stub.h: Disabled option that makes MIPS32 targets
 	use 64 bit registers in GDB protocol. The standard GDB does not
 	support this, only MIPS own version.
Index: hal/mips/arch/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mips/arch/current/src/redboot_linux_exec.c,v
retrieving revision 1.6
diff -u -p -5 -r1.6 redboot_linux_exec.c
--- hal/mips/arch/current/src/redboot_linux_exec.c	23 May 2002 23:03:23 -0000	1.6
+++ hal/mips/arch/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:43 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -54,10 +54,14 @@
 #include <cyg/infra/cyg_type.h>
 #include <cyg/hal/hal_intr.h>
 #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
 
 typedef struct
 {
@@ -128,10 +132,14 @@ do_exec(int argc, char *argv[])
             return;
         }
     }
     
     HAL_DISABLE_INTERRUPTS(oldints);
+
+#ifdef CYGPKG_IO_ETH_DRIVERS
+    eth_drv_stop();
+#endif
 
     pb = (struct parmblock *)base_addr;
     pcmd = pb->text;
 
     pb->memsize.name = pcmd;
Index: hal/mn10300/am33/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mn10300/am33/current/ChangeLog,v
retrieving revision 1.10
diff -u -p -5 -r1.10 ChangeLog
--- hal/mn10300/am33/current/ChangeLog	6 Dec 2002 18:25:54 -0000	1.10
+++ hal/mn10300/am33/current/ChangeLog	11 Mar 2003 17:09:45 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2002-12-06  Mark Salter  <msalter at redhat dot com>
 
 	* src/var_misc.c (hal_mn10300_mem_real_region_top): New function.
 
 	* include/variant.inc: Don't set TBR for RAM startup if the RAM
Index: hal/mn10300/am33/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/mn10300/am33/current/src/redboot_linux_exec.c,v
retrieving revision 1.1
diff -u -p -5 -r1.1 redboot_linux_exec.c
--- hal/mn10300/am33/current/src/redboot_linux_exec.c	14 Nov 2002 17:53:27 -0000	1.1
+++ hal/mn10300/am33/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:45 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -55,10 +55,14 @@
 #include <redboot.h>
 
 #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,
 // providing callee with argc, argv, and env. In addition to the
 // information provided by the user, 
@@ -116,10 +120,14 @@ do_exec(int argc, char *argv[])
         res = _rb_gets(line, sizeof(line), wait_time*1000);
         if (res == _GETS_CTRLC) {
             return;
         }
     }
+
+#ifdef CYGPKG_IO_ETH_DRIVERS
+    eth_drv_stop();
+#endif
 
     HAL_DISABLE_INTERRUPTS(oldints);
     HAL_DCACHE_SYNC();
     HAL_ICACHE_DISABLE();
     HAL_DCACHE_DISABLE();
Index: hal/powerpc/adder/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/adder/current/ChangeLog,v
retrieving revision 1.4
diff -u -p -5 -r1.4 ChangeLog
--- hal/powerpc/adder/current/ChangeLog	31 Jan 2003 15:14:50 -0000	1.4
+++ hal/powerpc/adder/current/ChangeLog	11 Mar 2003 17:09:45 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2003-01-31  Gary Thomas  <gary at mlbassoc dot com>
 
 	* cdl/hal_powerpc_adder.cdl: No tests currently defined.
 
 2002-12-02  Gary Thomas  <gthomas at ecoscentric dot com>
@@ -38,11 +42,11 @@
 
 //===========================================================================
 //####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
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
Index: hal/powerpc/adder/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/adder/current/src/redboot_linux_exec.c,v
retrieving revision 1.1
diff -u -p -5 -r1.1 redboot_linux_exec.c
--- hal/powerpc/adder/current/src/redboot_linux_exec.c	25 Nov 2002 23:18:44 -0000	1.1
+++ hal/powerpc/adder/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:45 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
@@ -72,10 +72,14 @@
 
 #ifdef CYGPKG_REDBOOT_NETWORKING
 #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
 
 //=========================================================================
@@ -224,10 +228,14 @@ do_exec(int argc, char *argv[])
                 return;
             }
             script_timeout_ms -= CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT;
         }
     }
+
+#ifdef CYGPKG_IO_ETH_DRIVERS
+    eth_drv_stop();
+#endif
 
     // Disable interrupts
     HAL_DISABLE_INTERRUPTS(oldints);
 
     // Put the caches to sleep.
Index: hal/powerpc/csb281/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/csb281/current/ChangeLog,v
retrieving revision 1.7
diff -u -p -5 -r1.7 ChangeLog
--- hal/powerpc/csb281/current/ChangeLog	5 Mar 2003 17:04:02 -0000	1.7
+++ hal/powerpc/csb281/current/ChangeLog	11 Mar 2003 17:09:45 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2003-02-26  Gary Thomas  <gary at mlbassoc dot com>
 
 	* src/lcd_support.c (lcd_on): Enable/disable is still not stable.
 
 2003-02-25  Gary Thomas  <gary at mlbassoc dot com>
Index: hal/powerpc/csb281/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/csb281/current/src/redboot_linux_exec.c,v
retrieving revision 1.1
diff -u -p -5 -r1.1 redboot_linux_exec.c
--- hal/powerpc/csb281/current/src/redboot_linux_exec.c	24 Dec 2002 16:00:51 -0000	1.1
+++ hal/powerpc/csb281/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:47 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
@@ -70,10 +70,14 @@
 
 #ifdef CYGPKG_REDBOOT_NETWORKING
 #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
 
 //=========================================================================
@@ -222,10 +226,14 @@ do_exec(int argc, char *argv[])
                 return;
             }
             script_timeout_ms -= CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT;
         }
     }
+
+#ifdef CYGPKG_IO_ETH_DRIVERS
+    eth_drv_stop();
+#endif
 
     // Disable interrupts
     HAL_DISABLE_INTERRUPTS(oldints);
 
     // Put the caches to sleep.
Index: hal/powerpc/mbx/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mbx/current/ChangeLog,v
retrieving revision 1.33
diff -u -p -5 -r1.33 ChangeLog
--- hal/powerpc/mbx/current/ChangeLog	7 Mar 2003 14:47:31 -0000	1.33
+++ hal/powerpc/mbx/current/ChangeLog	11 Mar 2003 17:09:48 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2003-03-07  Gary Thomas  <gary at mlbassoc dot com>
 
 	* include/plf_stub.h: Remove [confusing] platform specific include.
 
 2002-12-02  Gary Thomas  <gthomas at ecoscentric dot com>
Index: hal/powerpc/mbx/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mbx/current/src/redboot_linux_exec.c,v
retrieving revision 1.2
diff -u -p -5 -r1.2 redboot_linux_exec.c
--- hal/powerpc/mbx/current/src/redboot_linux_exec.c	23 May 2002 23:04:25 -0000	1.2
+++ hal/powerpc/mbx/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:48 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -66,10 +66,14 @@
 #include CYGBLD_HAL_PLATFORM_H
 
 #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
 
 //=========================================================================
@@ -257,10 +261,14 @@ do_exec(int argc, char *argv[])
 	// conventions.
 	
 	sp = (sp-32)&~7;
     
     }
+
+#ifdef CYGPKG_IO_ETH_DRIVERS
+    eth_drv_stop();
+#endif
 
     // Disable interrupts
     HAL_DISABLE_INTERRUPTS(oldints);
 
     // Put the caches to sleep.
Index: hal/powerpc/viper/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/viper/current/ChangeLog,v
retrieving revision 1.22
diff -u -p -5 -r1.22 ChangeLog
--- hal/powerpc/viper/current/ChangeLog	7 Mar 2003 14:47:31 -0000	1.22
+++ hal/powerpc/viper/current/ChangeLog	11 Mar 2003 17:09:49 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2003-03-07  Gary Thomas  <gary at mlbassoc dot com>
 
 	* include/plf_stub.h: Remove superfluous include <pkgconf/hal_powerpc_viper.h>
 
 2003-03-04  Gary Thomas  <gary at mlbassoc dot com>
Index: hal/powerpc/viper/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/viper/current/src/redboot_linux_exec.c,v
retrieving revision 1.2
diff -u -p -5 -r1.2 redboot_linux_exec.c
--- hal/powerpc/viper/current/src/redboot_linux_exec.c	24 Jul 2002 14:49:07 -0000	1.2
+++ hal/powerpc/viper/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:49 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
@@ -72,10 +72,14 @@
 
 #ifdef CYGPKG_REDBOOT_NETWORKING
 #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
 
 //=========================================================================
@@ -224,10 +228,14 @@ do_exec(int argc, char *argv[])
                 return;
             }
             script_timeout_ms -= CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT;
         }
     }
+
+#ifdef CYGPKG_IO_ETH_DRIVERS
+    eth_drv_stop();
+#endif
 
     // Disable interrupts
     HAL_DISABLE_INTERRUPTS(oldints);
 
     // Put the caches to sleep.
Index: hal/sh/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/sh/arch/current/ChangeLog,v
retrieving revision 1.41
diff -u -p -5 -r1.41 ChangeLog
--- hal/sh/arch/current/ChangeLog	31 Jan 2003 16:46:00 -0000	1.41
+++ hal/sh/arch/current/ChangeLog	11 Mar 2003 17:09:51 -0000
@@ -1,5 +1,9 @@
+2003-03-11  Mark Salter  <msalter at redhat dot com>
+
+	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
+
 2003-01-31  Mark Salter  <msalter at redhat dot com>
 
 	* src/hal_syscall.c (hal_syscall_handler): Let generic syscall code
 	handle exit.
 
Index: hal/sh/arch/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/sh/arch/current/src/redboot_linux_exec.c,v
retrieving revision 1.2
diff -u -p -5 -r1.2 redboot_linux_exec.c
--- hal/sh/arch/current/src/redboot_linux_exec.c	23 May 2002 23:04:39 -0000	1.2
+++ hal/sh/arch/current/src/redboot_linux_exec.c	11 Mar 2003 17:09:51 -0000
@@ -6,11 +6,11 @@
 //
 //==========================================================================
 //####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
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -53,10 +53,14 @@
 
 #include <cyg/infra/cyg_type.h>
 #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
 
 struct parmblock {
     cyg_uint32 mount_rdonly;
@@ -121,10 +125,14 @@ do_exec(int argc, char *argv[])
         return;
   
     diag_printf("Now booting linux kernel:\n");
     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();
     HAL_DCACHE_DISABLE();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]