(root)/
strace-6.5/
src/
linux/
xtensa/
set_error.c
       1  /*
       2   * Copyright (c) 2016-2022 The strace developers.
       3   * All rights reserved.
       4   *
       5   * SPDX-License-Identifier: LGPL-2.1-or-later
       6   */
       7  
       8  static int
       9  arch_set_error(struct tcb *tcp)
      10  {
      11  	xtensa_regs.a[xtensa_regs.windowbase * 4 + 2] = -tcp->u_error;
      12  	return set_regs(tcp->pid);
      13  }
      14  
      15  static int
      16  arch_set_success(struct tcb *tcp)
      17  {
      18  	xtensa_regs.a[xtensa_regs.windowbase * 4 + 2] = tcp->u_rval;
      19  	return set_regs(tcp->pid);
      20  }