[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r15663 - in /fsf/trunk/ports: ChangeLog.m68k sysdeps/m68k/stackinfo.h
- To: commits@xxxxxxxxxx
- Subject: [Commits] r15663 - in /fsf/trunk/ports: ChangeLog.m68k sysdeps/m68k/stackinfo.h
- From: eglibc@xxxxxxxxxx
- Date: Wed, 02 Nov 2011 00:05:30 -0000
Author: eglibc
Date: Wed Nov 2 00:05:30 2011
New Revision: 15663
Log:
Import glibc-ports-mainline for 2011-11-02
Modified:
fsf/trunk/ports/ChangeLog.m68k
fsf/trunk/ports/sysdeps/m68k/stackinfo.h
Modified: fsf/trunk/ports/ChangeLog.m68k
==============================================================================
--- fsf/trunk/ports/ChangeLog.m68k (original)
+++ fsf/trunk/ports/ChangeLog.m68k Wed Nov 2 00:05:30 2011
@@ -1,3 +1,8 @@
+2011-11-01 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
+
+ * sysdeps/m68k/stackinfo.h (stackinfo_get_sp, stackinfo_sub_sp):
+ Define.
+
2011-10-26 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
* sysdeps/m68k/m680x0/fpu/math_private.h: New file.
Modified: fsf/trunk/ports/sysdeps/m68k/stackinfo.h
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/stackinfo.h (original)
+++ fsf/trunk/ports/sysdeps/m68k/stackinfo.h Wed Nov 2 00:05:30 2011
@@ -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 */
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits