diff packages/kernel/current/include/smp.hxx @ 178:aa8364213009

Merge from eCos master repository on 2001-08-15-01:50:29-BST
author jlarmour
date Wed, 15 Aug 2001 02:21:28 +0000
parents 4c750ce71ae3
children f62680ef1804
line wrap: on
line diff
--- a/packages/kernel/current/include/smp.hxx
+++ b/packages/kernel/current/include/smp.hxx
@@ -184,7 +184,7 @@ public:
 
     ~Cyg_SpinLock()
     {
-        CYG_ASSERT( !test(), "spinlock still claimed");
+//        CYG_ASSERT( !test(), "spinlock still claimed");
     };
     
     // Spin on the lock.
@@ -223,7 +223,9 @@ public:
     // we have it.
     void spin_intsave(CYG_INTERRUPT_STATE *state)
     {
-        HAL_DISABLE_INTERRUPTS(*state);
+        CYG_INTERRUPT_STATE s;
+        HAL_DISABLE_INTERRUPTS(s);
+        *state = s;
         spin();
     };
 
@@ -380,7 +382,9 @@ public:
     // we have it.
     void spin_intsave(CYG_INTERRUPT_STATE *state)
     {
-        HAL_DISABLE_INTERRUPTS(*state);
+        CYG_INTERRUPT_STATE s;
+        HAL_DISABLE_INTERRUPTS(s);
+        *state = s;
         spin();
     };