rem: if (B_OK != lock_memory(value, 8, B_READ_DEVICE)) goto access_violation;
context: _user_atomic_test_and_set64(vint64 *value, int64 newValue, int64 testAgainst){	cpu_status status;	int64 oldValue;	if (!CHECK_USER_ADDRESS(value))		goto access_violation;	if (B_OK != lock_memory(value, 8, B_READ_DEVICE))		goto access_violation;	status = disable_interrupts();	acquire_spinlock(&atomic_lock);	oldValue = *value;	if (oldValue == testAgainst)		*value = newValue;	release_spinlock(&atomic_lock);	restore_interrupts(status);	unlock_memory(value, 8, B_READ_DEVICE))	return oldValue;access_violation:	// XXX kill application	return -1;}