diff packages/hal/common/current/src/generic-stub.c @ 28:18ee5a9c102e ecos-sw-1999-08-09

Merge from eCos master repository on 1999-08-09-17:04:48-BST
author jlarmour
date Mon, 09 Aug 1999 16:37:19 +0000
parents 443894e2e912
children 29bc183297e1
line wrap: on
line diff
--- a/packages/hal/common/current/src/generic-stub.c
+++ b/packages/hal/common/current/src/generic-stub.c
@@ -1086,6 +1086,14 @@ int
             lock_thread_scheduler (1);  /* 1 == continue */
           }
 
+#ifdef __ECOS__
+      /* Need to flush the data and instruction cache here, as we may have
+         deposited a breakpoint in __single_step. */
+
+        __data_cache (CACHE_FLUSH) ;
+        __instruction_cache (CACHE_FLUSH) ;
+#endif
+
         return -1;
       }