OSDN Git Service

[MIPS] Fix mips32 trampoline problem.
authorNikola Veljkovic <Nikola.Veljkovic@imgtec.com>
Fri, 20 Feb 2015 16:21:15 +0000 (17:21 +0100)
committerAndreas Gampe <agampe@google.com>
Wed, 25 Feb 2015 23:56:28 +0000 (15:56 -0800)
commit2d873b67f97c31da984c17ccbd94441c6264cafc
tree0e7f57b37cc8e775f5971b4b1eb0e22ba0a1cf82
parentf58c11c92df59f7ec7d9f2dfadc7e400b790883d
[MIPS] Fix mips32 trampoline problem.

Reserve argument slots (for $a0-$a3) on the stack in the
InvokeTrampoline() function, for entrypoints that contain direct
reference to native implementation. Called function may use this
space to store $a0-$a3 regs.

This fixes the Settings app crash on mips32, when navigating to:
Settings->Apps->(swipe) On SD card.

Change-Id: If53ce822fd3ef6ef9839c89b556f76fac0792190
compiler/dex/quick/mips/utility_mips.cc
runtime/arch/mips/entrypoints_direct_mips.h [new file with mode: 0644]
runtime/arch/mips/entrypoints_init_mips.cc