Commit c8654158 authored by Marc Gauthier's avatar Marc Gauthier Committed by Chris Zankel

[XTENSA] Prevent inlining ISS platform asm constructs

The simcall asm macro assumes Windowed ABI parameter passing
in registers, and doesn't work if its containing function gets
inlined.  This fix prevents that from happening.
Signed-off-by: default avatarMarc Gauthier <marc@tensilica.com>
parent b67360db
...@@ -43,6 +43,7 @@ static DEFINE_SPINLOCK(timer_lock); ...@@ -43,6 +43,7 @@ static DEFINE_SPINLOCK(timer_lock);
int errno; int errno;
static int __simc (int a, int b, int c, int d, int e, int f) __attribute__((__noinline__));
static int __simc (int a, int b, int c, int d, int e, int f) static int __simc (int a, int b, int c, int d, int e, int f)
{ {
int ret; int ret;
......
...@@ -107,6 +107,7 @@ struct iss_net_private { ...@@ -107,6 +107,7 @@ struct iss_net_private {
static int errno; static int errno;
static int __simc (int a, int b, int c, int d, int e, int f) __attribute__((__noinline__));
static int __simc (int a, int b, int c, int d, int e, int f) static int __simc (int a, int b, int c, int d, int e, int f)
{ {
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment