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:
parent
b700a427d2
commit
09bc0a577d
4 changed files with 22 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue