aboutsummaryrefslogtreecommitdiffstats
path: root/com32/chain/partiter.h
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2013-02-14 16:51:46 +0100
committerMichal Soltys <soltys@ziu.info>2013-02-14 16:53:05 +0100
commitd4ce5b911628423adeb53db8a3cb796f8de2016d (patch)
treea3c00a9e5fd52d6b1682ce93a64a9ac8d506e211 /com32/chain/partiter.h
parentc3e12b67d34fbf0efaae33c8b0867ccceb7c5949 (diff)
downloadsyslinux-d4ce5b911628423adeb53db8a3cb796f8de2016d.tar.gz
syslinux-d4ce5b911628423adeb53db8a3cb796f8de2016d.tar.xz
syslinux-d4ce5b911628423adeb53db8a3cb796f8de2016d.zip
com32/chain: implement handling of non-standard hybrid GPT+MBR layouts
We also take a bit relaxed approach - so we check for presence of 0xEE at any place, then attempt to read GPT header only if prefmbr is not set. Signed-off-by: Michal Soltys <soltys@ziu.info>
Diffstat (limited to 'com32/chain/partiter.h')
-rw-r--r--com32/chain/partiter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/chain/partiter.h b/com32/chain/partiter.h
index a737584e..4004ef9e 100644
--- a/com32/chain/partiter.h
+++ b/com32/chain/partiter.h
@@ -46,8 +46,9 @@ enum {PI_OK, PI_DONE, PI_INSANE, PI_ERRLOAD};
/* flags */
-#define PIF_STEPALL 0x01
-#define PIF_RELAX 0x02
+#define PIF_STEPALL 0b001
+#define PIF_RELAX 0b010
+#define PIF_PREFMBR 0b100
struct itertype;
struct part_iter;