Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh5/sh5 While NetBSD/sh5 has never needed a sigcode...



details:   https://anonhg.NetBSD.org/src/rev/bc523f361107
branches:  trunk
changeset: 555787:bc523f361107
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Nov 28 08:12:52 2003 +0000

description:
While NetBSD/sh5 has never needed a sigcode trampoline, other parts of
the kernel seem to assume 'esigcode - sigcode' is non-zero.

diffstat:

 sys/arch/sh5/sh5/sigcode.S |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 5f379224ad17 -r bc523f361107 sys/arch/sh5/sh5/sigcode.S
--- a/sys/arch/sh5/sh5/sigcode.S        Fri Nov 28 08:03:14 2003 +0000
+++ b/sys/arch/sh5/sh5/sigcode.S        Fri Nov 28 08:12:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigcode.S,v 1.3 2002/10/02 08:10:34 scw Exp $  */
+/*     $NetBSD: sigcode.S,v 1.4 2003/11/28 08:12:52 scw Exp $  */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -45,8 +45,12 @@
  */
 
 /*
- * Dummy, zero-length, sigcode routine.
+ * Dummy sigcode routine.
+ * SH5 has never needed this trampoline, but other parts of the kernel
+ * assume it has a non-zero length.
  */
 
 ENTRY_NOPROFILE(sigcode)
+       movi    -1, r0          /* Completely bogus trapa code */
+       trapa   r0              /* This had better kill us ... */
 ENTRY_NOPROFILE(esigcode)



Home | Main Index | Thread Index | Old Index