~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to ports/sysdeps/m68k/stackinfo.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1999, 2010 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1999, 2010, 2011 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
 
4
4
   The GNU C Library is free software; you can redistribute it and/or
31
31
   is present, but it is presumed absent.  */
32
32
#define DEFAULT_STACK_PERMS (PF_R|PF_W|PF_X)
33
33
 
 
34
/* Access to the stack pointer.  */
 
35
#define stackinfo_get_sp() \
 
36
  ({ void *p__; asm volatile ("move.l %%sp, %0" : "=r" (p__)); p__; })
 
37
#define stackinfo_sub_sp(ptr) \
 
38
  ({ ptrdiff_t d__;                                             \
 
39
     asm volatile ("sub.l %%sp, %0" : "=r" (d__) : "0" (ptr));  \
 
40
     d__; })
 
41
 
34
42
#endif  /* stackinfo.h */