hyperv: Fix definition of HV_MS_TO_US

Definition is intended to be used where bigtime_t is accepted
and should be signed.

Change-Id: I6ebe21c55ae47b0b4f46f0df655942b582759d51
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10482
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
John Davis
2026-03-12 15:09:09 +00:00
committed by Jérôme Duval
parent d2819f9e83
commit 19630fa076
+1 -1
View File
@@ -16,7 +16,7 @@
#define HV_BYTES_TO_PAGES(x) (HV_PAGE_ALIGN(x) >> HV_PAGE_SHIFT)
#define HV_BYTES_TO_SPAN_PAGES(a, l) ((((l) - 1) >> HV_PAGE_SHIFT) \
+ (((((l) - 1) & HV_PAGE_MASK) + ((a) & HV_PAGE_MASK)) >> HV_PAGE_SHIFT) + 1);
#define HV_MS_TO_US(x) ((x) * 1000ULL)
#define HV_MS_TO_US(x) ((x) * 1000LL)
#define HV_STATIC_ASSERT(cond, msg) static_assert(cond, msg)