[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 1/8] linux-user: Add support for adjtimex() s
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH v5 1/8] linux-user: Add support for adjtimex() syscall |
Date: |
Sun, 18 Sep 2016 00:38:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Le 17/09/2016 à 20:40, Laurent Vivier a écrit :
>
>
> Le 14/09/2016 à 22:19, Aleksandar Markovic a écrit :
>> static inline abi_long target_to_host_timespec(struct timespec *host_ts,
>> abi_ulong target_addr)
>> {
>> @@ -9419,8 +9492,23 @@ abi_long do_syscall(void *cpu_env, int num, abi_long
>> arg1,
>> break;
>> #endif
>> #endif
>> +#ifdef TARGET_NR_adjtimex
>> case TARGET_NR_adjtimex:
>> - goto unimplemented;
>> + {
>> + struct timex host_buf;
>> +
>
> check arg1 != NULL, so you manage target_to_host and host_to_target NULL
> case.
In fact, I think you should not check that, it will be managed by
lock_user_struct().
Laurent
[Qemu-devel] [PATCH v5 2/8] linux-user: Add support for clock_adjtime() syscall, Aleksandar Markovic, 2016/09/14
[Qemu-devel] [PATCH v5 3/8] linux-user: Add support for sysfs() syscall, Aleksandar Markovic, 2016/09/14
[Qemu-devel] [PATCH v5 4/8] linux-user: Add support for ustat() syscall, Aleksandar Markovic, 2016/09/14