aboutsummaryrefslogtreecommitdiff
path: root/slof/entry.S
AgeCommit message (Collapse)AuthorFilesLines
2015-12-01Check for stack overflow in paflof engineThomas Huth1-1/+1
Since engine() can be called recursively, this function is prone for causing stack overflows. Add a sanity check and spill out an error message if we detect an overflow. It's not a bullet-proof check, but still, it should catch at least the larger overflows and thus hopefully help detecting and debugging these overflow problems in the future. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2015-09-17slof: Change call_c() function to a proper assembler functionThomas Huth1-0/+9
Using inline assembly for the call_c() function does not work properly: Recent versions of the GCC compiler save some registers to negative offsets on the stack before executing the inline assembler code (to the so-called "red zone", which is OK according to the ABI), since the compiler does not know that this assembler code jumps to another function. However that other function might also put some values on the stack, which can destroy the saved values, causing weird effects or crashes. To be on the save side, move the jump code to a proper assembler file instead, so we do not have to make any bogus assumptions for the inline assembly anymore. This fixes the issue with "Cannot open file : fbuffer.fs" etc. messages that occured with GCC versions >= 4.9 Signed-off-by: Thomas Huth <thuth@redhat.com> Acked-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2014-03-18ELF: Enter LE binary in LE modeNikunj A Dadhania1-0/+23
Trampoline code in the LE binary were helping fix this. This patch now takes care of switching the mode to LE for LE elf binaries. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2011-10-12Pass IMA to Paflof and fix the memory regions which have to be CLAIMedThomas Huth1-1/+1
Provide a IMA (initially mapped area) value to Paflof so that the Forth code can properly claim the memory regions which are used by Paflof. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2010-12-01Initial import of slof-JX-1.7.0-4Benjamin Herrenschmidt1-0/+187
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>