ntdll: Unify the usage of internal SIGCONTEXT type on ARM and ARM64

André Hentschel nerv at dawncrow.de
Sun Mar 10 09:43:12 CDT 2013


---
 dlls/ntdll/signal_arm.c   | 8 ++++----
 dlls/ntdll/signal_arm64.c | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/ntdll/signal_arm.c b/dlls/ntdll/signal_arm.c
index bf94b17..ce6a6b6 100644
--- a/dlls/ntdll/signal_arm.c
+++ b/dlls/ntdll/signal_arm.c
@@ -124,7 +124,7 @@ static inline BOOL is_valid_frame( void *frame )
  *
  * Set the register values from a sigcontext.
  */
-static void save_context( CONTEXT *context, const ucontext_t *sigcontext )
+static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
 #define C(x) context->R##x = REGn_sig(x,sigcontext)
     /* Save normal registers */
@@ -146,7 +146,7 @@ static void save_context( CONTEXT *context, const ucontext_t *sigcontext )
  *
  * Build a sigcontext from the register values.
  */
-static void restore_context( const CONTEXT *context, ucontext_t *sigcontext )
+static void restore_context( const CONTEXT *context, SIGCONTEXT *sigcontext )
 {
 #define C(x)  REGn_sig(x,sigcontext) = context->R##x
     /* Restore normal registers */
@@ -167,7 +167,7 @@ static void restore_context( const CONTEXT *context, ucontext_t *sigcontext )
  *
  * Set the FPU context from a sigcontext.
  */
-static inline void save_fpu( CONTEXT *context, const ucontext_t *sigcontext )
+static inline void save_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
     FIXME("not implemented\n");
 }
@@ -178,7 +178,7 @@ static inline void save_fpu( CONTEXT *context, const ucontext_t *sigcontext )
  *
  * Restore the FPU context to a sigcontext.
  */
-static inline void restore_fpu( CONTEXT *context, const ucontext_t *sigcontext )
+static inline void restore_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
     FIXME("not implemented\n");
 }
diff --git a/dlls/ntdll/signal_arm64.c b/dlls/ntdll/signal_arm64.c
index 01af577..018d84f 100644
--- a/dlls/ntdll/signal_arm64.c
+++ b/dlls/ntdll/signal_arm64.c
@@ -115,7 +115,7 @@ static inline BOOL is_valid_frame( void *frame )
  *
  * Set the register values from a sigcontext.
  */
-static void save_context( CONTEXT *context, const ucontext_t *sigcontext )
+static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
 #define C(n) context->X##n = REGn_sig(n,sigcontext)
     /* Save normal registers */
@@ -136,7 +136,7 @@ static void save_context( CONTEXT *context, const ucontext_t *sigcontext )
  *
  * Build a sigcontext from the register values.
  */
-static void restore_context( const CONTEXT *context, ucontext_t *sigcontext )
+static void restore_context( const CONTEXT *context, SIGCONTEXT *sigcontext )
 {
 #define C(n)  REGn_sig(n,sigcontext) = context->X##n
     /* Restore normal registers */
@@ -156,7 +156,7 @@ static void restore_context( const CONTEXT *context, ucontext_t *sigcontext )
  *
  * Set the FPU context from a sigcontext.
  */
-static inline void save_fpu( CONTEXT *context, const ucontext_t *sigcontext )
+static inline void save_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
     FIXME( "Not implemented on ARM64\n" );
 }
@@ -167,7 +167,7 @@ static inline void save_fpu( CONTEXT *context, const ucontext_t *sigcontext )
  *
  * Restore the FPU context to a sigcontext.
  */
-static inline void restore_fpu( CONTEXT *context, const ucontext_t *sigcontext )
+static inline void restore_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
     FIXME( "Not implemented on ARM64\n" );
 }
-- 
1.8.0


-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list