>
> >You have not used "ret" instruction in AsmFn2, I guess it will cause
> >undefined behavior. I think it has nothing to do with how you compile
> >the code. It works perfectly after adding ret instruction at the end
> >of AsmFn2. Correct me if I am missing something here.
>
>
> Thanks. That was the problem, I didn't notice that. Sorry for the stupid 
> question.

Can you explain why the lack of 'ret' in AsmFn2 cause a segfault ? And
why does this not happen when you pass the C file before the asm to
GCC?

Thanks,
-Joel

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to