mirror of
https://github.com/corda/corda.git
synced 2025-03-03 12:57:29 +00:00
define LinkageArea in powerpc.h and add the latter to makefile
This commit is contained in:
parent
b1750c0c9a
commit
a9ae50900a
3
makefile
3
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 \
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user