Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/compat/arch/sh3/sys Simplify. Add WARN_REFERENCES.
details: https://anonhg.NetBSD.org/src/rev/ea0476a683fb
branches: trunk
changeset: 586956:ea0476a683fb
user: uwe <uwe%NetBSD.org@localhost>
date: Fri Jan 06 04:05:55 2006 +0000
description:
Simplify. Add WARN_REFERENCES.
diffstat:
lib/libc/compat/arch/sh3/sys/compat_sigsuspend.S | 25 +++++++++++------------
1 files changed, 12 insertions(+), 13 deletions(-)
diffs (47 lines):
diff -r c84018759731 -r ea0476a683fb lib/libc/compat/arch/sh3/sys/compat_sigsuspend.S
--- a/lib/libc/compat/arch/sh3/sys/compat_sigsuspend.S Fri Jan 06 03:58:31 2006 +0000
+++ b/lib/libc/compat/arch/sh3/sys/compat_sigsuspend.S Fri Jan 06 04:05:55 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_sigsuspend.S,v 1.2 2006/01/06 03:58:31 uwe Exp $ */
+/* $NetBSD: compat_sigsuspend.S,v 1.3 2006/01/06 04:05:55 uwe Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -36,26 +36,25 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
- RCSID("$NetBSD: compat_sigsuspend.S,v 1.2 2006/01/06 03:58:31 uwe Exp $")
+ RCSID("$NetBSD: compat_sigsuspend.S,v 1.3 2006/01/06 04:05:55 uwe Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
+WARN_REFERENCES(sigsuspend, \
+ "warning: reference to compatibility sigsuspend(); include <signal.h> for correct reference")
+
+/*
+ * int sigsuspend(const sigset_t *sigmask);
+ */
ENTRY(sigsuspend)
- mov r4, r0 /* fetch mask arg */
- mov.l @r0, r0 /* indirect to mask arg */
- mov r0, r4
- mov.l LSYS_sigsuspend13, r0
+ mov.l @r4, r4 /* syscall expects mask as the argument */
+ mov #SYS_compat_13_sigsuspend13, r0
trapa #0x80
bf err
- xor r0, r0 /* shouldn t happen */
- rts
- nop
+ rts /* shouldn t happen */
+ mov #0, r0
err:
JUMP_CERROR
- .align 2
-LSYS_sigsuspend13:
- .long SYS_compat_13_sigsuspend13
-
SET_ENTRY_SIZE(sigsuspend)
Home |
Main Index |
Thread Index |
Old Index