Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-05-26 22:21:52 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-05-27 14:30:19 +0300
commita6342974b0904d0c7a390e7623661ea254e3984f (patch)
treec307cdd72b3dcc0b581be73193b44fdc7ed0b808 /libgloss/or1k
parent132030fcf203a50c5c85f162135bb92b08021bf5 (diff)
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
Diffstat (limited to 'libgloss/or1k')
-rw-r--r--libgloss/or1k/crt0.S4
-rw-r--r--libgloss/or1k/exceptions-asm.S2
2 files changed, 3 insertions, 3 deletions
diff --git a/libgloss/or1k/crt0.S b/libgloss/or1k/crt0.S
index f1753d0d7..ecaf9172f 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 7248683f5..762a509a9 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