Jelajahi Sumber

fw: force instructions in irqasm.S to be aligned

For this code, branch target alignment matters more than size.
H. Peter Anvin 3 tahun lalu
induk
melakukan
9535001a01
6 mengubah file dengan 3509 tambahan dan 3505 penghapusan
  1. TEMPAT SAMPAH
      fpga/output_files/max80.jbc
  2. TEMPAT SAMPAH
      fpga/output_files/max80.jic
  3. TEMPAT SAMPAH
      fpga/output_files/max80.pof
  4. TEMPAT SAMPAH
      fpga/output_files/max80.sof
  5. 3505 3505
      fw/boot.mif
  6. 4 0
      fw/irqasm.S

TEMPAT SAMPAH
fpga/output_files/max80.jbc


TEMPAT SAMPAH
fpga/output_files/max80.jic


TEMPAT SAMPAH
fpga/output_files/max80.pof


TEMPAT SAMPAH
fpga/output_files/max80.sof


File diff ditekan karena terlalu besar
+ 3505 - 3505
fw/boot.mif


+ 4 - 0
fw/irqasm.S

@@ -5,7 +5,10 @@
 	// use the saved registers here, no saving needed.
 	// registers need to be 
 	.pushsection ".init.irq","ax"
+	.balign 4
 	.globl _irq
+	.option push
+	.option norvc	// Alignment matters more here
 _irq:
 	addqxi sp,sp,0
 	
@@ -55,3 +58,4 @@ _irq:
 	mret
 	.type _irq, @function
 	.size _irq, . - _irq
+	.option pop

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini