Setting the VTIME to a value larger than 214 lead to an integer overflow in the calculation of the sleep timeout which could lead to a panic.
Setting the VTIME to a value larger than 214 lead to an integer overflow
in the calculation of the sleep timeout which could lead to a panic.

Instead of doing the very error-prone, and in more than one way incorrect,
sleep time calculation, allocate an external timeout and let it wake us.

Reported by: Raan Young <raan@graand-visions.com>

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars