From ab47b8477840519ac488c9bd817afc7c0a648a8f Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Mon, 22 Oct 2001 19:43:05 +0000 Subject: [PATCH] In the signal trampoline, flush the register stack before calling sigreturn. This appears to fix the last set of problems with csh. --- sys/ia64/ia64/locore.S | 3 ++- sys/ia64/ia64/locore.s | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/ia64/ia64/locore.S b/sys/ia64/ia64/locore.S index a5c5c939619b..ae5946b0c613 100644 --- a/sys/ia64/ia64/locore.S +++ b/sys/ia64/ia64/locore.S @@ -179,8 +179,9 @@ ENTRY(sigcode,0) ;; alloc r14=ar.pfs,0,0,0,0 // discard call frame ;; -(p1) br.cond.sptk.few 2f // note: p1 is preserved flushrs + ;; +(p1) br.cond.sptk.few 2f // note: p1 is preserved mov ar.rsc=0 add r8=UC_MCONTEXT_MC_AR_RNAT,r4 // address of mc_ar_rnat ;; diff --git a/sys/ia64/ia64/locore.s b/sys/ia64/ia64/locore.s index a5c5c939619b..ae5946b0c613 100644 --- a/sys/ia64/ia64/locore.s +++ b/sys/ia64/ia64/locore.s @@ -179,8 +179,9 @@ ENTRY(sigcode,0) ;; alloc r14=ar.pfs,0,0,0,0 // discard call frame ;; -(p1) br.cond.sptk.few 2f // note: p1 is preserved flushrs + ;; +(p1) br.cond.sptk.few 2f // note: p1 is preserved mov ar.rsc=0 add r8=UC_MCONTEXT_MC_AR_RNAT,r4 // address of mc_ar_rnat ;;