Calculate _rom_size for the ROM prefix
authorMichael Brown <mcb30@etherboot.org>
Tue, 6 Jun 2006 15:29:39 +0000 (15:29 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 6 Jun 2006 15:29:39 +0000 (15:29 +0000)
src/arch/i386/scripts/i386.lds

index d43a68f..4a984a9 100644 (file)
@@ -236,4 +236,5 @@ SECTIONS {
      * Values calculated to save code from doing it
      */
     _load_size_pgh     = ( _load_size / 16 );
      * Values calculated to save code from doing it
      */
     _load_size_pgh     = ( _load_size / 16 );
+    _rom_size          = ( ( _load_size + 511 ) / 512 );
 }
 }