With Apple assembly in .macro environvemnt you have to use $$ instead

of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
	to $$x on Apple and to $x on everything else.
This commit is contained in:
Vladimir Serbinenko 2013-11-24 05:55:47 +01:00
parent b700a427d2
commit 09bc0a577d
4 changed files with 22 additions and 14 deletions

View file

@ -186,11 +186,7 @@ VARIABLE(grub_gdb_stack)
.text
1:
.if EC
#ifdef __APPLE__
add $$4, %esp
#else
add $4, %esp
#endif
add MACRO_DOLLAR(4), %esp
.endif
save_context