Browse Source

Move .zinfo to libprefix.S; it doesn't belong with the decompression code.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
c94cdf2b7d
3 changed files with 29 additions and 39 deletions
  1. 29
    1
      src/arch/i386/prefix/libprefix.S
  2. 0
    18
      src/arch/i386/prefix/nonrv2b.S
  3. 0
    20
      src/arch/i386/prefix/unnrv2b.S

+ 29
- 1
src/arch/i386/prefix/libprefix.S View File

@@ -87,7 +87,7 @@ install_block:
87 87
 #if COMPRESS
88 88
 	call	decompress16
89 89
 #else
90
-	call	nodecompress16
90
+	rep addr32 movsb
91 91
 #endif
92 92
 
93 93
 	/* Zero remaining space */
@@ -438,3 +438,31 @@ prot_call_vector:
438 438
 	.word 0
439 439
 	.size prot_call_vector, . - prot_call_vector
440 440
 #endif
441
+
442
+
443
+	/* File split information for the compressor */
444
+#if COMPRESS
445
+	.section ".zinfo", "a"
446
+	.ascii	"COPY"
447
+	.long	_prefix_load_offset
448
+	.long	_prefix_progbits_size
449
+	.long	_max_align
450
+	.ascii	"PACK"
451
+	.long	_text16_load_offset
452
+	.long	_text16_progbits_size
453
+	.long	_max_align
454
+	.ascii	"PACK"
455
+	.long	_data16_load_offset
456
+	.long	_data16_progbits_size
457
+	.long	_max_align
458
+	.ascii	"PACK"
459
+	.long	_textdata_load_offset
460
+	.long	_textdata_progbits_size
461
+	.long	_max_align
462
+#else /* COMPRESS */
463
+	.section ".zinfo", "a"
464
+	.ascii	"COPY"
465
+	.long	_prefix_load_offset
466
+	.long	_load_size
467
+	.long	_max_align
468
+#endif /* COMPRESS */

+ 0
- 18
src/arch/i386/prefix/nonrv2b.S View File

@@ -1,18 +0,0 @@
1
-/* Placeholder for decompress16 in non-compressed images */
2
-
3
-	.text
4
-	.arch i386
5
-	.section ".prefix.lib", "ax", @progbits
6
-
7
-	.code16
8
-	.globl	nodecompress16
9
-nodecompress16:
10
-	rep addr32 movsb
11
-	ret
12
-
13
-	/* File split information for the compressor */
14
-	.section ".zinfo", "a"
15
-	.ascii	"COPY"
16
-	.long	_prefix_load_offset
17
-	.long	_load_size
18
-	.long	_max_align

+ 0
- 20
src/arch/i386/prefix/unnrv2b.S View File

@@ -180,23 +180,3 @@ decompr_end_n2b:
180 180
 	popl	%ebx
181 181
 	pop	%xAX
182 182
 	ret
183
-
184
-
185
-	/* File split information for the compressor */
186
-	.section ".zinfo", "a"
187
-	.ascii	"COPY"
188
-	.long	_prefix_load_offset
189
-	.long	_prefix_progbits_size
190
-	.long	_max_align
191
-	.ascii	"PACK"
192
-	.long	_text16_load_offset
193
-	.long	_text16_progbits_size
194
-	.long	_max_align
195
-	.ascii	"PACK"
196
-	.long	_data16_load_offset
197
-	.long	_data16_progbits_size
198
-	.long	_max_align
199
-	.ascii	"PACK"
200
-	.long	_textdata_load_offset
201
-	.long	_textdata_progbits_size
202
-	.long	_max_align

Loading…
Cancel
Save