mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
hyperv/vmbus: Fix mismerge of r301015
Submitted by: Oliver Pinter <oliver.pinter hardenedbsd org> Sponsored by: Microsoft OSTC
This commit is contained in:
parent
8e8d4c7040
commit
5119948815
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=302220
@ -404,7 +404,7 @@ vmbus_vector_alloc(void)
|
||||
|
||||
/*
|
||||
* Search backwards form the highest IDT vector available for use
|
||||
* as vmbus channel callback vector. We install 'hv_vmbus_callback'
|
||||
* as vmbus channel callback vector. We install 'vmbus_isr'
|
||||
* handler at that vector and use it to interrupt vcpus.
|
||||
*/
|
||||
vector = APIC_SPURIOUS_INT;
|
||||
@ -443,7 +443,7 @@ vmbus_vector_free(int vector)
|
||||
|
||||
ip = &idt[vector];
|
||||
func = ((long)ip->gd_hioffset << 16 | ip->gd_looffset);
|
||||
KASSERT(func == (uintptr_t)&IDTVEC(hv_vmbus_callback),
|
||||
KASSERT(func == (uintptr_t)&IDTVEC(vmbus_isr),
|
||||
("invalid vector %d", vector));
|
||||
|
||||
setidt(vector, IDTVEC(rsvd), SDT_SYSIGT, SEL_KPL, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user