diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-06-27 08:16:49 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-06-27 10:29:23 +0100 |
commit | a2f057c289cbf142cdd6de7d89123df2f21e475a (patch) | |
tree | 412457e4a41f1e570a5b80eb66731085a6649554 | |
parent | cf315191b8f3466879491f06d4f30554cd58374b (diff) | |
download | syslinux-a2f057c289cbf142cdd6de7d89123df2f21e475a.tar.gz |
bios, font: zero input registers to get fontsyslinux-6.01-pre4
Users are reporting font issues under VirtualBox. Try this as a
speculative fix since the old 5.x behaviour was to pass in a partially
zero'd register set. Incidentally, the input regs are also used for
output, so at least we now avoid potentially constructing a pointer to
the font buffer using garbage register values.
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | core/bios.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/bios.c b/core/bios.c index 343268b3..71a34f8a 100644 --- a/core/bios.c +++ b/core/bios.c @@ -422,6 +422,8 @@ static int bios_font_query(uint8_t **font) /* Get BIOS 8x16 font */ + memset(&rm, 0, sizeof rm); + rm.eax.w[0] = 0x1130; /* Get Font Information */ rm.ebx.w[0] = 0x0600; /* Get 8x16 ROM font */ __intcall(0x10, &rm, &rm); |