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]

Rattler - improve reset


-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: hal/powerpc/rattler/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/rattler/current/ChangeLog,v
retrieving revision 1.3
diff -u -5 -p -r1.3 ChangeLog
--- hal/powerpc/rattler/current/ChangeLog	28 Aug 2003 15:55:54 -0000	1.3
+++ hal/powerpc/rattler/current/ChangeLog	2 Sep 2003 13:52:50 -0000
@@ -1,5 +1,10 @@
+2003-09-02  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/hal_aux.c (_rattler_reset): Try to be more careful when
+	resetting the board - sometimes PCI vanished when this was done.
+
 2003-08-28  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/redboot_linux_exec.c: Obsolete file - removed.
 
 	* src/plf_redboot_linux_exec.c: New file - platform specifics
Index: hal/powerpc/rattler/current/src/hal_aux.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/rattler/current/src/hal_aux.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 hal_aux.c
--- hal/powerpc/rattler/current/src/hal_aux.c	26 Aug 2003 17:04:03 -0000	1.2
+++ hal/powerpc/rattler/current/src/hal_aux.c	2 Sep 2003 12:41:45 -0000
@@ -408,11 +408,11 @@ _rattler_reset(void)
 {
     unsigned long hid0, int_state;
 
     // Need interrupts off to force checkstop
     HAL_DISABLE_INTERRUPTS(int_state);
-    IMM->clocks_rmr = 0x01;  // Checkstop Reset Enable
+    IMM->clocks_rmr |= 0x01;  // Checkstop Reset Enable
     // Force a checkstop by turning on parity which is not implemented
     CYGARC_MFSPR(CYGARC_REG_HID0, hid0); 
     hid0 |= 0x30000000;
     CYGARC_MTSPR(CYGARC_REG_HID0, hid0); 
     diag_printf("...RESET\n");

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