Move .zinfo to libprefix.S; it doesn't belong with the decompression code.
authorMichael Brown <mcb30@etherboot.org>
Tue, 17 Jul 2007 11:52:54 +0000 (12:52 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 17 Jul 2007 11:52:54 +0000 (12:52 +0100)
src/arch/i386/prefix/libprefix.S
src/arch/i386/prefix/nonrv2b.S [deleted file]
src/arch/i386/prefix/unnrv2b.S

index 0966dcb..f146d3d 100644 (file)
@@ -87,7 +87,7 @@ install_block:
 #if COMPRESS
        call    decompress16
 #else
-       call    nodecompress16
+       rep addr32 movsb
 #endif
 
        /* Zero remaining space */
@@ -438,3 +438,31 @@ prot_call_vector:
        .word 0
        .size prot_call_vector, . - prot_call_vector
 #endif
+
+
+       /* File split information for the compressor */
+#if COMPRESS
+       .section ".zinfo", "a"
+       .ascii  "COPY"
+       .long   _prefix_load_offset
+       .long   _prefix_progbits_size
+       .long   _max_align
+       .ascii  "PACK"
+       .long   _text16_load_offset
+       .long   _text16_progbits_size
+       .long   _max_align
+       .ascii  "PACK"
+       .long   _data16_load_offset
+       .long   _data16_progbits_size
+       .long   _max_align
+       .ascii  "PACK"
+       .long   _textdata_load_offset
+       .long   _textdata_progbits_size
+       .long   _max_align
+#else /* COMPRESS */
+       .section ".zinfo", "a"
+       .ascii  "COPY"
+       .long   _prefix_load_offset
+       .long   _load_size
+       .long   _max_align
+#endif /* COMPRESS */
diff --git a/src/arch/i386/prefix/nonrv2b.S b/src/arch/i386/prefix/nonrv2b.S
deleted file mode 100644 (file)
index d40396b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/* Placeholder for decompress16 in non-compressed images */
-
-       .text
-       .arch i386
-       .section ".prefix.lib", "ax", @progbits
-
-       .code16
-       .globl  nodecompress16
-nodecompress16:
-       rep addr32 movsb
-       ret
-
-       /* File split information for the compressor */
-       .section ".zinfo", "a"
-       .ascii  "COPY"
-       .long   _prefix_load_offset
-       .long   _load_size
-       .long   _max_align
index 1cf570d..3209fb2 100644 (file)
@@ -180,23 +180,3 @@ decompr_end_n2b:
        popl    %ebx
        pop     %xAX
        ret
-
-
-       /* File split information for the compressor */
-       .section ".zinfo", "a"
-       .ascii  "COPY"
-       .long   _prefix_load_offset
-       .long   _prefix_progbits_size
-       .long   _max_align
-       .ascii  "PACK"
-       .long   _text16_load_offset
-       .long   _text16_progbits_size
-       .long   _max_align
-       .ascii  "PACK"
-       .long   _data16_load_offset
-       .long   _data16_progbits_size
-       .long   _max_align
-       .ascii  "PACK"
-       .long   _textdata_load_offset
-       .long   _textdata_progbits_size
-       .long   _max_align