|
@@ -99,6 +99,7 @@ find_mem_bar:
|
99
|
99
|
jle 1f
|
100
|
100
|
stc
|
101
|
101
|
movl $0xbabababa, %esi /* Report "No suitable BAR" */
|
|
102
|
+ movl rom_bar_size, %ecx
|
102
|
103
|
jmp 99f
|
103
|
104
|
1: movw $4, %bp
|
104
|
105
|
|
|
@@ -157,7 +158,8 @@ find_mem_bar:
|
157
|
158
|
call pci_write_config_dword
|
158
|
159
|
|
159
|
160
|
/* Locate our ROM image */
|
160
|
|
-1: addr32 es cmpw $0xaa55, (%eax)
|
|
161
|
+1: movl $0xaa55, %ecx /* 55aa signature */
|
|
162
|
+ addr32 es cmpw %cx, (%eax)
|
161
|
163
|
je 2f
|
162
|
164
|
stc
|
163
|
165
|
movl %eax, %esi /* Report failure address */
|