define LinkageArea in powerpc.h and add the latter to makefile

This commit is contained in:
dicej 2008-06-15 12:48:53 -06:00
parent b1750c0c9a
commit a9ae50900a
2 changed files with 5 additions and 2 deletions

View File

@ -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 \

View File

@ -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);