diff packages/kernel/current/tests/mutex3.cxx @ 130:eb9fd8c04db3 ecos-sw-2000-10-23

Merge from eCos master repository on 2000-10-23-17:01:37-BST
author jlarmour
date Mon, 23 Oct 2000 17:10:57 +0000
parents 6ed91473a1cd
children 4c750ce71ae3
line wrap: on
line diff
--- a/packages/kernel/current/tests/mutex3.cxx
+++ b/packages/kernel/current/tests/mutex3.cxx
@@ -37,6 +37,7 @@
 // Description:   Tests mutex priority inheritance
 //####DESCRIPTIONEND####
 
+#include <pkgconf/hal.h>
 #include <pkgconf/kernel.h>
 
 #include <cyg/kernel/sched.hxx>        // Cyg_Scheduler::start()
@@ -51,6 +52,11 @@
 
 #include <cyg/infra/diag.h>             // diag_printf
 
+#ifdef CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG
+externC void
+cyg_hal_invoke_constructors();
+#endif
+
 // ------------------------------------------------------------------------
 //
 // These checks should be enough; any other scheduler which has priorities
@@ -406,6 +412,9 @@ static void control_thread( CYG_ADDRWORD
 externC void
 cyg_user_start( void )
 { 
+#ifdef CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG
+    cyg_hal_invoke_constructors();
+#endif
     new_thread( control_thread, 0, 2, 1 );
 }