mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
be6b3710c8
While this loses quite a bit of accuracy (although to no apparent decrease in emulation quality) , it helps avoiding the additional overhead of the `clock_gettime` syscall (as `CLOCK_MONOTONIC_COARSE` is forwarded using the mapped time page) and we don't have to do a HPET timer read for each tick. This results in a decrease of Serenity boot time from 1h16m down to 42m when running on Serenity.
30 lines
1.4 KiB
Diff
30 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tim Schumacher <timschumi@gmx.de>
|
|
Date: Thu, 5 May 2022 18:50:31 +0200
|
|
Subject: [PATCH] Extend short scan sets into the full list
|
|
|
|
We don't support the (apparently nonstandard) short variant of scan
|
|
sets, so extend them into a full list manually.
|
|
---
|
|
chardev/char.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/chardev/char.c b/chardev/char.c
|
|
index 0169d8dde4b533c9cf851831b03c8adcac24cff5..03ce487a23c92b70981643bd213930f5d074afdb 100644
|
|
--- a/chardev/char.c
|
|
+++ b/chardev/char.c
|
|
@@ -382,11 +382,11 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename,
|
|
if (strstart(filename, "vc", &p)) {
|
|
qemu_opt_set(opts, "backend", "vc", &error_abort);
|
|
if (*p == ':') {
|
|
- if (sscanf(p+1, "%7[0-9]x%7[0-9]", width, height) == 2) {
|
|
+ if (sscanf(p+1, "%7[0123456789]x%7[0123456789]", width, height) == 2) {
|
|
/* pixels */
|
|
qemu_opt_set(opts, "width", width, &error_abort);
|
|
qemu_opt_set(opts, "height", height, &error_abort);
|
|
- } else if (sscanf(p+1, "%7[0-9]Cx%7[0-9]C", width, height) == 2) {
|
|
+ } else if (sscanf(p+1, "%7[0123456789]Cx%7[0123456789]C", width, height) == 2) {
|
|
/* chars */
|
|
qemu_opt_set(opts, "cols", width, &error_abort);
|
|
qemu_opt_set(opts, "rows", height, &error_abort);
|