Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/arm/gen shut up lint(1)
details: https://anonhg.NetBSD.org/src/rev/7f36892dd7ca
branches: trunk
changeset: 778284:7f36892dd7ca
user: bsh <bsh%NetBSD.org@localhost>
date: Wed Mar 21 09:05:35 2012 +0000
description:
shut up lint(1)
diffstat:
lib/libc/arch/arm/gen/_lwp.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r eb6843ec2844 -r 7f36892dd7ca lib/libc/arch/arm/gen/_lwp.c
--- a/lib/libc/arch/arm/gen/_lwp.c Wed Mar 21 05:49:39 2012 +0000
+++ b/lib/libc/arch/arm/gen/_lwp.c Wed Mar 21 09:05:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.5 2011/02/24 04:28:41 joerg Exp $ */
+/* $NetBSD: _lwp.c,v 1.6 2012/03/21 09:05:35 bsh Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.5 2011/02/24 04:28:41 joerg Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.6 2012/03/21 09:05:35 bsh Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -58,16 +58,22 @@
u->uc_stack.ss_sp = stack_base;
u->uc_stack.ss_size = stack_size;
+ /* LINTED - alignment is fixed below. */
sp = (void **) (stack_base + stack_size);
/*
* Note: We make sure the stack is 8-byte aligned, here.
*/
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_R0] = (__greg_t) arg;
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_SP] = ((__greg_t) sp) & ~7;
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_LR] = (__greg_t) _lwp_exit;
+ /* LINTED - doesn't lose any bits by this conversion */
u->uc_mcontext.__gregs[_REG_PC] = (__greg_t) start;
+ /* LINTED - unsinged long and unsigned int are same size */
u->uc_mcontext._mc_tlsbase = (uintptr_t)private;
u->uc_flags |= _UC_TLSBASE;
}
Home |
Main Index |
Thread Index |
Old Index