1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

ia32 %edx return comes from td_retval[1], not td_retval[0]

Obtained from:	dfr
This commit is contained in:
Peter Wemm 2002-06-20 06:47:44 +00:00
parent 6e1f6045c0
commit 8acb9efb5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98474

View File

@ -1013,7 +1013,7 @@ ia32_syscall(struct trapframe *framep)
switch (error) {
case 0:
framep->tf_r[FRAME_R8] = td->td_retval[0]; /* eax */
framep->tf_r[FRAME_R10] = td->td_retval[0]; /* edx */
framep->tf_r[FRAME_R10] = td->td_retval[1]; /* edx */
ia64_set_eflag(ia64_get_eflag() & ~PSL_C);
break;