mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Fix compile for __ARMEB__.
This commit is contained in:
parent
1f41d5d83a
commit
3d8e3adb3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140478
@ -928,16 +928,16 @@ syscall(struct thread *td, trapframe_t *frame, u_int32_t insn)
|
||||
switch (error) {
|
||||
case 0:
|
||||
#ifdef __ARMEB__
|
||||
if ((frame->fixreg[0] == SYS___syscall) &&
|
||||
if ((insn & 0x000fffff) &&
|
||||
(code != SYS_lseek)) {
|
||||
/*
|
||||
* 64-bit return, 32-bit syscall. Fixup byte order
|
||||
*/
|
||||
tf->tf_r0 = 0;
|
||||
tf->rf_r1 = td->td_retval[0];
|
||||
frame->tf_r0 = 0;
|
||||
frame->tf_r1 = td->td_retval[0];
|
||||
} else {
|
||||
tf->tf_r0 = td->td_retval[0];
|
||||
tf->tf_r1 = td->td_retval[1];
|
||||
frame->tf_r0 = td->td_retval[0];
|
||||
frame->tf_r1 = td->td_retval[1];
|
||||
}
|
||||
#else
|
||||
frame->tf_r0 = td->td_retval[0];
|
||||
|
Loading…
Reference in New Issue
Block a user