diff options
author | Robert Mustacchi <rm@joyent.com> | 2012-03-08 00:41:46 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2012-03-08 00:41:46 +0000 |
commit | 9621d5228ac4dbdd99cdfe8f2946e7315261a893 (patch) | |
tree | 488c0b64195ad83c993bb2bf67a12763937811ee /kvm.c | |
parent | 76be9d4d13f5c5d32d915820bbf956b73fd89aab (diff) | |
download | illumos-kvm-9621d5228ac4dbdd99cdfe8f2946e7315261a893.tar.gz |
HVM-719 kvm should build with gcc 4.4.420120517
Diffstat (limited to 'kvm.c')
-rw-r--r-- | kvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ * Yaniv Kamay <yaniv@qumranet.com> * * Ported to illumos by Joyent - * Copyright 2011 Joyent, Inc. All rights reserved. + * Copyright (c) 2012 Joyent, Inc. All rights reserved. * * Authors: * Max Bruning <max@joyent.com> @@ -783,7 +783,7 @@ kvm_free_physmem(struct kvm *kvm) void kvm_get_kvm(struct kvm *kvm) { - atomic_inc_32(&kvm->users_count); + atomic_inc_32((volatile uint32_t *)&kvm->users_count); } unsigned long @@ -1449,7 +1449,7 @@ kvm_vm_ioctl_create_vcpu(struct kvm *kvm, uint32_t id, int *rval_p) smp_wmb(); - atomic_inc_32(&kvm->online_vcpus); + atomic_inc_32((volatile uint32_t *)&kvm->online_vcpus); if (kvm->bsp_vcpu_id == id) kvm->bsp_vcpu = vcpu; |