Applied except a little thing, thanks!

Luca Dariz, le lun. 16 janv. 2023 11:58:52 +0100, a ecrit:
> +static inline int copyin_address(const rpc_vm_offset_t *uaddr, vm_offset_t 
> *kaddr)
> +{
> +#ifdef __x86_64
> +  return copyin_32to64(uaddr, kaddr);
> +#else /* __x86_64__ */
> +  return copyin(uaddr, kaddr, sizeof(*uaddr));
> +#endif /* __x86_64__ */
> +}
> +
> +static inline int copyout_address(const vm_offset_t *kaddr, rpc_vm_offset_t 
> *uaddr)
> +{
> +#ifdef __x86_64
> +  return copyout_64to32(kaddr, uaddr);
> +#else /* __x86_64__ */
> +  return copyout(kaddr, uaddr, sizeof(*kaddr));
> +#endif /* __x86_64__ */
> +}

These were to be USER32 rather than __86_64, to properly handle the case
of 64-on-64.

Samuel

Reply via email to