]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
drivers/ukconsole/vga: Add initial sanity check
authorFlorian Rommel <mail@florommel.de>
Wed, 30 Oct 2024 13:52:37 +0000 (14:52 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Mon, 16 Dec 2024 10:23:44 +0000 (10:23 +0000)
commit5b4b67b7f120565d2176e6d6b950d848a63e77a3
tree465da7b835fc157c783eb1d580cb62212127a285
parent146209292cb330596e3a3cd1d9de9c9eeaef2ee0
drivers/ukconsole/vga: Add initial sanity check

On initialization, ensure that the VGA controller is present and in
the expected state, otherwise cancel the initialization and
registration of the VGA driver, but continue booting.

For platforms without an VGA controller (such as firecracker), this
avoids aborts due to an illicit registration of a non-existing VGA
memory region.

Signed-off-by: Florian Rommel <mail@florommel.de>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
GitHub-Closes: #1530
drivers/ukconsole/vgacons/vga.c