Browse Source

[librm] Discard argument as part of return from real_call()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
079b98b63a
2 changed files with 1 additions and 2 deletions
  1. 0
    1
      src/arch/x86/include/librm.h
  2. 1
    1
      src/arch/x86/transitions/librm.S

+ 0
- 1
src/arch/x86/include/librm.h View File

@@ -192,7 +192,6 @@ extern void remove_user_from_rm_stack ( userptr_t data, size_t size );
192 192
 #define REAL_CODE( asm_code_str )			\
193 193
 	"push $1f\n\t"					\
194 194
 	"call real_call\n\t"				\
195
-	"addl $4, %%esp\n\t"				\
196 195
 	TEXT16_CODE ( "\n1:\n\t"			\
197 196
 		      asm_code_str			\
198 197
 		      "\n\t"				\

+ 1
- 1
src/arch/x86/transitions/librm.S View File

@@ -518,7 +518,7 @@ rc_rmode:
518 518
 rc_pmode:
519 519
 	/* Restore registers and return */
520 520
 	popal
521
-	ret
521
+	ret	$4
522 522
 
523 523
 
524 524
 	/* Function vector, used because "call xx(%sp)" is not a valid

Loading…
Cancel
Save