]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re_kernel/server/src/ARCH-sparc/switch_stack.h
update
[l4.git] / l4 / pkg / l4re_kernel / server / src / ARCH-sparc / switch_stack.h
1 /*
2  * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
3  *               Alexander Warg <warg@os.inf.tu-dresden.de>
4  *     economic rights: Technische Universität Dresden (Germany)
5  *
6  * This file is part of TUD:OS and distributed under the terms of the
7  * GNU General Public License 2.
8  * Please see the COPYING-GPL-2 file for details.
9  */
10 #pragma once
11
12 inline void
13 switch_stack(unsigned long stack, void (*func)())
14 {
15         asm volatile ("ta 0\n");
16 }
17