diff options
-rw-r--r-- | console-client/vga-support.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/console-client/vga-support.c b/console-client/vga-support.c index ce339e19..04926f92 100644 --- a/console-client/vga-support.c +++ b/console-client/vga-support.c @@ -55,8 +55,11 @@ struct vga_state unsigned char attr_mode; - char videomem[2 * 80 * 25]; - unsigned char fontmem[2 * VGA_FONT_SIZE * VGA_FONT_HEIGHT]; + /* Alignment is required by some "hardware", and optimizes transfers. */ + char videomem[2 * 80 * 25] + __attribute__ ((aligned (__BIGGEST_ALIGNMENT__))); + unsigned char fontmem[2 * VGA_FONT_SIZE * VGA_FONT_HEIGHT] + __attribute__ ((aligned (__BIGGEST_ALIGNMENT__))); }; static struct vga_state *vga_state; |