[joyos] r289 committed - Made halt use smash() to release the motor lock

2 views
Skip to first unread message

jo...@googlecode.com

unread,
Jan 18, 2011, 12:30:05 AM1/18/11
to joyos...@googlegroups.com
Revision: 289
Author: vaumnou
Date: Mon Jan 17 21:17:11 2011
Log: Made halt use smash() to release the motor lock
http://code.google.com/p/joyos/source/detail?r=289

Modified:
/trunk/src/kern/thread.c

=======================================
--- /trunk/src/kern/thread.c Mon Jan 17 21:16:52 2011
+++ /trunk/src/kern/thread.c Mon Jan 17 21:17:11 2011
@@ -473,8 +473,7 @@

// nuke motor lock
extern struct lock motor_lock;
- motor_lock.locked = 0;
- motor_lock.thread = NULL;
+ smash(&motor_lock);

#endif

Reply all
Reply to author
Forward
0 new messages