2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2001 - 2005 Tensilica Inc.
9 #ifndef _XTENSA_SWITCH_TO_H
10 #define _XTENSA_SWITCH_TO_H
12 /* * switch_to(n) should switch tasks to task nr n, first
13 * checking that n isn't the current task, in which case it does nothing.
15 extern void *_switch_to(void *last
, void *next
);
17 #define switch_to(prev,next,last) \
19 (last) = _switch_to(prev, next); \
22 #endif /* _XTENSA_SWITCH_TO_H */