|
@@ -271,12 +271,14 @@ int pxe_start_nbp ( void ) {
|
271
|
271
|
DBG ( "Restarting NBP (%x)\n", jmp );
|
272
|
272
|
|
273
|
273
|
/* Far call to PXE NBP */
|
274
|
|
- __asm__ __volatile__ ( REAL_CODE ( "movw %%cx, %%es\n\t"
|
|
274
|
+ __asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */
|
|
275
|
+ "movw %%cx, %%es\n\t"
|
275
|
276
|
"pushw %%es\n\t"
|
276
|
277
|
"pushw %%di\n\t"
|
277
|
278
|
"sti\n\t"
|
278
|
279
|
"lcall $0, $0x7c00\n\t"
|
279
|
|
- "addw $4, %%sp\n\t" )
|
|
280
|
+ "popl %%ebp\n\t" /* discard */
|
|
281
|
+ "popl %%ebp\n\t" /* gcc bug */ )
|
280
|
282
|
: "=a" ( status ), "=b" ( discard_b ),
|
281
|
283
|
"=c" ( discard_c ), "=d" ( discard_d ),
|
282
|
284
|
"=D" ( discard_D )
|
|
@@ -284,7 +286,7 @@ int pxe_start_nbp ( void ) {
|
284
|
286
|
"c" ( rm_cs ),
|
285
|
287
|
"d" ( virt_to_phys ( &pxenv ) ),
|
286
|
288
|
"D" ( __from_text16 ( &ppxe ) )
|
287
|
|
- : "esi", "ebp", "memory" );
|
|
289
|
+ : "esi", "memory" );
|
288
|
290
|
if ( status )
|
289
|
291
|
return -EPXENBP ( status );
|
290
|
292
|
|