path: root/doc
diff options
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-22 10:55:03 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-22 10:55:03 -0700
commitd966918e7304ff405fae20916cf137d737c92dea (patch)
tree67dfe5d27d7abbcc7fae039787e87f8dc7406295 /doc
parente2a24eacc5d5ab9f994bcee17bf7d65e2178b6d1 (diff)
memdisk: add a sector_shift field to the MDI; fix memdiskfind
Add a sector_shift field to the MDI rather than assuming 512-byte sectors. Fix memdiskfind to report size in bytes, not in sectors. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'doc')
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/memdisk.txt b/doc/memdisk.txt
index c7244abc..b8ed9ae6 100644
--- a/doc/memdisk.txt
+++ b/doc/memdisk.txt
@@ -190,13 +190,14 @@ The MEMDISK info structure currently contains:
[ES:DI+2] byte MEMDISK minor version
[ES:DI+3] byte MEMDISK major version
[ES:DI+4] dword Pointer to MEMDISK data in high memory
- [ES:DI+8] dword Size of MEMDISK data in 512-byte sectors
+ [ES:DI+8] dword Size of MEMDISK data in sectors
[ES:DI+12] 16:16 Far pointer to command line
[ES:DI+16] 16:16 Old INT 13h pointer
[ES:DI+20] 16:16 Old INT 15h pointer
[ES:DI+24] word Amount of DOS memory before MEMDISK loaded
[ES:DI+26] byte Boot loader ID
- [ES:DI+27] byte Currently unused
+ [ES:DI+27] byte Sector size as a power of 2
+ (If zero, assume 512-byte sectors)
[ES:DI+28] word If nonzero, offset (vs ES) to installed DPT
This pointer+16 contains the original INT 1Eh