Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include Mark NetBSD->Linux er...
details: https://anonhg.NetBSD.org/src/rev/6d45739239e1
branches: riastradh-drm2
changeset: 788065:6d45739239e1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:04:16 2013 +0000
description:
Mark NetBSD->Linux errno translations in copy_{to,from}_user.
diffstat:
sys/external/bsd/drm2/include/asm/uaccess.h | 4 +++-
sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r 50497e6c398c -r 6d45739239e1 sys/external/bsd/drm2/include/asm/uaccess.h
--- a/sys/external/bsd/drm2/include/asm/uaccess.h Wed Jul 24 02:04:01 2013 +0000
+++ b/sys/external/bsd/drm2/include/asm/uaccess.h Wed Jul 24 02:04:16 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uaccess.h,v 1.1.2.2 2013/07/24 02:02:03 riastradh Exp $ */
+/* $NetBSD: uaccess.h,v 1.1.2.3 2013/07/24 02:04:16 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,12 +38,14 @@
static inline int
copy_from_user(void *kernel_addr, const void *user_addr, size_t len)
{
+ /* XXX errno NetBSD->Linux */
return -copyin(user_addr, kernel_addr, len);
}
static inline int
copy_to_user(void *user_addr, const void *kernel_addr, size_t len)
{
+ /* XXX errno NetBSD->Linux */
return -copyout(kernel_addr, user_addr, len);
}
diff -r 50497e6c398c -r 6d45739239e1 sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h Wed Jul 24 02:04:01 2013 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h Wed Jul 24 02:04:16 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_copy_netbsd.h,v 1.1.2.2 2013/07/24 02:01:42 riastradh Exp $ */
+/* $NetBSD: drm_copy_netbsd.h,v 1.1.2.3 2013/07/24 02:04:16 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,12 +38,14 @@
static inline int
DRM_COPY_FROM_USER(void *kernel_addr, const void *user_addr, size_t len)
{
+ /* XXX errno NetBSD->Linux */
return -copyin(user_addr, kernel_addr, len);
}
static inline int
DRM_COPY_TO_USER(const void *kernel_addr, void *user_addr, size_t len)
{
+ /* XXX errno NetBSD->Linux */
return -copyout(kernel_addr, user_addr, len);
}
Home |
Main Index |
Thread Index |
Old Index