浏览代码

fw: force instructions in irqasm.S to be aligned

For this code, branch target alignment matters more than size.
H. Peter Anvin 3 年之前
父节点
当前提交
9535001a01
共有 6 个文件被更改,包括 3509 次插入3505 次删除
  1. 二进制
      fpga/output_files/max80.jbc
  2. 二进制
      fpga/output_files/max80.jic
  3. 二进制
      fpga/output_files/max80.pof
  4. 二进制
      fpga/output_files/max80.sof
  5. 3505 3505
      fw/boot.mif
  6. 4 0
      fw/irqasm.S

二进制
fpga/output_files/max80.jbc


二进制
fpga/output_files/max80.jic


二进制
fpga/output_files/max80.pof


二进制
fpga/output_files/max80.sof


文件差异内容过多而无法显示
+ 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

部分文件因为文件数量过多而无法显示