[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 09/13: Align VGA buffers
From: |
Samuel Thibault |
Subject: |
[hurd] 09/13: Align VGA buffers |
Date: |
Wed, 26 Mar 2014 12:12:15 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 25ae24c53dbada6be01791c5f15b26d103ee588d
Author: Samuel Thibault <address@hidden>
Date: Wed Mar 26 03:44:57 2014 +0100
Align VGA buffers
Some "hardware" (such as kvm on linux 3.2) would hang when transferring
between video memory and unaligned main memory. This also allows
better optimized transfers anyway.
Thanks Petter Reinholdtsen for the report and patient tests.
* console-client/vga-support.c (vga_state): Force maximum alignment of
`videomem' and `fontmem' fields.
---
console-client/vga-support.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/console-client/vga-support.c b/console-client/vga-support.c
index ce339e1..04926f9 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;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (bbb6465 -> d8b7d42), Samuel Thibault, 2014/03/26
- [hurd] 10/13: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/03/26
- [hurd] 05/13: hurd: fix receiver type, honor DEFAULT_PAGER_IMPORTS, Samuel Thibault, 2014/03/26
- [hurd] 07/13: mach-defpager: fix local includes, Samuel Thibault, 2014/03/26
- [hurd] 12/13: Handle fonts with multiple-of-8 bbox width, Samuel Thibault, 2014/03/26
- [hurd] 01/13: libpager: fix comment of pager_change_attributes, Samuel Thibault, 2014/03/26
- [hurd] 13/13: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/03/26
- [hurd] 11/13: Fix setting LGE flag, Samuel Thibault, 2014/03/26
- [hurd] 09/13: Align VGA buffers,
Samuel Thibault <=
- [hurd] 08/13: mach-defpager: replace the magic typecast with a hash table, Samuel Thibault, 2014/03/26
- [hurd] 03/13: isofs: also copy the terminating zero in read_symlink_hook, Samuel Thibault, 2014/03/26
- [hurd] 06/13: mach-defpager: fix receiver lookups, Samuel Thibault, 2014/03/26
- [hurd] 04/13: libdiskfs: fix string termination, Samuel Thibault, 2014/03/26
- [hurd] 02/13: libpager: fix potential deadlock, Samuel Thibault, 2014/03/26