aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk/mstructs.h
diff options
context:
space:
mode:
authorShao Miller <shao.miller@yrdsb.edu.on.ca>2010-03-09 16:02:39 -0500
committerShao Miller <shao.miller@yrdsb.edu.on.ca>2010-06-11 01:49:10 +0000
commitec3733b81f4771a4b8e212edd9bd4a8600a2d382 (patch)
tree9aaf4cd3aeedb95a78bc16109598ddc992cee0f1 /memdisk/mstructs.h
parent345a7cba6786de010359607e40f96f6fccbf40a5 (diff)
downloadsyslinux-ec3733b81f4771a4b8e212edd9bd4a8600a2d382.tar.gz
syslinux-ec3733b81f4771a4b8e212edd9bd4a8600a2d382.tar.xz
syslinux-ec3733b81f4771a4b8e212edd9bd4a8600a2d382.zip
memdisk: Use MEMDISK header to access "safe hook"
This commit moves the MEMDISK header structure into the common structures header file. It also adds the "safe hook" structure to the MEMDISK header structure, since that matches what's in the hook binaries. Thus, we access the "safe hook" via the header pointer, instead of separately. Tested against a DOS floppy image including an experimental MDISKCHK.COM and also gainst WinVBlock. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'memdisk/mstructs.h')
-rw-r--r--memdisk/mstructs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/memdisk/mstructs.h b/memdisk/mstructs.h
index d6b6265e..ee9568f1 100644
--- a/memdisk/mstructs.h
+++ b/memdisk/mstructs.h
@@ -41,6 +41,15 @@ struct safe_hook {
} mBFT;
} MEMDISK_PACKED_POSTFIX;
+struct memdisk_header {
+ uint16_t int13_offs;
+ uint16_t int15_offs;
+ uint16_t patch_offs;
+ uint16_t total_size;
+ uint16_t iret_offs;
+ struct safe_hook safe_hook;
+};
+
/* Requirement for struct acpi_description_header */
#include "../memdisk/acpi.h"