diff options
author | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-03-09 16:54:17 -0500 |
---|---|---|
committer | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-06-11 01:49:10 +0000 |
commit | 3397b50cfc534f7ee0b65b7501b1081df03a106b (patch) | |
tree | 8aa30881eda34070ea0ef305b30d1f21d9d64b24 /memdisk/memdisk.inc | |
parent | ec3733b81f4771a4b8e212edd9bd4a8600a2d382 (diff) | |
download | syslinux-3397b50cfc534f7ee0b65b7501b1081df03a106b.tar.gz |
memdisk: Change patch area to include the entire MDI
Previously, the patch area began after the beginning of
the MDI, but continued past its end. This is difficult
to express with C structures, so we've simply changed
the patch area to include the entire MDI. So it now
includes the MDI size and MEMDISK version info, which
we simply make constant to avoid modifying.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'memdisk/memdisk.inc')
-rw-r--r-- | memdisk/memdisk.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/memdisk/memdisk.inc b/memdisk/memdisk.inc index e1a0901b..90e6ef9f 100644 --- a/memdisk/memdisk.inc +++ b/memdisk/memdisk.inc @@ -119,7 +119,7 @@ ; must be first in the binary Pointers: dw Int13Start dw Int15Start - dw PatchArea + dw MemDisk_Info ; Portions are patched by installer dw TotalSize dw IretPtr @@ -1076,12 +1076,11 @@ mBFT: ; Note that the above ends on a DWORD boundary. ; The MDI has always started at such a boundary. +; Portions of the MDI are patched by the installer MemDisk_Info equ $ ; Pointed to by installation check MDI_Bytes dw MDI_Len ; Total bytes in MDI structure MDI_Version db VERSION_MINOR, VERSION_MAJOR ; MEMDISK version -PatchArea equ $ ; This gets filled in by the installer - DiskBuf dd 0 ; Linear address of high memory disk DiskSize dd 0 ; Size of disk in blocks CommandLine dw 0, 0 ; Far pointer to saved command line @@ -1171,7 +1170,8 @@ CD_PKT: %endif ; EDD - ; End patch area +; End patch area + alignb 4, db 0 Stack dd 0 ; Saved SS:ESP on invocation dw 0 |