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
 #define REAL_CODE( asm_code_str )			\
192
 #define REAL_CODE( asm_code_str )			\
193
 	"push $1f\n\t"					\
193
 	"push $1f\n\t"					\
194
 	"call real_call\n\t"				\
194
 	"call real_call\n\t"				\
195
-	"addl $4, %%esp\n\t"				\
196
 	TEXT16_CODE ( "\n1:\n\t"			\
195
 	TEXT16_CODE ( "\n1:\n\t"			\
197
 		      asm_code_str			\
196
 		      asm_code_str			\
198
 		      "\n\t"				\
197
 		      "\n\t"				\

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

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

Loading…
Cancel
Save