mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
amd64 port (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@762 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f658b4db79
commit
4f2ac23784
9 changed files with 55 additions and 198 deletions
|
@ -2402,9 +2402,14 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|||
goto unimplemented;
|
||||
case TARGET_NR__llseek:
|
||||
{
|
||||
#if defined (__x86_64__)
|
||||
ret = get_errno(lseek(arg1, ((uint64_t )arg2 << 32) | arg3, arg5));
|
||||
*(int64_t *)arg4 = ret;
|
||||
#else
|
||||
int64_t res;
|
||||
ret = get_errno(_llseek(arg1, arg2, arg3, &res, arg5));
|
||||
*(int64_t *)arg4 = tswap64(res);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case TARGET_NR_getdents:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue