spin_lock and stack initial implementaion