pt-machine.h 1.4 KB

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