yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | /* Cloned for uClibc by Paul Mundt, December 2003 */ |
| 2 | /* Modified by SuperH, Inc. September 2003 */ |
| 3 | |
| 4 | /* Machine-dependent pthreads configuration and inline functions. |
| 5 | SuperH version. |
| 6 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
| 7 | This file is part of the GNU C Library. |
| 8 | Contributed by Niibe Yutaka <gniibe@m17n.org>. |
| 9 | |
| 10 | The GNU C Library is free software; you can redistribute it and/or |
| 11 | modify it under the terms of the GNU Library General Public License as |
| 12 | published by the Free Software Foundation; either version 2 of the |
| 13 | License, or (at your option) any later version. |
| 14 | |
| 15 | The GNU C Library is distributed in the hope that it will be useful, |
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 | Library General Public License for more details. |
| 19 | |
| 20 | You should have received a copy of the GNU Library General Public |
| 21 | License along with the GNU C Library; see the file COPYING.LIB. If not, |
| 22 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 23 | Boston, MA 02111-1307, USA. */ |
| 24 | |
| 25 | #ifndef _PT_MACHINE_H |
| 26 | #define _PT_MACHINE_H 1 |
| 27 | |
| 28 | #include <features.h> |
| 29 | |
| 30 | #ifndef PT_EI |
| 31 | # define PT_EI __extern_always_inline |
| 32 | #endif |
| 33 | |
| 34 | /* Get some notion of the current stack. Need not be exactly the top |
| 35 | of the stack, just something somewhere in the current frame. */ |
| 36 | #define CURRENT_STACK_FRAME stack_pointer |
| 37 | register char * stack_pointer __asm__ ("r15"); |
| 38 | |
| 39 | #endif /* pt-machine.h */ |