| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | // Copyright (C) 2005-2017 Andes Technology Corporation | ||||
| 3 | |||||
| 4 | #ifndef _ASM_NDS32_CURRENT_H | ||||
| 5 | #define _ASM_NDS32_CURRENT_H | ||||
| 6 | |||||
| 7 | #ifndef __ASSEMBLY__ | ||||
| 8 | register struct task_struct *current asm("$r25"); | ||||
| 9 | #endif /* __ASSEMBLY__ */ | ||||
| 10 | #define tsk $r25 | ||||
| 11 | |||||
| 12 | #endif /* _ASM_NDS32_CURRENT_H */ | ||||