diff options
| author | maxv <maxv@NetBSD.org> | 2017-02-05 10:42:21 +0000 |
|---|---|---|
| committer | maxv <maxv@NetBSD.org> | 2017-02-05 10:42:21 +0000 |
| commit | 3203c4bb9ecc7116ee7df1860cccd00537f9ece9 (patch) | |
| tree | 6bc37df3931cce51231d9e3751c72b55d2ab0cf2 /sys/compat/linux | |
| parent | f63fe260b0fd44d2a222c8a25a302cbadbca87ed (diff) | |
Rename ldt->ldtstore and gdt->gdtstore on i386. It reduces the diff with
amd64, and makes it easier to track down these variables on nxr - 'ldt'
and 'gdt' being common keywords.
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/arch/i386/linux_machdep.c b/sys/compat/linux/arch/i386/linux_machdep.c index 394c5579284..7e93588cbdb 100644 --- a/sys/compat/linux/arch/i386/linux_machdep.c +++ b/sys/compat/linux/arch/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.162 2016/07/13 15:59:54 maxv Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.163 2017/02/05 10:42:22 maxv Exp $ */ /*- * Copyright (c) 1995, 2000, 2008, 2009 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.162 2016/07/13 15:59:54 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.163 2017/02/05 10:42:22 maxv Exp $"); #if defined(_KERNEL_OPT) #include "opt_vm86.h" @@ -535,7 +535,7 @@ linux_read_ldt(struct lwp *l, const struct linux_sys_modify_ldt_args *uap, error = x86_get_ldt1(l, &gl, ldt_buf); /* NB gl.num might have changed */ if (error == 0) { - *retval = gl.num * sizeof *ldt; + *retval = gl.num * sizeof(*ldtstore); error = copyout(ldt_buf, SCARG(uap, ptr), gl.num * sizeof *ldt_buf); } |
