current.h 549 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  4. *
  5. * Vineetg: May 16th, 2008
  6. * - Current macro is now implemented as "global register" r25
  7. */
  8. #ifndef _ASM_ARC_CURRENT_H
  9. #define _ASM_ARC_CURRENT_H
  10. #ifndef __ASSEMBLY__
  11. #ifdef CONFIG_ARC_CURR_IN_REG
  12. register struct task_struct *curr_arc asm("r25");
  13. #define current (curr_arc)
  14. #else
  15. #include <asm-generic/current.h>
  16. #endif /* ! CONFIG_ARC_CURR_IN_REG */
  17. #endif /* ! __ASSEMBLY__ */
  18. #endif /* _ASM_ARC_CURRENT_H */