Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 x86_get_sdbase: copyout to a correct address.
details: https://anonhg.NetBSD.org/src/rev/2c7d0c199c8e
branches: trunk
changeset: 748942:2c7d0c199c8e
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Nov 11 13:38:53 2009 +0000
description:
x86_get_sdbase: copyout to a correct address.
diffstat:
sys/arch/x86/x86/sys_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bccd7725a341 -r 2c7d0c199c8e sys/arch/x86/x86/sys_machdep.c
--- a/sys/arch/x86/x86/sys_machdep.c Wed Nov 11 12:57:52 2009 +0000
+++ b/sys/arch/x86/x86/sys_machdep.c Wed Nov 11 13:38:53 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.20 2009/07/29 12:02:06 cegger Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.21 2009/11/11 13:38:53 yamt Exp $ */
/*-
* Copyright (c) 1998, 2007, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.20 2009/07/29 12:02:06 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.21 2009/11/11 13:38:53 yamt Exp $");
#include "opt_mtrr.h"
#include "opt_perfctrs.h"
@@ -647,7 +647,7 @@
}
base = sd->sd_hibase << 24 | sd->sd_lobase;
- return copyout(&base, &arg, sizeof(base));
+ return copyout(&base, arg, sizeof(base));
#else
return EINVAL;
#endif
Home |
Main Index |
Thread Index |
Old Index