Realign the stack before calling _exit().

Just in case I ever get this working on macOS.  :)
This commit is contained in:
Ryan C. Gordon committed 2016-09-24 01:05:33 -04:00
1 parent acb3c5c42e
commit ce8215ff40
1 file changed
+2
+2
View File
@@ -293,6 +293,8 @@ static __attribute__((noreturn)) void runLxModule(const LxModule *lxmod, const i
// !!! FIXME: init other registers!
"ret \n\t" // go to OS/2 land!
"1: \n\t" // ...and return here.
"andl $-16, %%esp \n\t" // align the stack for macOS.
"subl $-4, %%esp \n\t" // align the stack for macOS.
"pushl %%eax \n\t" // call _exit() with whatever is in %eax.
"call _exit \n\t"
: // no outputs