/* Initialize rtmk library. Copyright 1999-2002 Johan Rydberg, jrydberg@rtmk.org. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include /* Cache for __task_self (). Since the task never changes in a context, we do not have to make a syscall every time. */ rtmk_port_t __task_self_; void __rtmk_init (void) { /* Set the cache of the __task_self () function. */ #undef __task_self __task_self_ = __task_self (); /* We must initialize the RIG runtime part of the library before we can do any actual RPC. Thread library may do this again. */ __rig_init (0); }