diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-02-05 18:49:44 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-02-05 18:59:56 -0500 |
commit | f5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25 (patch) | |
tree | 4064f831964810c14c5033758f81a673ace837ee /vgasrc/stdvga.c | |
parent | 151d03450f98ee3f35d85c6418c89ac3b2319e85 (diff) | |
download | seabios-hppa-f5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25.zip seabios-hppa-f5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25.tar.gz seabios-hppa-f5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25.tar.bz2 |
vgabios: Make sure exported structs use PACKED.
Commit ca668640 introduced structs for data returned from the
handle_101b and handle_101c calls. However, the structs were not
declared as packed and that caused incorrect behavior for
handle_101b. This was seen to break some old DOS programs (Win3 setup
and DISPLAY.SYS). This patch adds in the necessary PACKED declaration
to the structs.
The 'struct saveBDAstate' remains un-packed, as it does not appear
that its contents are documented. (And, its format already differs
from what was in the previous "lgpl vgabios".)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvga.c')
-rw-r--r-- | vgasrc/stdvga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c index e0661f1..c94ec06 100644 --- a/vgasrc/stdvga.c +++ b/vgasrc/stdvga.c @@ -338,7 +338,7 @@ struct saveVideoHardware { u8 grdc_regs[9]; u16 crtc_addr; u8 plane_latch[4]; -}; +} PACKED; static void stdvga_save_hw_state(u16 seg, struct saveVideoHardware *info) @@ -412,7 +412,7 @@ struct saveDACcolors { u8 pelmask; u8 dac[768]; u8 color_select; -}; +} PACKED; static void stdvga_save_dac_state(u16 seg, struct saveDACcolors *info) |