Displaying 2 results from an estimated 2 matches for "safe_hook".
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...------------------------------------------------------------------ */
#include <stdint.h>
+#include "acpi.h"
#include "bda.h"
#include "dskprobe.h"
#include "e820.h"
@@ -47,6 +48,18 @@ struct memdisk_header {
uint16_t iret_offs;
};
+struct safe_hook {
+ uint8_t jump[3]; /* Max. three bytes for jump */
+ uint8_t signature[8]; /* "$INT13SF" */
+ uint8_t vendor[8]; /* "MEMDISK " */
+ uint32_t old_hook; /* SEG:OFF for previous INT 13h hook */
+ uint32_t flags; /* "Safe hook" flags */
+ /* The nex...
2011 Aug 06
4
[PATCH] ifmemdsk.c32: Allow boot options based on presence of MEMDISK
...*** Macros */
+#define M_GET_DRIVE_PARAMS (0x08)
+#define M_INT13H ((0x0000 << 4) + 0x0013 * 4)
+#define M_FREEBASEMEM ((0x0040 << 4) + 0x0013)
+#define M_TOP ((0x9FFF << 4) + 0x0000)
+
+/*** Object types */
+typedef struct mdi s_mdi;
+typedef real_addr_t u_segoff;
+typedef struct safe_hook s_safe_hook;
+typedef struct mBFT s_mbft;
+
+/*** Function types */
+typedef int f_find(void);
+
+/*** Function declarations */
+static const s_mdi * installation_check(int);
+static f_find scan_drives;
+static f_find walk_safe_hooks;
+static const s_safe_hook * is_safe_hook(const void *);
+static...