]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/cxx_thread/src/ARCH-amd64/thread-arch.cc
b1f37ec645417920a90ad8ff4b08964c61e77109
[l4.git] / l4 / pkg / cxx_thread / src / ARCH-amd64 / thread-arch.cc
1 /*
2  * (c) 2004-2009 Technische Universität Dresden
3  * This file is part of TUD:OS and distributed under the terms of the
4  * GNU Lesser General Public License 2.1.
5  * Please see the COPYING-LGPL-2.1 file for details.
6  */
7
8 #include <l4/cxx/thread>
9
10 namespace cxx {
11 void L4_cxx_start(void)
12 {
13   asm volatile (".global L4_Thread_start_cxx_thread \n"
14                 "L4_Thread_start_cxx_thread:        \n"
15                 "mov 8(%rsp), %rdi                  \n"
16                 "call L4_Thread_execute             \n");
17 }
18
19   void Thread::kill_cxx_thread(Thread *_this)
20   { _this->shutdown(); }
21
22 };
23