aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgabios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-02-05 18:49:44 -0500
committerKevin O'Connor <kevin@koconnor.net>2014-02-05 18:59:56 -0500
commitf5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25 (patch)
tree4064f831964810c14c5033758f81a673ace837ee /vgasrc/vgabios.c
parent151d03450f98ee3f35d85c6418c89ac3b2319e85 (diff)
downloadseabios-f5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25.tar.gz
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/vgabios.c')
-rw-r--r--vgasrc/vgabios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
index 57f1c1f3..f70b2b61 100644
--- a/vgasrc/vgabios.c
+++ b/vgasrc/vgabios.c
@@ -1114,7 +1114,7 @@ struct funcInfo {
u8 save_flags;
u8 disp_info;
u8 reserved_34[12];
-};
+} PACKED;
static void
handle_101b(struct bregs *regs)