mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user