Skip to content

Commit

Permalink
[XTENSA] Prevent inlining ISS platform asm constructs
Browse files Browse the repository at this point in the history
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: Marc Gauthier <marc@tensilica.com>
  • Loading branch information
Marc Gauthier authored and Chris Zankel committed Feb 14, 2008
1 parent b67360d commit c865415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/xtensa/platforms/iss/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ static DEFINE_SPINLOCK(timer_lock);

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)
{
int ret;
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/platforms/iss/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ struct iss_net_private {

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)
{
int ret;
Expand Down

0 comments on commit c865415

Please sign in to comment.