diff --git a/rtl/linux/xtensa/si_c.inc b/rtl/linux/xtensa/si_c.inc index ae55f1bee2..2d5688ca34 100644 --- a/rtl/linux/xtensa/si_c.inc +++ b/rtl/linux/xtensa/si_c.inc @@ -53,7 +53,7 @@ procedure _FPC_proc_start; assembler; public name '_start'; procedure _FPC_xtensa_exit(e:longint); assembler; asm - mov a6,a3 + mov a6,a2 movi a2,119 syscall end; diff --git a/rtl/linux/xtensa/si_dll.inc b/rtl/linux/xtensa/si_dll.inc index cedcccc59f..5da7276798 100644 --- a/rtl/linux/xtensa/si_dll.inc +++ b/rtl/linux/xtensa/si_dll.inc @@ -32,7 +32,7 @@ procedure _FPC_shared_lib_start(argc : dword;argv,envp : pointer); cdecl; public procedure _FPC_shared_lib_haltproc(e:longint); cdecl; assembler; public name '_haltproc'; asm .L1: - mov a6,a3 + mov a6,a2 movi a2,119 syscall j .L1 diff --git a/rtl/linux/xtensa/si_prc.inc b/rtl/linux/xtensa/si_prc.inc index 99973ae58a..6d72de1025 100644 --- a/rtl/linux/xtensa/si_prc.inc +++ b/rtl/linux/xtensa/si_prc.inc @@ -55,7 +55,7 @@ procedure _FPC_dynamic_proc_start; assembler; public name '_dynamic_start'; procedure _FPC_xtensa_exit(e:longint); assembler; asm .L1: - mov a6,a3 + mov a6,a2 movi a2,119 syscall j .L1 diff --git a/rtl/linux/xtensa/si_uc.inc b/rtl/linux/xtensa/si_uc.inc index 62ac82e33d..1c721e7bbf 100644 --- a/rtl/linux/xtensa/si_uc.inc +++ b/rtl/linux/xtensa/si_uc.inc @@ -92,7 +92,7 @@ procedure _FPC_proc_start; assembler; public name '_start'; procedure _FPC_xtensa_exit(e:longint); assembler; asm - mov a6,a3 + mov a6,a2 movi a2,119 syscall end;