Do not save bootdev and boothowto when invalid value has passed.
authoraoyama <aoyama@openbsd.org>
Sun, 18 Dec 2022 13:18:36 +0000 (13:18 +0000)
committeraoyama <aoyama@openbsd.org>
Sun, 18 Dec 2022 13:18:36 +0000 (13:18 +0000)
commitf77a0a6c8668626b613934196cb7803552b63864
tree3ee96927531f67716b195734ba72bae36e5617f3
parent63f9fccb8ac5302b3d1e8e26c78ac58bebb8f76c
Do not save bootdev and boothowto when invalid value has passed.

This occurs the kernel has booted from old boot loader or directly
booted by command line parameter on emulator.

Tested by LUNA-88K2 and nono emulator.
sys/arch/luna88k/luna88k/locore0.S