summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/scripts
diff options
context:
space:
mode:
authorMichael Brown2006-06-06 17:29:39 +0200
committerMichael Brown2006-06-06 17:29:39 +0200
commit46253ba618ee008801fa2c57328a94fef40fd60d (patch)
treeae8f6db4cb63a76d5dac6ac610978d08971d8623 /src/arch/i386/scripts
parentUse byte 6 for the checksum, rather than byte 5. (Byte 5 may be part of (diff)
downloadipxe-46253ba618ee008801fa2c57328a94fef40fd60d.tar.gz
ipxe-46253ba618ee008801fa2c57328a94fef40fd60d.tar.xz
ipxe-46253ba618ee008801fa2c57328a94fef40fd60d.zip
Calculate _rom_size for the ROM prefix
Diffstat (limited to 'src/arch/i386/scripts')
-rw-r--r--src/arch/i386/scripts/i386.lds1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/i386/scripts/i386.lds b/src/arch/i386/scripts/i386.lds
index d43a68f7..4a984a95 100644
--- a/src/arch/i386/scripts/i386.lds
+++ b/src/arch/i386/scripts/i386.lds
@@ -236,4 +236,5 @@ SECTIONS {
* Values calculated to save code from doing it
*/
_load_size_pgh = ( _load_size / 16 );
+ _rom_size = ( ( _load_size + 511 ) / 512 );
}