Spinlock added, some intrinsic changes and RTL