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

0 views
Skip to first unread message

jo...@googlecode.com

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

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

=======================================
--- /trunk/src/kern/thread.c Mon Jan 17 22:07:34 2011
+++ /trunk/src/kern/thread.c Mon Jan 17 22:12:51 2011
@@ -449,8 +449,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