Module Name: src
Committed By: bouyer
Date: Wed Jun 10 17:15:00 UTC 2009
Modified Files:
src/sys/arch/sh3/sh3 [netbsd-5]: locore_subr.S
Log Message:
Pull up following revision(s) (requested by uwe in ticket #802):
sys/arch/sh3/sh3/locore_subr.S: revision 1.52
Fix logic error in copyinstr() when deciding whether to return EFAULT
or ENAMETOOLONG.
>From OpenBSD revision 1.9 by miod@
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/arch/sh3/sh3/locore_subr.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sh3/sh3/locore_subr.S
diff -u src/sys/arch/sh3/sh3/locore_subr.S:1.48 src/sys/arch/sh3/sh3/locore_subr.S:1.48.8.1
--- src/sys/arch/sh3/sh3/locore_subr.S:1.48 Sun Jun 1 01:43:20 2008
+++ src/sys/arch/sh3/sh3/locore_subr.S Wed Jun 10 17:15:00 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: locore_subr.S,v 1.48 2008/06/01 01:43:20 uwe Exp $ */
+/* $NetBSD: locore_subr.S,v 1.48.8.1 2009/06/10 17:15:00 bouyer Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
#include <sh3/mmu_sh3.h>
#include <sh3/mmu_sh4.h>
-__KERNEL_RCSID(0, "$NetBSD: locore_subr.S,v 1.48 2008/06/01 01:43:20 uwe Exp $")
+__KERNEL_RCSID(0, "$NetBSD: locore_subr.S,v 1.48.8.1 2009/06/10 17:15:00 bouyer Exp $")
/*
@@ -669,7 +669,7 @@
cmp/eq #-1, r0
bf 1b
mov.l .L_copyinstr_VM_MAXUSER_ADDRESS, r1
- cmp/hs r1, r5
+ cmp/hs r1, r4
bt 3f
mov #ENAMETOOLONG, r3