Browse Source

* proper naming

florian 3 years ago
parent
commit
be4a317cb4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      rtl/darwin/aarch64/sig_cpu.inc
  2. 1 1
      rtl/darwin/aarch64/sighnd.inc

+ 1 - 1
rtl/darwin/aarch64/sig_cpu.inc

@@ -41,7 +41,7 @@
      mcontext_t = record
           __es : __darwin_arm_exception_state64;
           __ss : __darwin_arm_thread_state64;
-          __fs : __darwin_arm_neon_state64;
+          __ns : __darwin_arm_neon_state64;
        end;
 
 

+ 1 - 1
rtl/darwin/aarch64/sighnd.inc

@@ -44,7 +44,7 @@ begin
         res:=233;
   end;
   { right now, macOS generates SIGILL signals for fpu exceptions, so always clear the fpu exceptions }
-  SigContext^.uc_mcontext^.__fs.__fpsr:=SigContext^.uc_mcontext^.__fs.__fpsr and not(fpu_exception_mask shr fpu_exception_mask_to_status_mask_shift);
+  SigContext^.uc_mcontext^.__ns.__fpsr:=SigContext^.uc_mcontext^.__ns.__fpsr and not(fpu_exception_mask shr fpu_exception_mask_to_status_mask_shift);
   {$ifdef FPC_USE_SIGPROCMASK}
    reenable_signal(sig);
   {$endif }