Sfoglia il codice sorgente

Should work for KEEP_IT_REAL as well now.

tags/v0.9.3
Michael Brown 19 anni fa
parent
commit
ff53205d0d
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      src/arch/i386/core/pci_io.c

+ 3
- 3
src/arch/i386/core/pci_io.c Vedi File

176
 		uint32_t discard_b, discard_D;				\
176
 		uint32_t discard_b, discard_D;				\
177
 		uint16_t ret;						\
177
 		uint16_t ret;						\
178
 									\
178
 									\
179
-		REAL_EXEC ( __FUNCTION__ ,			\
179
+		REAL_EXEC ( 999, /* need a local label */		\
180
 			    "int $0x1a\n\t"				\
180
 			    "int $0x1a\n\t"				\
181
 			    "jc 1f\n\t"					\
181
 			    "jc 1f\n\t"					\
182
-			    "xorl %%eax, %%eax\n\t"			\
182
+			    "xorw %%ax, %%ax\n\t"			\
183
 			    "\n1:\n\t",					\
183
 			    "\n1:\n\t",					\
184
 			    5,						\
184
 			    5,						\
185
 			    OUT_CONSTRAINTS ( "=a" ( ret ),		\
185
 			    OUT_CONSTRAINTS ( "=a" ( ret ),		\
191
 					     "b" ( pci->busdevfn ),	\
191
 					     "b" ( pci->busdevfn ),	\
192
 					     "c" ( value ),		\
192
 					     "c" ( value ),		\
193
 			    		     "D" ( where ) ),		\
193
 			    		     "D" ( where ) ),		\
194
-			    CLOBBER ( "edx", "ebp" ) );			\
194
+			    CLOBBER ( "edx", "esi", "ebp" ) );		\
195
 									\
195
 									\
196
 		( ret >> 8 );						\
196
 		( ret >> 8 );						\
197
 	} )
197
 	} )

Loading…
Annulla
Salva