This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, master, updated. glibc-2.14-43-gf335e01
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 1 Nov 2011 17:38:55 -0000
- Subject: Community source repository for glibc add-on ports branch, master, updated. glibc-2.14-43-gf335e01
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Community source repository for glibc add-on ports".
The branch, master has been updated
via f335e01fe1240ea3e4a3759e68f6585c51ffcda3 (commit)
from 6dcecc64865ece5109260fd89d876c83b173e6d8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=f335e01fe1240ea3e4a3759e68f6585c51ffcda3
commit f335e01fe1240ea3e4a3759e68f6585c51ffcda3
Author: Andreas Schwab <schwab@linux-m68k.org>
Date: Tue Nov 1 16:03:29 2011 +0100
m68k: define stackinfo_get_sp, stackinfo_sub_sp
diff --git a/ChangeLog.m68k b/ChangeLog.m68k
index 09de159..42dcf75 100644
--- a/ChangeLog.m68k
+++ b/ChangeLog.m68k
@@ -1,3 +1,8 @@
+2011-11-01 Andreas Schwab <schwab@linux-m68k.org>
+
+ * sysdeps/m68k/stackinfo.h (stackinfo_get_sp, stackinfo_sub_sp):
+ Define.
+
2011-10-26 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/m680x0/fpu/math_private.h: New file.
diff --git a/sysdeps/m68k/stackinfo.h b/sysdeps/m68k/stackinfo.h
index b44d4d0..bcfdb12 100644
--- a/sysdeps/m68k/stackinfo.h
+++ b/sysdeps/m68k/stackinfo.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2010, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -31,4 +31,12 @@
is present, but it is presumed absent. */
#define DEFAULT_STACK_PERMS (PF_R|PF_W|PF_X)
+/* Access to the stack pointer. */
+#define stackinfo_get_sp() \
+ ({ void *p__; asm volatile ("move.l %%sp, %0" : "=r" (p__)); p__; })
+#define stackinfo_sub_sp(ptr) \
+ ({ ptrdiff_t d__; \
+ asm volatile ("sub.l %%sp, %0" : "=r" (d__) : "0" (ptr)); \
+ d__; })
+
#endif /* stackinfo.h */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.m68k | 5 +++++
sysdeps/m68k/stackinfo.h | 10 +++++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports