Don't clear video mem on UEFI, efi video mode refactor

Writes to videomem is slow without memory remapping
Can't do the mapping without leaving UEFI, so skipping
the clear. Afaict it should always be cleared by UEFI

This saves ~10 seconds of booting on my machine
(1920*1080*4 bytes)

EFI video mode (should have been it's own commit)
 * Only do strcmp if there are enough params
 * break when found
This commit is contained in:
Fredrik Holmqvist
2018-08-01 21:12:08 +02:00
parent 0594302a65
commit 15db6949b6
8 changed files with 21 additions and 23 deletions
@@ -32,7 +32,7 @@ void uncompress_24bit_RLE(const uint8 compressed[], uint8 *uncompressed);
void uncompress_8bit_RLE(const uint8 compressed[], uint8 *uncompressed);
/* default splash display */
status_t video_display_splash(addr_t frameBuffer);
status_t video_display_splash(addr_t frameBuffer, bool clear);
#ifdef __cplusplus
}