summaryrefslogtreecommitdiff
path: root/console-client/vga-support.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-01 00:31:45 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-01 00:31:45 +0200
commitd2eb87c0674a281d1d3854b9c4fba0b7df215077 (patch)
treefcaf7c4434c6872ba6f95a327b2a1a4663cc6bb5 /console-client/vga-support.h
parentf5bbed75d021b84b181ede1d793a7401f928043c (diff)
console-client vga: Avoid using optimized string operations on vga_videomem
The VGA boards may not like AVX-whatnot-optimized 512B accesses. E.g. qemu does not support it and raises an invalid opcode trap.
Diffstat (limited to 'console-client/vga-support.h')
-rw-r--r--console-client/vga-support.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/console-client/vga-support.h b/console-client/vga-support.h
index 17c0b5fd..c109bc6c 100644
--- a/console-client/vga-support.h
+++ b/console-client/vga-support.h
@@ -41,6 +41,15 @@ error_t vga_init (void);
hardware access. */
void vga_fini (void);
+/* Non-optimized memset for vga_videomem */
+void vga_memset (void *__restrict s, int c, size_t n);
+
+/* Non-optimized memcpy for vga_videomem */
+void vga_memcpy (void *__restrict dest, const void *__restrict src, size_t n);
+
+/* Non-optimized memmove for vga_videomem */
+void vga_memmove (void *dest, const void *src, size_t n);
+
/* Write DATALEN bytes from DATA to the font buffer BUFFER, starting
from glyph index. */
void vga_write_font_buffer (int buffer, int index,