summaryrefslogtreecommitdiff
path: root/core/comboot.inc
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 /core/comboot.inc
parent7ccf85b2a873bba3f363ad2df05457dd160c3f6d (diff)
downloadsyslinux-b775b0040fe57ef71ec9cd98f9c124a3d116269b.tar.gz
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 'core/comboot.inc')
-rw-r--r--core/comboot.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/comboot.inc b/core/comboot.inc
index 91cc15ae..65b20be8 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -593,6 +593,8 @@ comapi_derinfo:
mov P_DL,al
mov P_FS,cs
mov P_SI,OrigESDI
+ mov P_GS,cs
+ mov P_DI,Hidden
%if IS_SYSLINUX || IS_EXTLINUX
mov P_ES,cs
mov P_BX,PartInfo