diff --git a/makefile b/makefile index d0f9761473..12db32e020 100644 --- a/makefile +++ b/makefile @@ -175,7 +175,8 @@ vm-depends = \ $(src)/util.h \ $(src)/zone.h \ $(src)/assembler.h \ - $(src)/compiler.h + $(src)/compiler.h \ + $(src)/$(asm).h vm-sources = \ $(src)/$(system).cpp \ diff --git a/src/powerpc.h b/src/powerpc.h index a278d15823..5f6b6a3d6f 100644 --- a/src/powerpc.h +++ b/src/powerpc.h @@ -44,6 +44,8 @@ inline uint64_t dynamicCall(void* function, uintptr_t* arguments, uint8_t* argumentTypes, unsigned, unsigned argumentsSize, unsigned returnType) { + const unsigned LinkageArea = 24; + const unsigned GprCount = 8; uintptr_t gprTable[GprCount]; unsigned gprIndex = 0; @@ -108,7 +110,7 @@ dynamicCall(void* function, uintptr_t* arguments, uint8_t* argumentTypes, return vmNativeCall (function, - (((1 + LinkageArea + stackSkip + stackIndex) * BytesPerWord) + 15) & -16, + (((1 + stackSkip + stackIndex) * BytesPerWord) + LinkageArea + 15) & -16, stack, stackIndex, (gprIndex ? gprTable : 0), (fprIndex ? fprTable : 0), returnType);