summaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/hyperv_common.c
diff options
context:
space:
mode:
authornonaka <nonaka@NetBSD.org>2019-12-07 11:45:45 +0000
committernonaka <nonaka@NetBSD.org>2019-12-07 11:45:45 +0000
commitc8f387398e2d81a019c137b9f2e803b199cfe27b (patch)
tree27dd4ad934119a76e9c779046d4035176117a6ee /sys/dev/hyperv/hyperv_common.c
parenta7282be7245266bb1e5e0739e4240b678d53165c (diff)
Get a Hyper-V virtual processor id in cpu_hatch().
Currently, it is got in config_interrupts context. However, since it is required when attaching a device, it is got earlier than now.
Diffstat (limited to 'sys/dev/hyperv/hyperv_common.c')
-rw-r--r--sys/dev/hyperv/hyperv_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/hyperv/hyperv_common.c b/sys/dev/hyperv/hyperv_common.c
index bc062c621ab..56c3b6e9275 100644
--- a/sys/dev/hyperv/hyperv_common.c
+++ b/sys/dev/hyperv/hyperv_common.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hyperv_common.c,v 1.3 2019/12/06 12:46:06 nonaka Exp $ */
+/* $NetBSD: hyperv_common.c,v 1.4 2019/12/07 11:45:45 nonaka Exp $ */
/*-
* Copyright (c) 2009-2012,2016-2017 Microsoft Corp.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hyperv_common.c,v 1.3 2019/12/06 12:46:06 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hyperv_common.c,v 1.4 2019/12/07 11:45:45 nonaka Exp $");
#include "hyperv.h"
@@ -56,6 +56,7 @@ __weak_alias(hyperv_set_event_proc, hyperv_voidop);
__weak_alias(hyperv_set_message_proc, hyperv_voidop);
__weak_alias(hyperv_send_eom, hyperv_voidop);
__weak_alias(hyperv_intr, hyperv_voidop);
+__weak_alias(hyperv_get_vcpuid, hyperv_nullop);
__weak_alias(vmbus_init_interrupts_md, hyperv_voidop);
__weak_alias(vmbus_deinit_interrupts_md, hyperv_voidop);
__weak_alias(vmbus_init_synic_md, hyperv_voidop);