Merge "x86_64: Add atomic funtions"