diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-08-15 08:27:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-08-15 08:27:31 +0000 |
commit | bf13589746743deede64821ec62874a78f7b03ed (patch) | |
tree | d6f58545ca5b131ec49414ea1e9aa2b0262fc99d /sys/arch | |
parent | 75fda03141ccc1ee3c83498575162d029bc62034 (diff) |
Replace a bunch of (1 << 31) with (1U << 31)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/vmm_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/vmm_machdep.c b/sys/arch/amd64/amd64/vmm_machdep.c index 24a376a8f3b..352126d81c0 100644 --- a/sys/arch/amd64/amd64/vmm_machdep.c +++ b/sys/arch/amd64/amd64/vmm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm_machdep.c,v 1.4 2023/07/10 03:32:10 guenther Exp $ */ +/* $OpenBSD: vmm_machdep.c,v 1.5 2023/08/15 08:27:29 miod Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -6447,7 +6447,7 @@ vcpu_run_svm(struct vcpu *vcpu, struct vm_run_params *vrp) /* Handle vmd(8) injected interrupts */ /* Is there an interrupt pending injection? */ if (irq != 0xFFFF && vcpu->vc_irqready) { - vmcb->v_eventinj = (irq & 0xFF) | (1 << 31); + vmcb->v_eventinj = (irq & 0xFF) | (1U << 31); irq = 0xFFFF; } @@ -6467,7 +6467,7 @@ vcpu_run_svm(struct vcpu *vcpu, struct vm_run_params *vrp) case VMM_EX_AC: vmcb->v_eventinj |= (1ULL << 11); } - vmcb->v_eventinj |= (vcpu->vc_event) | (1 << 31); + vmcb->v_eventinj |= (vcpu->vc_event) | (1U << 31); vmcb->v_eventinj |= (3ULL << 8); /* Exception */ vcpu->vc_event = 0; } |