aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-06-27 12:02:48 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-06-27 12:02:48 -0700
commitb775b0040fe57ef71ec9cd98f9c124a3d116269b (patch)
treeec85cf4b93d4d6ad4e5aa0eeeff0c8db14149a6c /com32/include
parent7ccf85b2a873bba3f363ad2df05457dd160c3f6d (diff)
downloadsyslinux-b775b0040fe57ef71ec9cd98f9c124a3d116269b.tar.gz
syslinux-b775b0040fe57ef71ec9cd98f9c124a3d116269b.tar.xz
syslinux-b775b0040fe57ef71ec9cd98f9c124a3d116269b.zip
Export the 64-bit partition offset and use it in chain.c
When used with the "fs" option to chain.c32, we need to know our own filesystem offset. That means knowing if we used the MBR vs GPT partition information, as well as if we ended up using the passed-in information or not. Resolve this by providing an explicit pointer to the current partition offset. Eventually this should be replaced by some kind of statfs() call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/syslinux/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/include/syslinux/config.h b/com32/include/syslinux/config.h
index f315f44c..79a4750e 100644
--- a/com32/include/syslinux/config.h
+++ b/com32/include/syslinux/config.h
@@ -112,6 +112,7 @@ union syslinux_derivative_info {
uint32_t _eflags;
const void *ptab_ptr;
const uint32_t *esdi_ptr;
+ const uint64_t *partoffset;
} disk; /* syslinux/extlinux */
struct {
uint16_t _gs, _fs, _es, _ds;
@@ -138,6 +139,7 @@ union syslinux_derivative_info {
uint32_t _eflags;
const void *spec_packet;
const uint32_t *esdi_ptr;
+ const uint64_t *partoffset;
} iso; /* isolinux */
};