public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix exception stack frame for or1k
@ 2015-05-26 19:33 Jeff Johnston
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2015-05-26 19:33 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3d4342d19389c433b85eaeb383ae924d918fa0c6

commit 3d4342d19389c433b85eaeb383ae924d918fa0c6
Author: Jeff Johnston <jjohnstn@redhat.com>
Date:   Tue May 26 15:21:52 2015 -0400

    Fix exception stack frame for or1k
    
    - We do not need a red zone here, as we do not operate on the current
      stack, but always use the clear exception stack. Also reserve two
      extra words for the context to store EPCR and ESR.
    
        * or1k/crt0.S: Fix exception stack frame
        * or1k/exception-asm.S: ditto

Diff:
---
 libgloss/ChangeLog             | 5 +++++
 libgloss/or1k/crt0.S           | 4 ++--
 libgloss/or1k/exceptions-asm.S | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 1ca803f..adda155 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,5 +1,10 @@
 2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
 
+	* or1k/crt0.S: Fix exception stack frame
+	* or1k/exception-asm.S: ditto
+
+2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
+
 	* or1k/interruts-asm.S: Change registers to callee-saved.
 
 2015-05-18  Nick Clifton  <nickc@redhat.com>
diff --git a/libgloss/or1k/crt0.S b/libgloss/or1k/crt0.S
index f1753d0..ecaf917 100644
--- a/libgloss/or1k/crt0.S
+++ b/libgloss/or1k/crt0.S
@@ -61,10 +61,10 @@
 // Reserved stack size for exceptions (can usually be smaller than normal stack)
 #define EXCEPTION_STACK_SIZE 8192
 
-// Size of redzone + size of space required to store state
+// Size of space required to store state
 // This value must match that in the support library or1k_exception_handler
 // function
-#define EXCEPTION_STACK_FRAME (128+128)
+#define EXCEPTION_STACK_FRAME 136
 
 	.extern _or1k_stack_top    /* points to the next address after the stack */
 	.extern _or1k_stack_bottom /* points to the last address in the stack */
diff --git a/libgloss/or1k/exceptions-asm.S b/libgloss/or1k/exceptions-asm.S
index 7248683..762a509 100644
--- a/libgloss/or1k/exceptions-asm.S
+++ b/libgloss/or1k/exceptions-asm.S
@@ -24,7 +24,7 @@
                                                                               */
 /* -------------------------------------------------------------------------- */
 // Warning - this must be the same as specified in crt0.S
-#define EXCEPTION_STACK_SIZE 128+128
+#define EXCEPTION_STACK_SIZE 136
 
 	.extern _or1k_exception_handler_table


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [newlib-cygwin] Fix exception stack frame for or1k
@ 2015-05-29 14:01 Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2015-05-29 14:01 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a6342974b0904d0c7a390e7623661ea254e3984f

commit a6342974b0904d0c7a390e7623661ea254e3984f
Author: Jeff Johnston <jjohnstn@redhat.com>
Date:   Tue May 26 15:21:52 2015 -0400

    Fix exception stack frame for or1k
    
    - We do not need a red zone here, as we do not operate on the current
      stack, but always use the clear exception stack. Also reserve two
      extra words for the context to store EPCR and ESR.
    
        * or1k/crt0.S: Fix exception stack frame
        * or1k/exception-asm.S: ditto

Diff:
---
 libgloss/ChangeLog             | 5 +++++
 libgloss/or1k/crt0.S           | 4 ++--
 libgloss/or1k/exceptions-asm.S | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 1ca803f..adda155 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,5 +1,10 @@
 2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
 
+	* or1k/crt0.S: Fix exception stack frame
+	* or1k/exception-asm.S: ditto
+
+2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
+
 	* or1k/interruts-asm.S: Change registers to callee-saved.
 
 2015-05-18  Nick Clifton  <nickc@redhat.com>
diff --git a/libgloss/or1k/crt0.S b/libgloss/or1k/crt0.S
index f1753d0..ecaf917 100644
--- a/libgloss/or1k/crt0.S
+++ b/libgloss/or1k/crt0.S
@@ -61,10 +61,10 @@
 // Reserved stack size for exceptions (can usually be smaller than normal stack)
 #define EXCEPTION_STACK_SIZE 8192
 
-// Size of redzone + size of space required to store state
+// Size of space required to store state
 // This value must match that in the support library or1k_exception_handler
 // function
-#define EXCEPTION_STACK_FRAME (128+128)
+#define EXCEPTION_STACK_FRAME 136
 
 	.extern _or1k_stack_top    /* points to the next address after the stack */
 	.extern _or1k_stack_bottom /* points to the last address in the stack */
diff --git a/libgloss/or1k/exceptions-asm.S b/libgloss/or1k/exceptions-asm.S
index 7248683..762a509 100644
--- a/libgloss/or1k/exceptions-asm.S
+++ b/libgloss/or1k/exceptions-asm.S
@@ -24,7 +24,7 @@
                                                                               */
 /* -------------------------------------------------------------------------- */
 // Warning - this must be the same as specified in crt0.S
-#define EXCEPTION_STACK_SIZE 128+128
+#define EXCEPTION_STACK_SIZE 136
 
 	.extern _or1k_exception_handler_table


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-29 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26 19:33 [newlib-cygwin] Fix exception stack frame for or1k Jeff Johnston
2015-05-29 14:01 Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).