diff options
author | sephe <sephe@FreeBSD.org> | 2016-04-11 06:22:26 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-04-11 06:22:26 +0000 |
commit | 710f9bdd7a9e9726409854be3cc2246048cd3c74 (patch) | |
tree | 279be0c8a5ca3f2fd870f501b676aace7cb36499 | |
parent | ed18aa785e35157f85eb7c3276aef49a7f9acf5e (diff) | |
download | FreeBSD-src-710f9bdd7a9e9726409854be3cc2246048cd3c74.zip FreeBSD-src-710f9bdd7a9e9726409854be3cc2246048cd3c74.tar.gz |
hyperv: Define macro for Hyper-V interface
Suggested by: rpokala
MFC after: 1 week
Sponsored by: Microsoft OSTC
-rw-r--r-- | sys/dev/hyperv/vmbus/hv_hv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_hv.c b/sys/dev/hyperv/vmbus/hv_hv.c index f23896d..a6e5881 100644 --- a/sys/dev/hyperv/vmbus/hv_hv.c +++ b/sys/dev/hyperv/vmbus/hv_hv.c @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #define HV_NANOSECONDS_PER_SEC 1000000000L +#define HYPERV_INTERFACE 0x31237648 /* HV#1 */ static u_int hv_get_timecount(struct timecounter *tc); @@ -416,7 +417,7 @@ hyperv_identify(void) op = HV_CPU_ID_FUNCTION_HV_INTERFACE; do_cpuid(op, regs); - if (regs[0] != 0x31237648 /* HV#1 */) + if (regs[0] != HYPERV_INTERFACE) return (false); op = HV_CPU_ID_FUNCTION_MS_HV_FEATURES; |